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
 
(2 revisi perantara oleh pengguna yang sama tidak ditampilkan)
Baris 1: Baris 1:
/ip firewall nat
/ip firewall nat add action=masquerade chain=srcnat out-interface=------------
add action=masquerade chain=srcnat out-interface=------------
/ip firewall nat 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 \
 
/ip firewall mangle 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=\
 
/ip firewall mangle  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=\
 
/ip firewall mangle  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"
/ip route add check-gateway=ping distance=1 gateway=------------ routing-mark="Ke ISP2"
add check-gateway=ping distance=1 gateway=------------ routing-mark="Ke ISP2"
/ip route add distance=1 gateway=----------,-----------
add distance=1 gateway=----------,-----------

Revisi terkini sejak 31 Januari 2023 07.38

/ip firewall nat add action=masquerade chain=srcnat out-interface=------------
/ip firewall nat 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
/ip firewall mangle 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
/ip firewall mangle  add action=mark-routing chain=prerouting connection-mark=ISP1 in-interface=\
   ----- new-routing-mark="Ke ISP1" passthrough=yes
/ip firewall mangle  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"
/ip route add check-gateway=ping distance=1 gateway=------------ routing-mark="Ke ISP2"
/ip route add distance=1 gateway=----------,-----------