Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Master mohon di koreksi
- #wifi.id+indihome
- apakah ini sudah betul 40+20=60
- atw 40+20=20+40
- /ip address
- add address=192.168.1.2/24 interface=ether1 network=192.168.1.0
- add address=192.168.3.254/24 interface=ether5 network=192.168.3.0
- add address=192.168.7.2/24 interface=ether4 network=192.168.7.0
- /ip dns
- set allow-remote-requests=yes servers=103.80.80.248,103.80.80.249,103.80.80.243,103.80.80.244
- /ip firewall mangle
- add action=mark-connection chain=input in-interface=ether4 new-connection-mark=wms passthrough=yes
- add action=mark-connection chain=input in-interface=ether1 new-connection-mark=indihome passthrough=yes
- add action=mark-routing chain=output connection-mark=wms new-routing-mark=ke_wms passthrough=yes
- add action=mark-routing chain=output connection-mark=indihome new-routing-mark=ke_indihome passthrough=yes
- add action=accept chain=prerouting dst-address=192.168.7.0/24 in-interface=ether5
- add action=accept chain=prerouting dst-address=192.168.1.0/24 in-interface=ether5
- add action=mark-connection chain=prerouting dst-address-type=!local in-interface=ether5 new-connection-mark=wms passthrough=yes per-connection-classifier=src-address:2/0
- add action=mark-connection chain=prerouting dst-address-type=!local in-interface=ether5 new-connection-mark=indihome passthrough=yes per-connection-classifier=src-address:2/1
- add action=mark-routing chain=prerouting connection-mark=wms in-interface=ether5 new-routing-mark=ke_wms passthrough=yes
- add action=mark-routing chain=prerouting connection-mark=indihome in-interface=ether5 new-routing-mark=ke_indihome passthrough=yes
- /ip firewall nat
- add action=masquerade chain=srcnat out-interface=ether1
- add action=masquerade chain=srcnat out-interface=ether4
- add action=masquerade chain=srcnat comment="masquerade hotspot network"src-address=192.168.0.0/16
- /ip route
- add check-gateway=ping distance=1 gateway=192.168.1.1 routing-mark=ke_indihome
- add check-gateway=ping distance=1 gateway=192.168.7.254 routing-mark=ke_wms
- add check-gateway=ping distance=1 gateway=192.168.7.254
- add check-gateway=ping distance=2 gateway=192.168.1.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement