注册 登录
自由的生活_软路由 返回首页

大刀的个人空间 https://bbs.routerclub.com/?2744 [收藏] [复制] [分享] [RSS]

日志

ROS PCC

已有 576 次阅读2012-5-14 00:03 |个人分类:ROS| 配置, address, setting, IP地址

首先进入ip address配置IP地址
在ip dns setting中配置好DNS缓锋,DNS为:61.139.2.69
Mangle标记配置
 

/ip firewall mangle
add action=mark-connection chain=prerouting comment="" disabled=no
in-interface=lan new-connection-mark=1st_conn passthrough=yes
per-connection-classifier=both-addresses:2/0
add action=mark-routing chain=prerouting comment="" connection-mark=1st_conn
disabled=no in-interface=lan new-routing-mark=1st_route passthrough=yes
/ip firewall mangle
add action=mark-connection chain=prerouting comment="" disabled=no
in-interface=lan new-connection-mark=2nd_conn passthrough=yes
per-connection-classifier=both-addresses:2/1
add action=mark-routing chain=prerouting comment="" connection-mark=2nd_conn
disabled=no in-interface=lan new-routing-mark=2nd_route passthrough=yes
回程路由设置
我们需要将从那个口进入就从相应的口回去,即保证每个外网口的数据能得到正确的路由
/ip firewall mangle
add chain=input in-interface=wan1 action=mark-connection new-connection-mark=1st_conn
add chain=input in-interface=wan2 action=mark-connection new-connection-mark=2nd_conn

 

路过

雷人

握手

鲜花

鸡蛋

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 注册

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-12-23 13:09 , Processed in 0.041013 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

返回顶部