| Jalan Juga Load Balancing |
[ok@MikroTik] /ip address pr
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 192.168.1.2/24 192.168.1.0 WAN1
1 10.11.12.1/28 10.11.12.0 Local ( ke beberapa router LAB )
2 192.168.2.1/29 192.168.2.0 WAN2
[ok@MikroTik] /ip firewall> mangle pr
Flags: X - disabled, I - invalid, D - dynamic
1 chain=input action=mark-connection new-connection-mark=WAN1_conn passthrough=yes in-interface=WAN1
2 chain=input action=mark-connection new-connection-mark=WAN2_conn passthrough=yes in-interface=WAN2
3 chain=output action=mark-routing new-routing-mark=to_WAN1 passthrough=yes connection-mark=WAN1_conn
4 chain=output action=mark-routing new-routing-mark=to_WAN2 passthrough=yes connection-mark=WAN2_conn
5 chain=prerouting action=accept dst-address=192.168.1.0/24 in-interface=Local
6 chain=prerouting action=accept dst-address=192.168.2.1/29 in-interface=Local
7 chain=prerouting action=mark-connection new-connection-mark=WAN1_conn passthrough=yes dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:2/0
8 chain=prerouting action=mark-connection new-connection-mark=WAN2_conn passthrough=yes dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:2/1
9 chain=prerouting action=mark-routing new-routing-mark=to_WAN1 passthrough=yes in-interface=Local connection-mark=WAN1_conn
10 chain=prerouting action=mark-routing new-routing-mark=to_WAN2 passthrough=yes in-interface=Local connection-mark=WAN2_conn
/ip route
add dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_WAN1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.2.1 routing-mark=to_WAN2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.1.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.2.1 distance=2 check-gateway=ping
[ok@MikroTik] /ip firewall nat> pr
Flags: X - disabled, I - invalid, D - dynamic
0 X chain=srcnat action=masquerade
1 chain=srcnat action=masquerade out-interface=WAN1
2 chain=srcnat action=masquerade out-interface=wan2
Dan apabila menggunakan hotspot login mikrotik dan user mengalami Problem hotspot login maka perlu dirubah mangglenya terutama untuk bagian ini
7 chain=prerouting action=mark-connection new-connection-mark=WAN1_conn passthrough=yes dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:2/0 hotspot=auth
8 chain=prerouting action=mark-connection new-connection-mark=WAN2_conn passthrough=yes dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:2/1 hotspot=auth
atau bisa juga
/ip firewall nat add action=accept chain=pre-hotspot disabled=no dst-address-type=!local hotspot=auth
semoga bisa dijadikan referensi dan pengingat saya juga kalao lupa
ref: Forummikrotik.com | aacable
Comments
Post a Comment