You are on page 1of 2

LOAD BALANCING

/ip address add address=10.10.10.2/30 disabled=no interface=ether4-slave-local network=\ 10.10.10.0 add address=172.20.1.2/30 disabled=no interface=ether5-slave-local network=\ 172.20.1.0 add address=192.168.1.29/30 disabled=no interface=Local network=192.168.1.28

/ip firewall mangle add action=mark-connection chain=prerouting comment=speedy2 connection-state=\ new disabled=no dst-address-list=game in-interface=Local \ new-connection-mark=speedy2 nth=2,2 passthrough=yes add action=mark-routing chain=prerouting connection-mark=speedy2 disabled=no \ in-interface=Local new-routing-mark=speedy_2 passthrough=no add action=mark-packet chain=prerouting connection-mark=speedy2 disabled=no \ new-packet-mark=paket-speedy2 passthrough=no add action=mark-connection chain=prerouting comment=speedy1 connection-state=\ new disabled=no dst-address-list=!game in-interface=Local \ new-connection-mark=speedy1 nth=1,1 passthrough=yes add action=mark-routing chain=prerouting connection-mark=speedy1 disabled=no \ in-interface=Local new-routing-mark=speedy_1 passthrough=no add action=mark-packet chain=prerouting connection-mark=speedy1 disabled=no \

new-packet-mark=paket-speedy1 passthrough=no

/ip firewall nat add action=src-nat chain=srcnat connection-mark=speedy1 disabled=no \ to-addresses=10.10.10.2 add action=src-nat chain=srcnat connection-mark=speedy2 disabled=no \ to-addresses=172.20.1.2

/ip route add disabled=no distance=2 dst-address=0.0.0.0/0 gateway=172.20.1.1 \ routing-mark=speedy_2 scope=30 target-scope=10 add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.10.10.1 \ routing-mark=speedy_1 scope=30 target-scope=10