ubnt解决方案
查看: 1529|回复: 3

[RouterOS] ROS第一次开网站跳转到公告页(任意地址跳转)方法

[复制链接]

2

回帖

567

积分

52 小时

在线时间

中尉

注册时间
2016-1-6
金币
493 个
威望
0 个
荣誉
0 个
累计签到:35 天
连续签到:0 天
[LV.50]初入江湖
发表于 2016-8-23 17:36 |显示全部楼层
ROS首页强开配置
$ _4 W/ h# o3 ]9 B3 A脚本:
' h( R: s- b& u% ]
$ M, u2 T1 y7 H' w+ T' t3 k8 u4 W/ip firewall nat% C7 V- g4 ]' r3 W9 Q
add action=dst-nat chain=dstnat comment=ToAddress disabled=no dst-port=80 protocol=tcp src-address-list=src1 to-addresses=192.168.88.1 to-ports=809 u9 w$ |. ^" j. V8 M
/ip firewall mangle
6 N$ E. T, A& N4 ~2 nadd action=add-src-to-address-list address-list=src1 address-list-timeout=3s chain=prerouting comment=TimeOut1 disabled=no dst-port=80 protocol=tcp src-address-list=!src2
/ I: h# }% H! d1 V( Jadd action=add-src-to-address-list address-list=src2 address-list-timeout=3h chain=prerouting comment=TimeOut2 disabled=no dst-port=80 protocol=tcp src-address-list=src1
$ C& `  M: g3 o, d8 n# a3 f; ~5 n9 T. n' [5 S% S  o, |2 J
备注:
' ?/ G) H+ S% T3 u+ y3 s" U1,192.168.88.1为内网首页强开WEB服务器IP。1 B2 E# Y6 A- `* q& C1 Q
2,强开3秒,强开过的IP在3小时内不会再强开。
7 Y1 A& P; I$ M0 Z  O
$ p- g2 L) J% H) D0 R6 t/ d) X" U

940

回帖

1万

积分

1388 小时

在线时间

上校

注册时间
2009-10-11
金币
14196 个
威望
2 个
荣誉
1 个
累计签到:1700 天
连续签到:1 天
[LV.1825]无线元老
发表于 2016-8-23 19:37 |显示全部楼层
顶个,虽然不用,但是还是不错的.
回复

使用道具 举报

2

回帖

30

积分

1 小时

在线时间

新兵上阵

注册时间
2016-8-28
金币
23 个
威望
1 个
荣誉
0 个
累计签到:1 天
连续签到:0 天
[LV.20]漫游旅程
发表于 2016-8-28 21:14 |显示全部楼层
直接面对消费者的商业环境还是蛮有用的,谢谢楼主分享经验。
回复

使用道具 举报

78

回帖

167

积分

49 小时

在线时间

上等兵

注册时间
2010-3-8
金币
83 个
威望
0 个
荣誉
0 个
累计签到:1 天
连续签到:0 天
[LV.20]漫游旅程
发表于 2017-5-31 12:22 |显示全部楼层
内网首页强开WEB服务器2 h' Y( r$ c0 T& R" \

; A; E' ^( ~2 W5 E5 ^6 n3 q/ _. J
! m- W, K8 P+ a! \我没有咋办呢  
回复

使用道具 举报

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

本版积分规则

Archiver | 手机版 | 无线门户 ( 粤ICP备11076993号|粤公网安备44010602008359号 ) |网站地图

GMT+8, 2026-6-15 17:37

返回顶部 返回列表