Loadbalancing PCC 4 WAN
Tuesday, June 18, 2019
Edit
Kali ini saya akan membagikan script loadbalancing 4 WAN , langsung saja ya guys di dibawah ini..
Semoga Bermanfaat
Penulis : Een Pahlefi,S.Kom
/ip firewall mangle
add action=accept chain=prerouting dst-address=192.168.31.0/24 in-interface-list=LAN
add action=accept chain=prerouting dst-address=192.168.32.0/24 in-interface-list=LAN
add action=accept chain=prerouting dst-address=192.168.33.0/24 in-interface-list=LAN
add action=accept chain=prerouting dst-address=192.168.34.0/24 in-interface-list=LAN
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local in-interface-list=LAN new-connection-mark=ISP1_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:4/0
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local in-interface-list=LAN new-connection-mark=ISP2_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:4/1
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local in-interface-list=LAN new-connection-mark=ISP3_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:4/2
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local in-interface-list=LAN new-connection-mark=ISP4_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:4/3
add action=mark-routing chain=prerouting connection-mark=ISP1_conn in-interface-list=LAN new-routing-mark=to_ISP1 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=ISP2_conn in-interface-list=LAN new-routing-mark=to_ISP2 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=ISP3_conn in-interface-list=LAN new-routing-mark=to_ISP3 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=ISP4_conn in-interface-list=LAN new-routing-mark=to_ISP4 passthrough=yes
add action=mark-routing chain=output connection-mark=ISP1_conn new-routing-mark=to_ISP1 passthrough=yes
add action=mark-routing chain=output connection-mark=ISP2_conn new-routing-mark=to_ISP2 passthrough=yes
add action=mark-routing chain=output connection-mark=ISP3_conn new-routing-mark=to_ISP3 passthrough=yes
add action=mark-routing chain=output connection-mark=ISP4_conn new-routing-mark=to_ISP4 passthrough=yes
Semoga Bermanfaat
Penulis : Een Pahlefi,S.Kom