找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3533|回复: 4

[策略设置] 网吧内多线路端口分流后部分游戏登录问题

[复制链接]
发表于 2009-11-10 22:55:46 | 显示全部楼层 |阅读模式

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

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

×
本网吧外线四条都是电信的,分别为主线固定IP光纤2M,固定IP3M,ADSL10M,ADSL4M,内网双网卡绑定做桥,按照端口分流方式走,但是部分游戏例如:起凡,CS平台游戏,穿越火线类似平台类游戏登陆后无法进入到房间里面,分析了一下应该是所有UDP连接都走那个固定IP3M线路设定造成的,禁用了此项策略后也就是说固定IP3M线路停掉,让所有UDP都走线固定IP光纤2M就OK了,但是主线带宽只有2M,这样总是突破了带宽网吧内部网游非常卡,给电信打了电话说我3M那条线路没有做任何端口限制,我在想会不会是部分游戏设计的时候要求他的所有协议的连接都必须走同一个IP才行,也就是说必须绑定,会不会有这样的游戏呢,又要走TCP又要走UDP?
请各位有经验的朋友指导一下,谢谢了!
具体策略脚本如下:(Router OS 3.13)


Flags: X - disabled, I - invalid, D - dynamic
0   chain=forward action=change-mss new-mss=1440 tcp-flags=syn
     in-interface=bonding1 protocol=tcp

1   ;;; WEB   
     chain=prerouting action=mark-connection new-connection-mark=WEB-con1
     passthrough=yes connection-state=new src-address-list=!No_Make
     dst-port=80-81,8080 protocol=tcp nth=2,1

2   chain=prerouting action=mark-connection new-connection-mark=WEB-con2
     passthrough=yes connection-state=new src-address-list=!No_Make
     dst-port=80-81,8080 protocol=tcp nth=2,2

3   chain=prerouting action=mark-routing new-routing-mark=pppoe-10m
     passthrough=no src-address-list=!No_Make dst-port=80-81,8080
     protocol=tcp connection-mark=WEB-con1

4   chain=prerouting action=mark-routing new-routing-mark=pppoe-04m
     passthrough=no src-address-list=!No_Make dst-port=80-81,8080
     protocol=tcp connection-mark=WEB-con2

5   ;;; 10M  
     chain=prerouting action=mark-connection new-connection-mark=ftp-1
     passthrough=yes connection-state=new src-address-list=!No_Make
     in-interface=bonding1 dst-port=20,21,443,9912 protocol=tcp

6   chain=prerouting action=mark-routing new-routing-mark=pppoe-10m
     passthrough=no src-address-list=!No_Make in-interface=bonding1
     dst-port=20,21,443,9912 protocol=tcp connection-mark=ftp-1

7   ;;; UDP 3M
     chain=prerouting action=mark-connection new-connection-mark=UDP-1
     passthrough=yes connection-state=new src-address-list=!No_Make
     protocol=udp

8   chain=prerouting action=mark-routing new-routing-mark=TEL-3M
     passthrough=no src-address-list=!No_Make protocol=udp
     connection-mark=UDP-1
routeros
发表于 2009-11-11 00:27:03 | 显示全部楼层
路过,看看。
routeros
回复

使用道具 举报

发表于 2009-11-11 00:59:33 | 显示全部楼层
做ip分流吧
routeros
回复

使用道具 举报

发表于 2009-11-12 23:20:28 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2009-11-13 04:40:02 | 显示全部楼层
做IP或端口 分流标记吧

/ ip firewall mangle

add chain=prerouting in-interface=lan protocol=tcp dst-port=443 \

    action=add-dst-to-address-list address-list=bank address-list-timeout=3h \

    comment="" disabled=no

add chain=prerouting in-interface=lan dst-address-list=bank \

    action=mark-connection new-connection-mark=1 passthrough=yes comment="" \

    disabled=no
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-29 11:04 , Processed in 0.059510 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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