LOAD BALANCING PCC MODE
IP Gateway :
ISP 1 = 192.168.62.82
ISP 2 = 192.168.5.1
/ip firewall mangle
add action=mark-connection chain=input comment="" connection-state=new \
disabled=no in-interface="ether1-citranet" new-connection-mark=isp-1 passthrough=yes
add action=mark-connection chain=input comment="" connection-state=new \
disabled=no in-interface="ether5-indihome" new-connection-mark=isp-2 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=isp-1 \
disabled=no new-routing-mark=jalur-1 passthrough=no
add action=mark-routing chain=output comment="" connection-mark=isp-2 \
disabled=no new-routing-mark=jalur-2 passthrough=no
add action=mark-connection chain=prerouting comment="" disabled=no \
dst-address-type=!local in-interface="ether2-lokal" new-connection-mark=\
isp-1 passthrough=yes per-connection-classifier=both-addresses-and-ports:2/0
add action=mark-connection chain=prerouting comment="" disabled=no \
dst-address-type=!local in-interface="ether2-lokal" new-connection-mark=\
isp-2 passthrough=yes per-connection-classifier=both-addresses-and-ports:2/1
add action=mark-routing chain=prerouting comment="" connection-mark=isp-1 \
disabled=no in-interface="ether2-lokal" new-routing-mark=jalur-1 passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=isp-2 \
disabled=no in-interface="ether2-lokal" new-routing-mark=jalur-2 passthrough=yes
/ip firewall nat
add chain=srcnat action=masquerade out-interface="ether1-citranet" comment="" disabled=no
add chain=srcnat action=masquerade out-interface="ether2-indihome" comment="" disabled=no
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.62.82 \
routing-mark=jalur-1
add disabled=no distance=2 dst-address=0.0.0.0/0
gateway=192.168.5.1 \
routing-mark=jalur-2
SELESAI !
Tidak ada komentar:
Posting Komentar