2007年3月6日

Cisco PIX防火墙的安装流程
ChinaCCNA.com
    1. PIX安放至机架,经检测电源系统后接上电源,并加电主机。
    2. CONSOLE口连接到PC的串口上,运行HyperTerminal程序从CONSOLE口进入PIX系统;此时系统提示pixfirewall>.
    3. 输入命令:enable,进入特权模式,此时系统提示为pixfirewall#.
    4. 输入命令: configure terminal,对系统进行初始化设置。
    5. 配置以太口参数:
    interface ethernet0 auto  auto选项表明系统自适应网卡类型
    interface ethernet1 auto
    6. 配置内外网卡的IP地址:
    ip address inside ip_address netmask
    ip address outside ip_address netmask
    7. 指定外部地址范围:
    global 1 ip_address-ip_address
    8. 指定要进行要转换的内部地址:
    nat 1 ip_address netmask
    9. 设置指向内部网和外部网的缺省路由
    route inside 0 0 inside_default_router_ip_address
    route outside 0 0 outside_default_router_ip_address
   10. 配置静态IP地址对映:
    static outside ip_address  inside ip_address
   11. 设置某些控制选项:
    conduit global_ip port[-port] protocol foreign_ip [netmask]
    global_ip  指的是要控制的地址
    port    指的是所作用的端口,其中0代表所有端口
    protocol  指的是连接协议,比如:TCPUDP
    foreign_ip 表示可访问global_ip的外部ip,其中表示所有的ip.
   12. 设置telnet选项:
    telnet local_ip [netmask] l
    ocal_ip  表示被允许通过telnet访问到pixip地址(如果不设此项,PIX的配置只能由consle方式进行)。
    13. 将配置保存:
    wr mem
    14. 几个常用的网络测试命令:
    #ping
    #show interface   查看端口状态
    #show static     查看静态地址映射
    Cisco PIX 520 是一款性能良好的网络安全产品,如果再加上Check Point 的软件防火墙组成两道防护,可以得到更加完善的安全防范。
    主要用于局域网的外连设备(如路由器、拨号访问服务器等)与内部网络之间,实现内部网络的安全防范,避免来自外部的恶意攻击。
    Cisco PIX 520的默认配置允许从内到外的所有信息请求,拒绝一切外来的主动访问,只允许内部信息的反馈信息进入。当然也可以通过某些设置,例如:访问表等,允许外部的访问。因为,远程用户的访问需要从外到内的访问。另外,可以通过NAT地址转换,实现公有地址和私有地址的转换。
    简单地讲,PIX 520的主要功能有两点:
    1.实现网络安全
    2.实现地址转换
    下面简单列出PIX 520 的基本配置
1.Configure without NAT
nameif ethernet0 outside security0
nameif ethernet1 inside security100
interface ethernet0 auto
interface ethernet1 auto
     ip address outside 202.109.77.1 255.255.255.0 (假设对外端口地址)    
     ip address inside 10.1.0.9 255.255.255.0(假设内部网络为:10.1.0.0)
     hostname bluegarden
arp timeout 14400
no failover
names
pager lines 24
     logging buffered debugging
     nat (inside) 0 0 0
rip inside default no rip inside passive no rip outside default rip outside passive
route outside 0.0.0.0 0.0.0.0 202.109.77.2 1(外连设备的内部端口地址)
timeout xlate 3:00:00 conn 1:00:00 udp 0:02:00 timeout rpc 0:10:00 h323 0:05:00 timeout uauth 0:05:00 absolute
no snmp-server location no snmp-server contact snmp-server community public
mtu outside 1500 mtu inside 1500
2.Configure with NAT
nameif ethernet0 outside security0
nameif ethernet1 inside security100
interface ethernet0 auto
interface ethernet1 auto
     ip address outside 202.109.77.1 255.255.255.0 (假设对外端口地址)    
     ip address inside 10.1.0.9 255.255.255.0(假设内部网络为:10.1.0.0)
     hostname bluegarden
arp timeout 14400
no failover
names
pager lines 24
     logging buffered debugging
     nat (inside) 1 0 0
global (outside) 1 202.109.77.10-202.109.77.20 global (outside) 1 202.109.22.21
no rip inside default no rip inside passive no rip outside default no rip outside passive
conduit permit icmp any any
route outside 0.0.0.0 0.0.0.0 202.109.77.2 1(外连设备的内部端口地址)
timeout xlate 3:00:00 conn 1:00:00 udp 0:02:00 timeout rpc 0:10:00 h323 0:05:00 timeout uauth 0:05:00 absolute
no snmp-server location no snmp-server contact snmp-server community public
mtu outside 1500 mtu inside 1500
Cisco PIX 的多点服务配置
 结构图如下:
 PIX 520
 Two Interface Multiple Server Configuration
 nameif ethernet0 outside security0
 nameif ethernet0 inside security100
 interface ethernet0 auto
 interface ethernet1 auto
 ip address inside 10.1.1.1 255.0.0.0
 ip address outside 204.31.17.10 255.255.255.0
 logging on
 logging host 10.1.1.11
 logging trap 7
 logging facility 20
 no logging console
 arp timeout 600
 nat (inside) 1 10.0.0.0 255.0.0.0
 nat (inside) 2 192.168.3.0 255.255.255.0
 global (outside) 1 204.31.1.25-204.31.17.27
 global (outside) 1 204.31.1.24
 global (outside) 2 192.159.1.1-192.159.1.254
 conduit permit icmp any any
 outbound 10 deny 192.168.3.3 255.255.255.255 1720
 outbound 10 deny 0 0 80
 outbound 10 permit 192.168.3.3 255.255.255.255 80
 outbound 10 deny 192.168.3.3 255.255.255.255 java
 outbound 10 permit 10.1.1.11 255.255.255.255 80
 apply (inside) 10 outgoing_src
 no rip outside passive
 no rip outside default
 rip inside passive
 rip inside default
 route outside 0 0 204.31.17.1.1
 tacacs-server host 10.1.1.12 lq2w3e
 aaa authentication any inside 192.168.3.0 255.255.255.0 0 0 tacacs+
 aaa authentication any inside 192.168.3.0 255.255.255.0 0 0
 static (inside,outside) 204.31.19.0 192.168.3.0 netmask 255.255.255.0
 conduit permit tcp 204.31.19.0 255.255.255.0 eg h323 any
 static (inside,outside) 204.31.17.29 10.1.1.11
 conduit permit tcp host 204.31.17.29 eq 80 any
 conduit permit udp host 204.31.17.29 eq rpc host 204.31.17.17
 conduit permit udp host 204.31.17.29 eq 2049 host 204.31.17.17
 static (inside.outside) 204.31.1.30 10.1.1.3 netmask 255.255.255.255 10 10
 conduit permit tcp host 204.31.1.30 eq smtp any
 conduit permit tcp host 204.31.1.30 eq 113 any
 snmp-server host 192.168.3.2
 snmp-server location building 42
 snmp-server contact polly hedra
 snmp-server community ohwhatakeyisthee
 telnet 10.1.1.11 255.255.255.255
 telnet 192.168.3.0 255.255.255.0
    CISCO PIX —— PIX 例, 配置在 PIX 的, 由器的 出。
PIX
PIX 部地址:
ip address outside 131.1.23.2
PIX 部地址:
ip address inside 10.10.254.1
算机与Internet 址池:
global 1 131.1.23.10-131.1.23.254
10.0.0.0 的网段 PIX 址:
nat 1 10.0.0.0
使 外部地 131.1.23.11
static 131.1.23.11 10.14.8.50
RTRA 工作站 PIX 墙:
conduit 131.1.23.11 514 udp 131.1.23.1 255.255.255.255
件服务 接(131.1.23.10):
mailhost 131.1.23.10 10.10.254.3
程登录 IPX 墙:
telnet 10.14.8.50
日志服 志:
syslog facility 20.7
syslog host 10.14.8.50
RTRA
----RTRA 由器,它 PIX 击, FTP/HTTP 服务器, 统, 路由器, 知。
的攻击:
no service tcp small-servers
服务器 件, 取列表 变; 作为对 警, 路由器, 器, 火墙:
logging trap debugging
外部地 址, 上:
logging 131.1.23.11
PIX HTTP/FTP 服务器 击( 表):
    enable secret xxxxxxxxxxx
    interface Ethernet 0
    ip address 131.1.23.1 255.255.255.0
    interface Serial 0
    ip unnumbered ethernet 0
    ip access-group 110 in
路由器RTRA PIX 包, 骗攻击:
access-list 110 deny ip 131.1.23.0 0.0.0.255 any log
PIX 口的直 PIX 件:
access-list 110 deny ip any host 131.1.23.2 log
TCP 的信息 过:
access-list 110 permit tcp any 131.1.23.0 0.0.0.255 established
FTP/HTTP FTP 连接:
access-list 110 permit tcp any host 131.1.23.3 eq ftp
FTP/HTTP FTP 数据 接:
access-list 110 permit tcp any host 131.1.23.2 eq ftp-data
FTP/HTTP HTTP 连接:
access-list 110 permit tcp any host 131.1.23.2 eq www
FTP/HTTP 别的连 FTP/HTTP 的事 件:
access-list 110 deny ip any host 131.1.23.2 log
PIX 墙和路 RTRA 量:
access-list 110 permit ip any 131.1.23.0 0.0.0.255
路由器 IP 址:
    line vty 0 4
    login
    password xxxxxxxxxx
    access-class 10 in
登录到 器, Internet 时, 应对此 改:
access-list 10 permit ip 131.1.23.11
RTRB
----RTRB 路由器, 线, 部网的 口。
活动到 器, 修改:
logging trap debugging
logging 10.14.8.50
系统日 息:
    interface Ethernet 0
    ip address 10.10.254.2 255.255.255.0
    no ip proxy-arp
    ip access-group 110 in
    access-list 110 permit udp host 10.10.254.0 0.0.0.255
PIX 墙发来 包:
access-list 110 deny ip any host 10.10.254.2 log
件服务 SMTP 接:
access-list permit tcp host 10.10.254.3 10.0.0.0 0.255.255.255 eq smtp
务器的 量:
access-list deny ip host 10.10.254.3 10.0.0.0 0.255.255.255
址欺骗:
access-list deny ip any 10.10.254.0 0.0.0.255
PIX 防火墙 RTRB 量:
access-list permit ip 10.10.254.0 0.0.0.255 10.0.0.0 0.255.255.255
路由器 IP 址:
      line vty 0 4
     login
     password xxxxxxxxxx
     access-class 10 in
登录到 器, Internet 时, 应对此 改:
access-list 10 permit ip 10.14.8.50
---- PIX 防火墙 后,PIX 外部连 口, 出内部 IP 址, 使 机的IP 地址, Ping 能的。 这样 护。
 

 

posted @ 2007-03-06 09:01 kangnet 阅读(2034) | 评论 (0)编辑 收藏
 
结构图如下:
 PIX 520
 Two Interface Multiple Server Configuration
 nameif ethernet0 outside security0
 nameif ethernet0 inside security100
 interface ethernet0 auto
 interface ethernet1 auto
 ip address inside 10.1.1.1 255.0.0.0
 ip address outside 204.31.17.10 255.255.255.0
 logging on
 logging host 10.1.1.11
 logging trap 7
 logging facility 20
 no logging console
 arp timeout 600
 nat (inside) 1 10.0.0.0 255.0.0.0
 nat (inside) 2 192.168.3.0 255.255.255.0
 global (outside) 1 204.31.1.25-204.31.17.27
 global (outside) 1 204.31.1.24
 global (outside) 2 192.159.1.1-192.159.1.254
 conduit permit icmp any any
 outbound 10 deny 192.168.3.3 255.255.255.255 1720
 outbound 10 deny 0 0 80
 outbound 10 permit 192.168.3.3 255.255.255.255 80
 outbound 10 deny 192.168.3.3 255.255.255.255 java
 outbound 10 permit 10.1.1.11 255.255.255.255 80
 apply (inside) 10 outgoing_src
 no rip outside passive
 no rip outside default
 rip inside passive
 rip inside default
 route outside 0 0 204.31.17.1.1
 tacacs-server host 10.1.1.12 lq2w3e
 aaa authentication any inside 192.168.3.0 255.255.255.0 0 0 tacacs+
 aaa authentication any inside 192.168.3.0 255.255.255.0 0 0
 static (inside,outside) 204.31.19.0 192.168.3.0 netmask 255.255.255.0
 conduit permit tcp 204.31.19.0 255.255.255.0 eg h323 any
 static (inside,outside) 204.31.17.29 10.1.1.11
 conduit permit tcp host 204.31.17.29 eq 80 any
 conduit permit udp host 204.31.17.29 eq rpc host 204.31.17.17
 conduit permit udp host 204.31.17.29 eq 2049 host 204.31.17.17
 static (inside.outside) 204.31.1.30 10.1.1.3 netmask 255.255.255.255 10 10
 conduit permit tcp host 204.31.1.30 eq smtp any
 conduit permit tcp host 204.31.1.30 eq 113 any
 snmp-server host 192.168.3.2
 snmp-server location building 42
 snmp-server contact polly hedra
 snmp-server community ohwhatakeyisthee
 telnet 10.1.1.11 255.255.255.255
 telnet 192.168.3.0 255.255.255.0

posted @ 2007-03-06 08:58 kangnet 阅读(2068) | 评论 (0)编辑 收藏
 
1.Configure without NAT
nameif ethernet0 outside security0
nameif ethernet1 inside security100
interface ethernet0 auto
interface ethernet1 auto
     ip address outside 202.109.77.1 255.255.255.0 (假设对外端口地址)    
     ip address inside 10.1.0.9 255.255.255.0(假设内部网络为:10.1.0.0)
     hostname bluegarden
arp timeout 14400
no failover
names
pager lines 24
     logging buffered debugging
     nat (inside) 0 0 0
rip inside default no rip inside passive no rip outside default rip outside passive
route outside 0.0.0.0 0.0.0.0 202.109.77.2 1(外连设备的内部端口地址)
timeout xlate 3:00:00 conn 1:00:00 udp 0:02:00 timeout rpc 0:10:00 h323 0:05:00 timeout uauth 0:05:00 absolute
no snmp-server location no snmp-server contact snmp-server community public
mtu outside 1500 mtu inside 1500
2.Configure with NAT
nameif ethernet0 outside security0
nameif ethernet1 inside security100
interface ethernet0 auto
interface ethernet1 auto
     ip address outside 202.109.77.1 255.255.255.0 (假设对外端口地址)    
     ip address inside 10.1.0.9 255.255.255.0(假设内部网络为:10.1.0.0)
     hostname bluegarden
arp timeout 14400
no failover
names
pager lines 24
     logging buffered debugging
     nat (inside) 1 0 0
global (outside) 1 202.109.77.10-202.109.77.20 global (outside) 1 202.109.22.21
no rip inside default no rip inside passive no rip outside default no rip outside passive
conduit permit icmp any any
route outside 0.0.0.0 0.0.0.0 202.109.77.2 1(外连设备的内部端口地址)
timeout xlate 3:00:00 conn 1:00:00 udp 0:02:00 timeout rpc 0:10:00 h323 0:05:00 timeout uauth 0:05:00 absolute
no snmp-server location no snmp-server contact snmp-server community public
mtu outside 1500 mtu inside 1500

posted @ 2007-03-06 08:57 kangnet 阅读(2078) | 评论 (0)编辑 收藏
 
  Cisco PIX 520 是一款性能良好的网络安全产品,如果再加上Check Point 的软件防火墙组成两道防护,可以得到更加完善的安全防范。
    主要用于局域网的外连设备(如路由器、拨号访问服务器等)与内部网络之间,实现内部网络的安全防范,避免来自外部的恶意攻击。
    Cisco PIX 520的默认配置允许从内到外的所有信息请求,拒绝一切外来的主动访问,只允许内部信息的反馈信息进入。当然也可以通过某些设置,例如:访问表等,允许外部的访问。因为,远程用户的访问需要从外到内的访问。另外,可以通过NAT地址转换,实现公有地址和私有地址的转换。
    简单地讲,PIX 520的主要功能有两点:
    1.实现网络安全
    2.实现地址转换

posted @ 2007-03-06 08:56 kangnet 阅读(2232) | 评论 (0)编辑 收藏
 
    1. PIX安放至机架,经检测电源系统后接上电源,并加电主机。
    2. CONSOLE口连接到PC的串口上,运行HyperTerminal程序从CONSOLE口进入PIX系统;此时系统提示pixfirewall>.
    3. 输入命令:enable,进入特权模式,此时系统提示为pixfirewall#.
    4. 输入命令: configure terminal,对系统进行初始化设置。
    5. 配置以太口参数:
    interface ethernet0 auto  auto选项表明系统自适应网卡类型
    interface ethernet1 auto
    6. 配置内外网卡的IP地址:
    ip address inside ip_address netmask
    ip address outside ip_address netmask
    7. 指定外部地址范围:
    global 1 ip_address-ip_address
    8. 指定要进行要转换的内部地址:
    nat 1 ip_address netmask
    9. 设置指向内部网和外部网的缺省路由
    route inside 0 0 inside_default_router_ip_address
    route outside 0 0 outside_default_router_ip_address
   10. 配置静态IP地址对映:
    static outside ip_address  inside ip_address
   11. 设置某些控制选项:
    conduit global_ip port[-port] protocol foreign_ip [netmask]
    global_ip  指的是要控制的地址
    port    指的是所作用的端口,其中0代表所有端口
    protocol  指的是连接协议,比如:TCPUDP
    foreign_ip 表示可访问global_ip的外部ip,其中表示所有的ip.
   12. 设置telnet选项:
    telnet local_ip [netmask] l
    ocal_ip  表示被允许通过telnet访问到pixip地址(如果不设此项,PIX的配置只能由consle方式进行)。
    13. 将配置保存:
    wr mem
    14. 几个常用的网络测试命令:
    #ping
    #show interface   查看端口状态
    #show static     查看静态地址映射
posted @ 2007-03-06 08:54 kangnet 阅读(1951) | 评论 (0)编辑 收藏