harap jangan di copi pastekan pada terminal anda,
tapi di sesuaikan dengan settingan yg anda miliki.
WAN1 =192.168.11.2/24 interface=ether1-isp1
WAN2 =192.168.12.2/24 interface=ether2-isp2
Local =192.168.1.1/24 interface=ether4-Lan
=== ip firewall mangle ===
add action=accept chain=prerouting disabled=no in-interface=ether1-isp1
add action=accept chain=prerouting disabled=no in-interface=ether2-isp2
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local new-connection-mark=wan1_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:2/0 src-address=192.168.1.0/24
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local new-connection-mark=wan2_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:2/1 src-address=192.168.1.0/24
add action=mark-routing chain=prerouting connection-mark=wan1_conn disabled=no new-routing-mark=to_wan1 passthrough=yes src-address=192.168.1.0/24
add action=mark-routing chain=prerouting connection-mark=wan2_conn disabled=no new-routing-mark=to_wan2 passthrough=yes src-address=192.168.1.0/24
=== ip firewall nat ===
add action=masquerade chain=srcnat disabled=no out-interface=ether1-isp1 src-address=192.168.1.0/24
add action=masquerade chain=srcnat disabled=no out-interface=ether2-isp2 src-address=192.168.1.0/24
=== ip route ===
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.11.1 routing-mark=to_wan1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.12.1 routing-mark=to_wan2 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.11.1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.12.1 scope=30 target-scope=10
bagi anda yang menggunakan dial pppoe langsung di mikrotik untuk interfacenya di arahkan langsung ke interface pppoenya
maaf bila ada kesalahan, karna ini juga bersifat sebagai catatan saya.
selalu menerima kritikan dan saran.
No comments:
Post a Comment