博威---云架构决胜云计算

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2368|回复: 5

配置Cisco PIX 防火墙实现双出口

[复制链接]
发表于 2007-11-28 11:51:47 | 显示全部楼层 |阅读模式
一、用户需求  用户有一台Cisco PIX 515E防火墙,一个网通的出口,一个电信的出口。现在要实现默认都往电信线路出去,而访问网通的网站时使用网通的线路出去。
  二、实现要点
  1、首先要收集网通的IP网段(这个可以在网络上搜索,或者电信的朋友要一份);
  2、在路由方面,由于Cisco PIX是偏向于防火墙的功能,因此PIX在路由方面是比较弱的无法通过策略路由来实现,在此我使用了默认路由往设成电信的网关,同时添加网通IP网段的静态路由。这样实现了两个出口路由的走向。
  3、在NAT方面,要配置两条NAT,其中一条是通往网通的转换成网通的出口IP,另一条是通往电信的转换成电信的出口IP,这个NAT应该是网通的NAT要配置在电信NAT前面,否则将无法实现。
  三、Cisco PIX双出口配置
  3.1 环境描述
nameif ethernet0 outside security0nameif ethernet1 inside security100nameif ethernet5 teloutside security0ip address outside 224.254.14.164 255.255.255.0ip address inside 192.168.0.1 255.255.255.0ip address teloutside 202.99.114.91 255.255.255.128#备注:outside为网通线路出口;teloutside为电信线路出口;inside为内网接口;
 楼主| 发表于 2007-11-28 11:52:18 | 显示全部楼层
3.2双出口实现   A、网通IP网段定义
object-group network wtnetwork
network-object 58.16.0.0 255.248.0.0
network-object 58.100.0.0 255.254.0.0  
network-object 58.240.0.0 255.240.0.0
network-object 60.0.0.0 255.248.0.0
network-object 60.8.0.0 255.252.0.0
network-object 60.12.0.0 255.255.0.0
network-object 60.13.0.0 255.255.192.0
network-object 60.13.128.0 255.255.128.0
network-object 60.16.0.0 255.240.0.0
network-object 60.24.0.0 255.248.0.0
network-object 60.31.0.0 255.255.0.0
network-object 60.208.0.0 255.248.0.0
.......................
  B、定义Access-list 为作NAT准备
  access-list 101 permit ip 192.168.0.0 object-group wtnetwork
  #内部网络到网通IP网段的Access-list
  access-list 104 permit ip 192.168.0.0 255.255.255.0 any
  #内部网络到任何IP的Access-list
  C、NAT配置
  global (outside) 1 interface
  #定义NAT ID 1为网通的出口ip
  global (teloutside) 4 interface
  #定义NAT ID 4为电信的出口ip
  nat (inside) 1 access-list 101
  #定义符合access-list 101(就是内部到网通IP网段)就转换成NAT ID 1的IP(网通的出口)
  nat (inside) 5 access-list 105
  #定义符合access-list 101(就是内部到网通IP网段)就转换成NAT ID 1的IP(网通的出口)
  注意:nat (inside) 1 access-list 101一定要在nat (inside) 5 access-list 105前面。
  

[ 本帖最后由 zq2007 于 2007-11-28 11:57 编辑 ]
 楼主| 发表于 2007-11-28 11:53:27 | 显示全部楼层
D、Route路由配置
添加默认路由往电信的网关出去################
route teloutside 0.0.0.0 0.0.0.0 202.99.114.126 1

添加静态路由往网通IP网段往网通的网关出去######
route outside 58.16.0.0 255.248.0.0 224.254.14.161
route outside 58.100.0.0 255.254.0.0 224.254.14.161
route outside 58.240.0.0 255.240.0.0 224.254.14.161
route outside 60.0.0.0 255.248.0.0 224.254.14.161
route outside 60.8.0.0 255.252.0.0 224.254.14.161
route outside 60.12.0.0 255.255.0.0 224.254.14.161
route outside 60.13.0.0 255.255.192.0 224.254.14.161
route outside 60.13.128.0 255.255.128.0 224.254.14.161
route outside 60.16.0.0 255.240.0.0 224.254.14.161
route outside 60.24.0.0 255.248.0.0 224.254.14.161
route outside 60.31.0.0 255.255.0.0 224.254.14.161
route outside 60.208.0.0 255.248.0.0 224.254.14.161
route outside 60.216.0.0 255.254.0.0 224.254.14.161
route outside 60.220.0.0 255.252.0.0 224.254.14.161
route outside 61.48.0.0 255.252.0.0 224.254.14.161
route outside 61.52.0.0 255.254.0.0 224.254.14.161
route outside 61.54.0.0 255.255.0.0 224.254.14.161
route outside 61.55.0.0 255.255.0.0 224.254.14.161
route outside 61.133.0.0 255.255.128.0 224.254.14.161
.....................
#备注:224.254.14.161为通往的网通的网关,##################
  四、实现效果
  目前国内的骨干网分为南、北两张网。南电信北网通,不通运营商之间的通讯都需要到骨干进行数据交换,因此网通的用户访问电信网站很慢而电信用户访问方位网通网站也很慢,因此对大型网络设置双出口可以使不同运营商之间网络访问速度得到改善,本文档是在这一背景下产生的需求。

http://cisco.chinaitlab.com/firewall/729798_2.html
发表于 2009-1-8 14:14:03 | 显示全部楼层


就是电信网通的策略路由对吧……
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|boway Inc. ( 冀ICP备10011147号 )

GMT+8, 2024-11-27 13:50 , Processed in 0.086043 second(s), 16 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表