Load Balance 2 ISP Mikrotik: Perbedaan antara revisi

Dari Catatan Pak Samsul
Loncat ke navigasi Loncat ke pencarian
(←Membuat halaman berisi '/ip firewall nat add action=masquerade chain=srcnat out-interface=------------ add action=masquerade chain=srcnat out-interface=------------ /ip firewall mangle add...')
 
kTidak ada ringkasan suntingan
Baris 1: Baris 1:
/ip firewall nat
/ip firewall nat
add action=masquerade chain=srcnat out-interface=------------
add action=masquerade chain=srcnat out-interface=------------
add action=masquerade chain=srcnat out-interface=------------
add action=masquerade chain=srcnat out-interface=------------




/ip firewall mangle
/ip firewall mangle
add action=mark-connection chain=prerouting dst-address-type=!local \
add action=mark-connection chain=prerouting dst-address-type=!local \
     in-interface=----- new-connection-mark=ISP1 passthrough=yes \
     in-interface=----- new-connection-mark=ISP1 passthrough=yes \
     per-connection-classifier=src-address-and-port:2/0
     per-connection-classifier=src-address-and-port:2/0
add action=mark-connection chain=prerouting dst-address-type=!local \
add action=mark-connection chain=prerouting dst-address-type=!local \
     in-interface=----- new-connection-mark=ISP2 passthrough=yes \
     in-interface=----- new-connection-mark=ISP2 passthrough=yes \
     per-connection-classifier=src-address-and-port:2/1
     per-connection-classifier=src-address-and-port:2/1
add action=mark-routing chain=prerouting connection-mark=ISP1 in-interface=\
add action=mark-routing chain=prerouting connection-mark=ISP1 in-interface=\
     ----- new-routing-mark="Ke ISP1" passthrough=yes
     ----- new-routing-mark="Ke ISP1" passthrough=yes
add action=mark-routing chain=prerouting connection-mark=ISP2 in-interface=\
add action=mark-routing chain=prerouting connection-mark=ISP2 in-interface=\
     ----- new-routing-mark="Ke ISP2" passthrough=yes
     ----- new-routing-mark="Ke ISP2" passthrough=yes




/ip route
/ip route
add check-gateway=ping distance=1 gateway=------------ routing-mark="Ke ISP1"
add check-gateway=ping distance=1 gateway=------------ routing-mark="Ke ISP1"
add check-gateway=ping distance=1 gateway=------------ routing-mark="Ke ISP2"
add check-gateway=ping distance=1 gateway=------------ routing-mark="Ke ISP2"
add distance=1 gateway=----------,-----------
add distance=1 gateway=----------,-----------

Revisi per 31 Januari 2023 07.32

/ip firewall nat
add action=masquerade chain=srcnat out-interface=------------
add action=masquerade chain=srcnat out-interface=------------


/ip firewall mangle
add action=mark-connection chain=prerouting dst-address-type=!local \
   in-interface=----- new-connection-mark=ISP1 passthrough=yes \
   per-connection-classifier=src-address-and-port:2/0
add action=mark-connection chain=prerouting dst-address-type=!local \
   in-interface=----- new-connection-mark=ISP2 passthrough=yes \
   per-connection-classifier=src-address-and-port:2/1
add action=mark-routing chain=prerouting connection-mark=ISP1 in-interface=\
   ----- new-routing-mark="Ke ISP1" passthrough=yes
add action=mark-routing chain=prerouting connection-mark=ISP2 in-interface=\
   ----- new-routing-mark="Ke ISP2" passthrough=yes


/ip route
add check-gateway=ping distance=1 gateway=------------ routing-mark="Ke ISP1"
add check-gateway=ping distance=1 gateway=------------ routing-mark="Ke ISP2"
add distance=1 gateway=----------,-----------