ROS双线脚本PPPOE

时间:2013-07-22 10:40:02
【文件属性】:

文件名称:ROS双线脚本PPPOE

文件大小:3KB

文件格式:TXT

更新时间:2013-07-22 10:40:02

ROS脚本PPPOE

/ip address add address=192.168.0.254/255.255.255.0 interface=ether1 comment=lan /ip dns set primary-dns=202.96.209.5 secondary-dns=202.96.209.133 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=ether2 user="ad5712345" password="1111111" 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=ether1 connection-state=new nth=1,1,0 action=mark-connection new-connection-mark=1 passthrough=yes disabled=no /ip firewall mangle add chain=prerouting in-interface=ether1 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=ether3 user="ad0012345" password="222222" 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=ether1 connection-state=new nth=1,1,1 action=mark-connection new-connection-mark=2 passthrough=yes disabled=no /ip firewall mangle add chain=prerouting in-interface=ether1 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


网友评论