biar ga lupa hehehehehehe...................
biarpun biar nyontek di web sebelah..................
lumayan buat isi blog sekalian buat catatan sendiri.................
/ip address
add address=192.168.10.1/24 network=192.168.10.0 \
broadcast=192.168.10.255 interface=local
add address=192.168.1.1/24 network=192.168.1.0 \
broadcast=192.168.1.255 interface=speedy1
add address=192.168.2.1/24 network=192.168.2.0 \
broadcast=192.168.2.255 interface=speedy2
/ip router
add gateway dst-address=0.0.0.0/0 \
gateway=192.168.1.1,192.168.2.1 check-gateway=ping
/ip firewall nat
add chain=srcnat out-interface=speedy1 action=masquerede
add chain=srcnat out-interface=speedy2 action=masquerede
/ip firewall mangle
add chain-input in-interface=speedy1 \
action=mark-conection new-connection-mark=speedy1_conn
add chain-input in-interface=speedy2 \
action=mark-conection new-connection-mark=speedy2_conn
add chain-output connection-mark=speedy1_conn \
action=mark-routing new-routing-mark=to_speedy1
add chain-output connection-mark=speedy2_conn \
action=mark-routing new-routing-mark=to_speedy2
/ip route
add dst-address=0.0.0.0/0 gateway=192.168.1.1 \
routing-mark=speedy1
add dst-address=0.0.0.0/0 gateway=192.168.2.1 \
routing-mark=speedy2
nb: for mikrotik 3.x
Tidak ada komentar:
Posting Komentar