找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3087|回复: 3

[其它] 四个网卡,三个是外网,回流如何设置

[复制链接]
发表于 2010-6-18 13:38:13 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
以下是我的配置,回流方法用了各种办法,就是不行。

/ ip firewall mangle

add chain=prerouting src-address=192.168.0.1-192.168.0.254 \
    action=mark-routing new-routing-mark=adsl passthrough=yes comment="走ADSL" \
    disabled=no

add chain=prerouting src-address=192.168.1.1-192.168.1.254 \
    action=mark-routing new-routing-mark=dianxin passthrough=yes \
    comment="电信固定地址" disabled=no

add chain=prerouting src-address=192.168.2.1-192.168.2.254 action=mark-routing \
    new-routing-mark=edu passthrough=yes comment="走教育网" disabled=no

/ ip firewall nat

add chain=srcnat out-interface=dianxin src-address=192.168.0.0/21 \
    action=masquerade comment="通过电信固定地址上网" disabled=no

add chain=srcnat out-interface=adsl src-address=192.168.0.0/21 \
    action=masquerade comment="通过电信ADSL上网" disabled=no

add chain=srcnat out-interface=edu src-address=192.168.0.0/21 \
    action=masquerade comment="通过教育固定地址上网" disabled=no
routeros
发表于 2010-6-18 13:40:29 | 显示全部楼层
本帖最后由 YAWPYNG 于 2010-6-18 13:41 编辑

太舊的ROS版本才需要設定回流吧!
現在的ROS版本跟本不用阿.

你設回流原因是?????
routeros
回复

使用道具 举报

 楼主| 发表于 2010-6-18 14:05:51 | 显示全部楼层
/ ip firewall nat
add chain=dstnat in-interface=dianxin dst-address=外网地址  protocol=tcp \
    dst-port=80 action=dst-nat to-addresses=192.168.0.2 to-ports=80 comment="" \
    disabled=no
外网的80端口映射到192.168.0.2的80端口。这样外网可以访问了,但是内网不能!
routeros
回复

使用道具 举报

发表于 2010-6-18 15:12:49 | 显示全部楼层
新版的一般不需要做回流,你这个是因为多线引起的问题
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-2 22:42 , Processed in 0.064096 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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