ChinaPhp源码学习教程 移动WAP封顶 电信EVDO WAP上网 VPN OPENVPN » Debian » linux的IProute2和FreeBSD的PF,双线基于源地址的路由回包设置 (转到动态网页) »
|
0
发表于: 2009-05-25 17:06
linux的IProute2和FreeBSD的PF,双线基于源地址的路由回包设置张森力作,大家学习 eht0接电信网线 ,eth1接网通网线 $if_tel=电信IP $gw_tel=电信网关 $if_cnc=网通IP $gw_cnc=网通网关 Linux ip route add default via $gw_tel dev eth0 src $if_tel table 100 ip route add default via $gw_cnc dev eth1 src $if_cnc table 200 ip rule add from $if_tel table 100 ip rule add from $if_cnc table 200 FreeBSD pass out quick route-to ( 电信网卡 电信网关IP ) from 电信IP to any pass out quick route-to ( 网通网卡 网通网关IP ) from 网通IP to any本文出自 “天盈技术交流共享” 博客,请务必保留此出处http://takewin.blog.51cto.com/485348/110546 |
|
|---|---|




