Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Lb NTH 1+1:2
- #Jangan ditelan mentah2
- isp1 = 102.168.10.20/24 route 192.168.10.1
- isp2 = 192.168.11.20/24 route 192.168.11.1
- /ip firewall mangle
- add chain=prerouting in-interface=ether3-lokal connection-state=new nth=2,1 action=mark-connection new-connection-mark=lb_1 passthrough=yes comment=client disabled=no
- add chain=prerouting in-interface= ether3-lokal connection-mark=lb_1 action=mark-routing new-routing-mark=route_lb_1 passthrough=no comment=client disabled=no
- add chain=prerouting in-interface=ether3-lokal connection-state=new nth=2,2 action=mark-connection new-connection-mark=lb_2 passthrough=yes comment=client disabled=no
- add chain=prerouting in-interface=ether3-lokal connection-mark=lb_2 action=mark-routing new-routing-mark=route_lb_2 passthrough=no comment=client disabled=no
- /ip firewall nat
- add chain=srcnat out-interface=ether1-isp1 action=masquerade comment=isp1 disabled=no
- add chain=srcnat out-interface=ether2-isp2 action=masquerade comment=isp2 disabled=no
- /ip route
- add dst-address=0.0.0.0/0 gateway=192.168.10.1 scope=255 target-scope=10 routing-mark=route_lb_1 comment=isp1 disabled=no
- add dst-address=0.0.0.0/0 gateway=192.168.11.1 scope=255 target-scope=10 routing-mark=route_lb_2 comment=isp2 disabled=no
- add dst-address=0.0.0.0/0 gateway=192.168.11.1 scope=255 target-scope=10 comment=default routing connection disabled=no
- add dst-address=0.0.0.0/0 gateway=192.168.11.1 scope=255 target-scope=10 comment=defaultroutingconnection disabled=no
- add dst-address=0.0.0.0/0 gateway=192.168.11.1 distance=3 scope=255 target-scope=10 comment=defaultroutingconnection disabled=no
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement