帮忙改下PCC的脚本
在网上找到的这个多线PCC脚本,用了一段时间稳定性可以,但是用四条4M 网通AD做出来最大下载速度只有1M/S,线路是没问题的,换成海蜘蛛下载速度可以达到1.5M/S,应该是脚本的问题,脚本放出来请高手们来给改改,小弟新手,不胜感激 脚本如下。::::标记及PCC
/ip firewall mangle
add action=change-mss chain=forward comment="" disabled=no new-mss=1400 protocol=tcp tcp-flags=syn
:for i from=1 to=4 do= {/ip firewall mangle add action=mark-connection chain=input comment="" disabled=no in-interface=("pppoe-out".$i) new-connection-mark=("pppoe-out".$i) passthrough=yes}
:for i from=1 to=4 do= {/ip firewall mangle add action=mark-routing chain=output comment="" connection-mark=("pppoe-out".$i) disabled=no new-routing-mark=("to_pppoe-out".$i) passthrough=yes}
:for i from=1 to=4 do= {/ip firewall mangle add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local new-connection-mark=("pppoe-out".$i) passthrough=yes per-connection-classifier=("both-addresses:4/".($i-1)) src-address=192.168.1.0/24}
:for i from=1 to=4 do= {/ip firewall mangle add action=mark-routing chain=prerouting comment="" connection-mark=("pppoe-out".$i) disabled=no new-routing-mark=("to_pppoe-out".$i) passthrough=yes src-address=192.168.1.0/24}
:::添加路由表
:for i from=1 to=4 do= {/ip route add comment=("adsl".$i) disabled=no distance=1 dst-address=0.0.0.0/0 gateway=("pppoe-out".$i) routing-mark=("to_pppoe-out".$i)}
:for i from=1 to=4 do= {/ip route add check-gateway=ping comment=("adsl".$i) disabled=no distance=10 dst-address=0.0.0.0/0 gateway=("pppoe-out".$i)}
:for i from=1 to=4 do= {/ip firewall nat add action=masquerade chain=srcnat comment="" disabled=no out-interface=("pppoe-out".$i)}
正常现象:victory: 都没有人回答吗 学习了! 谢谢~!
搞定 没 。。。。如果没同定。我帮你搞好
页:
[1]