ROS软路由论坛 ROSABC.com 网络方案网络工程交流

 找回密码
 会员注册

QQ登录

只需一步,快速开始

查看: 5335|回复: 4

[交流] 首次跳转配置讨论

[复制链接]
发表于 2011-6-26 01:07:10 | 显示全部楼层 |阅读模式

马上注册成为ROSABC会员,随时发帖回复。

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

x
现状:配置了ROS软路由路由NAT转发和防火墙的跳转规则。
问题:参考论坛里首次网页跳转的配置,规则是配置好了,但是页面每次都会跳转到指定页面而不是首次跳转。
导出的firewall配置文件rsc:
# jan/27/2000 06:46:12 by RouteROS软路由 5.20
# software id = W5EY-LHT9
#
/ip firewall connection tracking
set enabled=yes generic-timeout=10m icmp-timeout=10s tcp-close-timeout=10s
tcp-close-wait-timeout=10s tcp-established-timeout=1d
tcp-fin-wait-timeout=10s tcp-last-ack-timeout=10s
tcp-syn-received-timeout=5s tcp-syn-sent-timeout=5s tcp-syncookie=no
tcp-time-wait-timeout=10s udp-stream-timeout=3m udp-timeout=10s
/ip firewall mangle
add action=add-src-to-address-list address-list=src1 address-list-timeout=6s
chain=prerouting disabled=no dst-address=!125.66.246.48 dst-port=80
in-interface=!Wan protocol=tcp src-address-list=!src2
add action=add-src-to-address-list address-list=src2 address-list-timeout=3h
chain=prerouting disabled=no dst-address=125.66.246.48 dst-port=80
in-interface=!Wan protocol=tcp
/ip firewall nat
add action=masquerade chain=srcnat disabled=no out-interface=Wan
to-addresses=0.0.0.0
add action=dst-nat chain=dstnat disabled=no dst-port=80 protocol=tcp
src-address-list=src1 to-addresses=125.66.246.48 to-ports=80
/ip firewall service-port
set ftp disabled=no ports=21
set tftp disabled=no ports=69
set irc disabled=no ports=6667
set h323 disabled=no
set sip disabled=no ports=5060,5061 sip-direct-media=yes
set pptp disabled=no


非常感谢各位的关注,配置这种问题的朋友大家
发表于 2011-6-29 04:22:11 | 显示全部楼层
支持一下吧!











电子工票blog.sina.com.cn/s/blog_c71b362c0101izrg.html
发表于 2011-7-1 13:29:37 | 显示全部楼层
别沉啊   别沉     现在的状况是每次都跳转到指定页面,我只想首次打开页面是指定的就行了。 求助啊
发表于 2011-7-3 07:50:59 | 显示全部楼层
去掉了ip firewall mangle里的dst-address地址就好了
发表于 2011-7-4 12:14:23 | 显示全部楼层
晨蓉丰8929 发表于 2013-7-12 00:55

                               
登录/注册后可看大图

支持一下吧!



谢谢你,这个问题自己已经解决了。
您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

不良信息举报Q:2000617

软路由

不良信息举报Q:2000617|Archiver|ROS软路由论坛 ROSABC.com 网络方案网络工程交流

GMT+8, 2025-8-5 13:17 , Processed in 1.008362 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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