转帖自:许昌星宇电脑网络科技中心
安装完ROS2.9.27后,进入命令界面输入用户名和密码后进入管理命令。输入setup---a---a----g设置内网网卡地址为192.168.1.1/24,网关192.168.1.1。重起退出。
WINBOX进入设置界面 interfaces把1和2改成LAN和WAN
interfaces-- + ---PPPOE CLIENT 进入设置项 先设置GENERAL里的INTERFACE 选 WAN 再设置DIAL OUT里的 USER为ADSL用户名 PASSWORD为密码前边有选框打勾意思是保存密码 PROFILE---DEFAULT 在ADD DEFAULT ROUTE前打勾 设置完后点OK保存
设置DNS缓存 IP---DNS---STATIC---SETTINGS 进入设置界面PRIMARY DNS(主DNS)SECONDAY DNS(辅DNS)在ALLOW REMOTE REQUESTS前打勾 CACHE SIZE(缓存大小一般设9999)
删除本地路由IP---ROUTE LIST 把0.0.0.0/0 192.168.1.1删除掉
设置共享上网 IP----FIREWALL---NAT---- + 在NET RULE里设置 CHAIN为SRCNAT ACTION为MASQUERADE
第一步
/ ip add add interface=ether2 address=192.168.0.254/255.255.255.0
第二步
/ interface pppoe-client add name="pppoe-out1" interface=ether1 user="ADSL帐号" password="ADSL密码" add-default-route=yes disabled=no
/ ip firewall nat add action=masquerade chain=srcnat src-address=192.168.0.0/255.255.255.0
/ ip firewall mangle add chain=forward protocol=tcp tcp-flags=syn action=change-mss new-mss=1400
ROS终极提速脚本
RouterOS终极提速,彻底解决ROS小包(网络游戏数据包)转发性能差的问题
以下只给有ROS基础的人看,2.9.7以上版本支持,2.9.26上调试通过
ROS终端界面直接输入即可
HTB QOS 流量质量控制
/ ip firewall mangle
add chain=forward p2p=all-p2p action=mark-connection new-connection-mark=p2p_conn passthrough=yes comment="" disabled=no
add chain=forward connection-mark=p2p_conn action=mark-packet new-packet-mark=p2p passthrough=yes comment="" disabled=no
add chain=forward connection-mark=!p2p_conn action=mark-packet new-packet-mark=general passthrough=yes comment="" disabled=no
add chain=forward packet-size=32-512 action=mark-packet new-packet-mark=small passthrough=yes comment="" disabled=no
add chain=forward packet-size=512-1200 action=mark-packet new-packet-mark=big passthrough=yes comment="" disabled=no
/ queue tree
add name="p2p1" parent=wan packet-mark=p2p limit-at=2000000 queue=default priority=8 max-limit=6000000 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name="p2p2" parent=lan packet-mark=p2p limit-at=2000000 queue=default priority=8 max-limit=6000000 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name="ClassA" parent=lan packet-mark="" limit-at=0 queue=default priority=8 max-limit=100000000 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name="ClassB" parent=ClassA packet-mark="" limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name="Leaf1" parent=ClassA packet-mark=general limit-at=0 queue=default priority=7 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name="Leaf2" parent=ClassB packet-mark=small limit-at=0 queue=default priority=5 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name="Leaf3" parent=ClassB packet-mark=big limit-at=0 queue=default priority=6 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
urst-limit=0 burst-threshold=0 burst-time=0s disabled=no
1-8级优先级控制,数字越小优先级越高
LAN内网接口
TEL 外网接口
SMALL 小包 32-512字节 5级优先级
BIG 大包 512-1200字节 6级优先级
general 其它包 1200-1500字节 7级优先级
P2P类 8级优先,全局限速 600KB/S下载
Leaf 子类
评论