Routeros dual ADSL Load Balancing script

Source: Internet
Author: User
Tags passthrough routeros

Routeros dual ADSL Load Balancing script [plain] # may/25/2013 09:26:48 by RouterOS 5.20/ip firewall mangle add action = mark-connection chain = input disabled = no in-interface = pppoe-out1 new- connection-mark = wan1_conn passthrough = yes add action = mark-connection chain = input disabled = no in-interface = pppoe-out2 new-connection-mark = wan2_conn passthrough = yes add action = mark- routing chain = output connection-mark = wanw.conn disabled = No new-routing-mark = to_wan1 passthrough = yes add action = mark-routing chain = output connection-mark = wan2_conn disabled = no new-routing-mark = to_wan2 passthrough = yes add action = mark-connection chain = prerouting disabled = no dst-address-type =! Local in-interface = wan1 new-connection-mark = wanw.conn passthrough = yes \ per-connection-classifier = both-addresses-and-ports: 2/0 add action = mark-connection chain = prerouting disabled = no dst-address-type =! Local in-interface = wan1 new-connection-mark = wan2_conn passthrough = yes \ per-connection-classifier = both-addresses-and-ports: 2/1 add action = mark-connection chain = prerouting disabled = no dst-address-type =! Local in-interface = wan2 new-connection-mark = wanw.conn passthrough = yes \ per-connection-classifier = both-addresses-and-ports: 2/0 add action = mark-connection chain = prerouting disabled = no dst-address-type =! Local in-interface = wan2 new-connection-mark = wan2_conn passthrough = yes \ per-connection-classifier = both-addresses-and-ports: 2/1 add action = mark-routing chain = prerouting connection-mark = wanw.conn disabled = no in-interface = wan1 new-routing-mark = to_wan1 passthrough = yes add action = mark-routing chain = prerouting connection-mark = wan2_conn disabled = no in-interface = wan1 new-routing-mark = to_wan2 passthrough = ye S add action = mark-routing chain = prerouting connection-mark = wanw.conn disabled = no in-interface = wan2 new-routing-mark = to_wan1 passthrough = yes add action = mark-routing chain = prerouting connection-mark = wan2_conn disabled = no in-interface = wan2 new-routing-mark = to_wan2 passthrough = yes/ip firewall nat add action = masquerade chain = srcnat disabled = no out -interface = pppoe-out1 add action = masquerade chain = srcna T disabled = no out-interface = pppoe-out2/ip route add check-gateway = ping disabled = no distance = 1 dst-address = 0.0.0.0/0 gateway = pppoe-out1 routing-mark = to_wan1 scope = 30 target-scope = 10 add check-gateway = ping disabled = no distance = 1 dst-address = 0.0.0.0/0 gateway = pppoe-out2 routing-mark = to_wan2 scope = 30 target-scope = 10 add check-gateway = ping disabled = no distance = 1 dst-address = 0.0.0.0/0 gateway = pppoe-out 1 scope = 30 target-scope = 10 add check-gateway = ping disabled = no distance = 2 dst-address = 0.0.0.0/0 gateway = pppoe-out2 scope = 30 target-scope = 10 this the script was copied from Alex, a foreigner. It turns out to be 4-wire. You can add it up, modify 2/0 2/1 to 4/0 4/1 4/2 4/3 online banking is also easy to use, and the download bandwidth can be superimposed.
In interfaces, the dial end is wan1 wan2; the LAN is lanPPPOE dialing is a pppoe-out1 and pppoe-out2, it is better to use this default name. These symbols are easy to confuse. You need to manually add the NIC interface and dial-up, mainly mangle and route. Copy and paste it in new terminal.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.