找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 5225|回复: 7

[其它] [求助]ADSL如何做回流

[复制链接]
发表于 2006-11-9 07:47:25 | 显示全部楼层 |阅读模式

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

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

×
Router os 2.96版本,使用ADSL+花生壳,端口映射和共享上网没有问题,但回流总是不成功。我在论坛上找了好几天了,以前在2.8里回流成功。先谢谢了
routeros
 楼主| 发表于 2006-11-9 19:09:40 | 显示全部楼层
找编了所有的论坛,根本就没有router os 2.9如何做动态IP回流的文章,到底能不能?这么多高手知道的不可能不会发贴子的。英文说明里也没有动态IP的回流介绍。还是用回2。8算了。
routeros
回复

使用道具 举报

 楼主| 发表于 2006-11-10 21:11:20 | 显示全部楼层
再顶上去,看高手们好不好意思
routeros
回复

使用道具 举报

发表于 2006-11-16 14:26:59 | 显示全部楼层
偶也需要这个呀……顶!
routeros
回复

使用道具 举报

发表于 2007-3-31 23:48:29 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2007-4-1 22:07:59 | 显示全部楼层
用2.8的那个脚本,然后自己针对2.9的指令格式修改一下就可以了!
routeros
回复

使用道具 举报

发表于 2007-4-1 22:26:21 | 显示全部楼层
For ROS 2.9.27  ADSL动态IP的映射和回流了~(修改自网络2.8版本脚本)

#增加上线、断网监控
/ tool netwatch
add host=202.103.225.68 timeout=1s interval=10s up-script=addhuiliu down-script=removehuiliu disabled=no
#添加上线脚本
/system script add name="addhuiliu" source="
#添加外网映射
/ ip firewall nat
add chain=dstnat in-interface=all dst-address=[/ip address get [/ip address find interface= [ /interface find type=pppoe-out ]]  address]  dst-port=21 protocol=tcp action=dst-nat to-addresses=192.168.2.250 to-ports=21 comment="21" disabled=no
/ ip firewall nat
add chain=dstnat in-interface=all dst-address=[/ip address get [/ip address find interface= [ /interface find type=pppoe-out ]]  address]  dst-port=80 protocol=tcp action=dst-nat to-addresses=192.168.2.250 to-ports=80 comment="80" disabled=no
#下面做回流
#ftp端口回流
/ ip firewall nat
add chain=srcnat out-interface=lan dst-address=[/ip address get [/ip address find interface= [ /interface find type=pppoe-out ]]  address]  dst-port=21 protocol=tcp action=src-nat to-addresses=202.96.128.60 to-ports=21 comment="21src" disabled=no
/ ip firewall nat
add chain=dstnat in-interface=lan dst-address=[/ip address get [/ip address find interface= [ /interface find type=pppoe-out ]]  address]  dst-port=21 protocol=tcp action=dst-nat to-addresses=192.168.2.250 to-ports=21 comment="21dst" disabled=no
#Web端口回流
/ ip firewall nat
add chain=srcnat out-interface=lan dst-address=[/ip address get [/ip address find interface= [ /interface find type=pppoe-out ]]  address]  dst-port=80 protocol=tcp action=src-nat to-addresses=202.96.128.60 to-ports=80 comment="80src" disabled=no
/ ip firewall nat
add chain=dstnat in-interface=lan dst-address=[/ip address get [/ip address find interface= [ /interface find type=pppoe-out ]]  address]  dst-port=80 protocol=tcp action=dst-nat to-addresses=192.168.2.250 to-ports=80 comment="80dst" disabled=no "

#添加断网脚本
/system script add name="removehuiliu" source="
#移除外网映射
/ip firewall dst-nat
remove 21
remove 80
#移除回流映射
/ip firewall src-nat
remove 21src
remove 80src
/ip firewall dst-nat
remove 21dst
remove 80dst "

说明:其中端口不用我说了吧,就是21和80,192.168.2.250是要映射到的内网IP,各位自己更改~ 202.103.225.68可以改成任一公网IP,不影响使用~

[ 本帖最后由 qazmlp 于 2007-4-1 22:27 编辑 ]
routeros
回复

使用道具 举报

发表于 2007-4-2 11:28:24 | 显示全部楼层
多谢老兄。正在从固定IP换到ADSL头痛呢。这下搞定了.....
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-29 23:36 , Processed in 0.083171 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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