免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1719 | 回复: 0
打印 上一主题 下一主题

Pix 525 配置实例 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-12-28 10:35 |只看该作者 |倒序浏览

    以下为实际安装中部分配置过程,其中IP地址做过修改。
   1、 连接PIX 520,加电;
   2、 将计算机的串口于PIX 520的控制口相连,运行超级终端:
  pixfirewall>
   3、 先后输入enable命令和configure terminal命令,依次进入特权模式和全局配置模式:
  pixfirewall(config)#
   4、 指定内外网卡及安全级别:
  pixfirewall(config)# nameif ethernet0 outside security0
  pixfirewall(config)# nameif ethernet1 inside security100
  释:ethernet0为外网卡,安全级别最低;ethernet1为内网卡,安全级别最高。
   5、 配置外网卡:
  pixfirewall(config)# interface ethernet0 auto
  pixfirewall(config)# ip address outside 200.100.50.34 255.255.255.240
  释:外网卡地址是200.100.50.34,掩码是255.255.255.240;网卡为自适应。
   6、 配置内网卡:
  pixfirewall(config)# interface ethernet1 auto
  pixfirewall(config)# ip address inside 10.70.130.254 255.255.255.0
  释:内网卡地址是10.70.130.254,掩码是255.255.255.0;网卡为自适应。
   7、 配置全局地址池:
  pixfirewall(config)# global (outside) 1 200.100.50.35-200.100.50.46
  释:这12个地址用以内网做NAT。
   、 配置使用上述全局地址池的内网地址范围:
  pixfirewall(config)# nat (inside) 1 10.70.130.0 255.255.255.0 0 0
  释:内网10.70.130.0/24网段可以使用上述全局地址池出去(连接INTERNET)。
   9、 设置指向内部网和外部网的缺省
路由
  pixfirewall(config)# route outside 0.0.0.0 0.0.0.0 200.100.50.33 1
  pixfirewall(config)# route inside 10.70.130.0 255.255.255.0 10.70.130.253 1
  释:缺省
路由
指向Cisco 2501,其IP地址为:200.100.50.33。10.70.130.253是内网网关(本例中为公司内部第三层交换机的
路由
模块的IP)。
   10、 设置telnet选项:
  pixfirewall(config)# telnet 10.70.130.0 255.255.255.0
  释:只允许内部网络10.70.130.0/24远程登陆到防火墙。
  以上是对PIX 520的初步配置,当然还可以进行更复杂的设置,这里不再累述。
  附录:
  下面是这台PIX 520的配置内容,供参考。
  : Saved
  :
  PIX Version 4.4(5)
  nameif ethernet0 outside security0
  nameif ethernet1 inside security100
  enable password oMCmcbd1jkjYHinD encrypted
  passwd dc.0Bh12lvH98fKM encrypted
  hostname kfc
  fixup protocol ftp 21
  fixup protocol http 80
  fixup protocol h323 1720
  fixup protocol rsh 514
  fixup protocol smtp 25
  fixup protocol sqlnet 1521
  names
  pager lines 24
  logging on
  no logging timestamp
  no logging console
  no logging monitor
  no logging buffered
  no logging trap
  logging facility 20
  logging queue 512
  interface ethernet0 auto
  interface ethernet1 auto
  mtu outside 1500
  mtu inside 1500
  ip address outside 200.100.50.34 255.255.255.240
  ip address inside 10.70.130.254 255.255.255.0
  no failover
  failover timeout 0:00:00
  failover ip address outside 0.0.0.0
  failover ip address inside 0.0.0.0
  arp timeout 14400
  global (outside) 1 200.100.50.35
  global (outside) 1 200.100.50.36-200.100.50.37
  nat (inside) 1 10.70.130.0 255.255.255.0 0 0
  conduit permit icmp any any
  no rip outside passive
  no rip outside default
  no rip inside passive
  no rip inside default
  route outside 0.0.0.0 0.0.0.0 200.100.50.33 1
  route inside 10.70.130.0 255.255.255.0 10.80.130.253 1
  timeout xlate 3:00:00 conn 1:00:00 half-closed 0:10:00 udp 0:02:00
  timeout rpc 0:10:00 h323 0:05:00
  timeout uauth 0:05:00 absolute
  aaa-server TACACS+ protocol tacacs+
  aaa-server RADIUS protocol radius
  no snmp-server location
  no snmp-server contact
  snmp-server community public
  no snmp-server enable traps
  telnet 10.70.130.0 255.255.255.0
  telnet timeout 5
  terminal width 80
  Cryptochecksum:5277c997c2054fde9044a7a29f240265


登陆设置

fw(config)# telnet 192.168.0.246 255.255.255.255 inside #允许192.168.0.246从内接口登录
fw(config)# telnet timeout 30 #设置telnet的空闲中断时间为30分钟
fw(config)# passwd 12345 #设置新的telnet密码
pix515(config)# enable password xxxxxxxx# 设置enable密码


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/41327/showart_2132606.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP