博客统计信息

用户名:天盈技术交流
文章数:28
评论数:16
访问量:21663
无忧币:20
博客积分:232
博客等级:2
注册日期:2008-09-21

我的技术圈(0)

更多>>
linux的IProute2和FreeBSD的PF,双线基于源地址的路由回包设置
2008-11-06 11:06:57
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://takewin.blog.51cto.com/485348/110546
张森力作,大家学习
 
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

0人
了这篇文章
类别:LINUX技术圈()┆阅读()┆评论() ┆ 推送到技术圈返回首页

文章评论

 
 

发表评论            

2011-2012跨年度有奖征文:项目回忆录
昵  称:
登录  快速注册
验证码:

请点击后输入验证码博客过2级,无需填写验证码

内  容: