|
楼主 |
发表于 2011-3-15 14:57:05
|
显示全部楼层
本帖最后由 crc8 于 2011-3-15 15:32 编辑
谢谢,我用的是脚本生成器。可否具体指出哪里不够好呢?我贴个脚本:- /ip address add address=192.168.100.1/255.255.255.0 interface=LAN comment=lan
- /ip dns set primary-dns=202.96.134.133 secondary-dns=202.96.128.68 allow-remote-requests=yes
- /ip firewall mangle add chain=forward protocol=tcp tcp-flags=syn action=change-mss new-mss=1440
- /interface pppoe-client add name="pppoe-out1" interface=ADSL1 user="31561@163.gd" password="23456" add-default-route=no disabled=no
- /interface pppoe-client enable pppoe-out1
- /ip address add address=58.58.58.1/32 interface=pppoe-out1 comment="1"
- /ip route add gateway=58.58.58.1 routing-mark=1 comment="1"
- /ip firewall mangle add chain=prerouting in-interface=LAN connection-state=new nth=2,1,0 action=mark-connection new-connection-mark=1 passthrough=yes disabled=no
- /ip firewall mangle add chain=prerouting in-interface=LAN connection-mark=1 action=mark-routing new-routing-mark=1 passthrough=no disabled=no
- /ip firewall nat add chain=srcnat connection-mark=1 action=src-nat to-addresses=58.58.58.1 to-ports=0-65535 comment="1" disabled=no
- /interface pppoe-client add name="pppoe-out2" interface=ADSL2 user="30629@163.gd" password="23456" add-default-route=no disabled=no
- /interface pppoe-client enable pppoe-out2
- /ip address add address=58.58.58.2/32 interface=pppoe-out2 comment="2"
- /ip route add gateway=58.58.58.2 routing-mark=2 comment="2"
- /ip firewall mangle add chain=prerouting in-interface=LAN connection-state=new nth=2,1,1 action=mark-connection new-connection-mark=2 passthrough=yes disabled=no
- /ip firewall mangle add chain=prerouting in-interface=LAN connection-mark=2 action=mark-routing new-routing-mark=2 passthrough=no disabled=no
- /ip firewall nat add chain=srcnat connection-mark=2 action=src-nat to-addresses=58.58.58.2 to-ports=0-65535 comment="2" disabled=no
- /interface pppoe-client add name="pppoe-out3" interface=ADSL3 user="36023@163.gd" password="23456" add-default-route=no disabled=no
- /interface pppoe-client enable pppoe-out3
- /ip address add address=58.58.58.3/32 interface=pppoe-out3 comment="3"
- /ip route add gateway=58.58.58.3 routing-mark=3 comment="3"
- /ip firewall mangle add chain=prerouting in-interface=LAN connection-state=new nth=2,1,2 action=mark-connection new-connection-mark=3 passthrough=yes disabled=no
- /ip firewall mangle add chain=prerouting in-interface=LAN connection-mark=3 action=mark-routing new-routing-mark=3 passthrough=no disabled=no
- /ip firewall nat add chain=srcnat connection-mark=3 action=src-nat to-addresses=58.58.58.3 to-ports=0-65535 comment="3" disabled=no
复制代码 |
|