找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4319|回复: 5

[脚本] RouterOS首次打开网页强制跳转(帮忙看下,错在那里)

[复制链接]
发表于 2011-3-9 21:32:15 | 显示全部楼层 |阅读模式

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

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

×
用了以下两句脚本:
ip firewall mangle add chain=postrouting protocol=tcp  dst-address=10.24.28.200 dst-port=80 action=add-src-to-address-list  address-list=src2(访问过10.24.28.200的加到src2中)

ip firewall nat add chain=dstnat protocol=tcp dst-port=80  action=dst-nat to-addresses=10.24.28.200 to-ports=80 src-address-list=!src2(IP不在SRC2中的强制跳转到10.24.28.200)

在客户首次打开网页(如163.com),网页能强制跳转到10.24.28.200网址,但不能将客户的IP加到src2中(但在IE中直接输入10.24.28.200网址,能将客户的IP加到src2)。这是为什么?
routeros
发表于 2011-3-9 22:39:29 | 显示全部楼层
使用pppoe拨号还是固定ip?
routeros
回复

使用道具 举报

发表于 2011-3-9 22:44:20 | 显示全部楼层
本帖最后由 火蚂蚁 于 2011-3-9 22:51 编辑

chain=postrouting 应该是chain=prerouting吧???
routeros
回复

使用道具 举报

 楼主| 发表于 2011-3-10 07:10:55 | 显示全部楼层
用HOSPOT认证
routeros
回复

使用道具 举报

发表于 2011-3-10 13:25:43 | 显示全部楼层
本帖最后由 yus 于 2011-3-10 13:30 编辑

用hotspot认证还用这种方法!直接修改html文件代码就可以实现,何必用这种方法,hotspot的html文件很适合做这些
routeros
回复

使用道具 举报

 楼主| 发表于 2011-3-11 15:17:02 | 显示全部楼层

能指出具体改那个文件吗
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-3 05:06 , Processed in 0.052275 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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