LOAD BALANCING 2 Line ISP
Line 1 Speedy 2mb = Browsing (Jalur Browsing) --> WAN1
Line 2 PadiNet 1mb = Game (Jalur Game) --> WAN2
Line 1 Speedy 2mb = Browsing (Jalur Browsing) --> WAN1
Line 2 PadiNet 1mb = Game (Jalur Game) --> WAN2
/ip address
add address=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=Local comment=”” disabled=no
add address=10.111.0.2/24 network=10.111.0.0 broadcast=10.111.0.255 interface=wlan2 comment=”” disabled=no
add address=10.112.0.2/24 network=10.112.0.0 broadcast=10.112.0.255 interface=wlan1 comment=”” disabled=no
/ip firewall mangle
add chain=prerouting in-interface=Local protocol=tcp dst-port=80,443,53,8080,3128 connection-state=new nth=1,1 action=mark-connection new-connection-mark=Browsing passthrough=yes comment=”Browsing TCP” disabled=no
add chain=prerouting in-interface=Local protocol=udp dst-port=80,443,53,8080,3128 connection-state=new nth=1,1 action=mark-connection new-connection-mark=Browsing passthrough=yes comment=”Browsing UDP” disabled=no
add chain=prerouting in-interface=Local connection-mark=Browsing action=mark-routing new-routing-mark=Browsing passthrough=no comment=”” disabled=no
add chain=prerouting in-interface=Local protocol=tcp dst-port=39100-39190,14009-14010,4300,19000,10001-10011,40000,39311,14501 connection-state=new nth=1,1 action=mark-connection new-connection-mark=Game passthrough=yes comment=”Gemscool TCP” disabled=no
add chain=prerouting in-interface=Local protocol=udp dst-port=40000-40010,14009-14026,40040-40500,1293,1479,39311,15125 connection-state=new nth=1,1 action=mark-connection new-connection-mark=Game passthrough=yes comment=”Gemscool UDP” disabled=no
add chain=prerouting in-interface=Local connection-mark=Game action=mark-routing new-routing-mark=Game passthrough=no comment=”” disabled=no
Port Game Online add address=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=Local comment=”” disabled=no
add address=10.111.0.2/24 network=10.111.0.0 broadcast=10.111.0.255 interface=wlan2 comment=”” disabled=no
add address=10.112.0.2/24 network=10.112.0.0 broadcast=10.112.0.255 interface=wlan1 comment=”” disabled=no
/ip firewall mangle
add chain=prerouting in-interface=Local protocol=tcp dst-port=80,443,53,8080,3128 connection-state=new nth=1,1 action=mark-connection new-connection-mark=Browsing passthrough=yes comment=”Browsing TCP” disabled=no
add chain=prerouting in-interface=Local protocol=udp dst-port=80,443,53,8080,3128 connection-state=new nth=1,1 action=mark-connection new-connection-mark=Browsing passthrough=yes comment=”Browsing UDP” disabled=no
add chain=prerouting in-interface=Local connection-mark=Browsing action=mark-routing new-routing-mark=Browsing passthrough=no comment=”” disabled=no
add chain=prerouting in-interface=Local protocol=tcp dst-port=39100-39190,14009-14010,4300,19000,10001-10011,40000,39311,14501 connection-state=new nth=1,1 action=mark-connection new-connection-mark=Game passthrough=yes comment=”Gemscool TCP” disabled=no
add chain=prerouting in-interface=Local protocol=udp dst-port=40000-40010,14009-14026,40040-40500,1293,1479,39311,15125 connection-state=new nth=1,1 action=mark-connection new-connection-mark=Game passthrough=yes comment=”Gemscool UDP” disabled=no
add chain=prerouting in-interface=Local connection-mark=Game action=mark-routing new-routing-mark=Game passthrough=no comment=”” disabled=no
/ip firewall nat
add chain=srcnat out-interface=wlan1 action=masquerade comment=”NAT Modem1”
add chain=srcnat out-interface=wlan2 action=masquerade comment=”NAT Modem2”
/ip route
add dst-address=0.0.0.0/0 gateway=10.111.0.1 scope=255 target-scope=10 routing-mark=Browsing distance=1 comment=”" disabled=no
add dst-address=0.0.0.0/0 gateway=10.112.0.1 scope=255 target-scope=10 routing-mark=Game distance=1 comment=”" disabled=no
add dst-address=0.0.0.0/0 gateway=10.112.0.1,10.111.0.1 scope=255 target-scope=10 distance=1 comment=”" disabled=no
add chain=srcnat out-interface=wlan1 action=masquerade comment=”NAT Modem1”
add chain=srcnat out-interface=wlan2 action=masquerade comment=”NAT Modem2”
/ip route
add dst-address=0.0.0.0/0 gateway=10.111.0.1 scope=255 target-scope=10 routing-mark=Browsing distance=1 comment=”" disabled=no
add dst-address=0.0.0.0/0 gateway=10.112.0.1 scope=255 target-scope=10 routing-mark=Game distance=1 comment=”" disabled=no
add dst-address=0.0.0.0/0 gateway=10.112.0.1,10.111.0.1 scope=255 target-scope=10 distance=1 comment=”" disabled=no