Chinaunix首页 | 论坛 | 博客
  • 博客访问: 165256
  • 博文数量: 42
  • 博客积分: 1425
  • 博客等级: 上尉
  • 技术积分: 530
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-09 14:21
文章存档

2011年(1)

2009年(41)

我的朋友

分类: 网络与安全

2009-07-13 19:43:12

pixfirewall(config-network)# sh run
interface Ethernet0
 nameif inside
 security-level 100
 ip address 172.16.1.1 255.255.255.0
!
interface Ethernet1
 nameif outside
 security-level 0
 ip address 192.168.1.1 255.255.255.0
!
object-group service 10 tcp-udp           ----服务对象分组
 port-object eq 23
 port-object eq www
 port-object eq 21
object-group network 20                   ----网络对象分组
 network-object 1.1.1.1 255.255.255.255
 network-object 1.2.1.1 255.255.255.255
object-group protocol 50                  ----协议对象分组(没有被调用,道理都是一样)
 protocol-object tcp
 protocol-object udp
 protocol-object icmp
object-group icmp-type 100                ----ICMP类型对象分组(没有被调用,道理都是一样)
 icmp-object echo
 icmp-object echo-reply
access-list nat extended permit ip 1.0.0.0 255.0.0.0 any
access-list permit extended permit ip any host 192.168.1.1
access-list permit extended permit tcp any object-group 10 object-group 20    ----调用对象分组
global (outside) 1 interface
nat (inside) 1 access-list nat
static (inside,outside) tcp interface telnet 1.1.1.1 telnet netmask 255.255.255.255
access-group permit in interface outside
route inside 1.0.0.0 255.0.0.0 172.16.1.2 1
route outside 2.2.2.0 255.255.255.0 192.168.1.2 1
route dmz 3.3.3.0 255.255.255.0 10.10.1.2 1
pixfirewall(config-network)#
R1#sh run
username user password 0 user
!
interface Loopback0
 ip address 1.1.1.1 255.255.255.0
!
interface Loopback1
 ip address 1.2.1.1 255.255.255.0
!
interface FastEthernet0/0
 ip address 172.16.1.2 255.255.255.0
 duplex auto
 speed auto
!
ip route 0.0.0.0 0.0.0.0 172.16.1.1
line vty 0 4
 logging synchronous
 login local
R1#
R2#sh run
interface Loopback0
 ip address 2.2.2.2 255.255.255.0
!
interface FastEthernet0/0
 ip address 192.168.1.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
ip http server
no ip http secure-server
ip route 0.0.0.0 0.0.0.0 192.168.1.1
R2#
R2#192.168.1.1
Trying 192.168.1.1 ... Open

User Access Verification
Username: user
Password:
R1>q
[Connection to 192.168.1.1 closed by foreign host]
R2#
阅读(652) | 评论(0) | 转发(0) |
0

上一篇:URL过滤

下一篇:嵌套式对象分组

给主人留下些什么吧!~~