Advertisement
rootplg3544

wifi.id+indihome

Dec 9th, 2018
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1.  
  2. #Master mohon di koreksi
  3. #wifi.id+indihome
  4. apakah ini sudah betul 40+20=60
  5. atw 40+20=20+40
  6.  
  7. /ip address
  8. add address=192.168.1.2/24 interface=ether1 network=192.168.1.0
  9. add address=192.168.3.254/24 interface=ether5 network=192.168.3.0
  10. add address=192.168.7.2/24 interface=ether4 network=192.168.7.0
  11.  
  12. /ip dns
  13. set allow-remote-requests=yes servers=103.80.80.248,103.80.80.249,103.80.80.243,103.80.80.244
  14.  
  15. /ip firewall mangle
  16. add action=mark-connection chain=input in-interface=ether4 new-connection-mark=wms passthrough=yes
  17. add action=mark-connection chain=input in-interface=ether1 new-connection-mark=indihome passthrough=yes
  18. add action=mark-routing chain=output connection-mark=wms new-routing-mark=ke_wms passthrough=yes
  19. add action=mark-routing chain=output connection-mark=indihome new-routing-mark=ke_indihome passthrough=yes
  20. add action=accept chain=prerouting dst-address=192.168.7.0/24 in-interface=ether5
  21. add action=accept chain=prerouting dst-address=192.168.1.0/24 in-interface=ether5
  22. 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
  23. 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
  24. add action=mark-routing chain=prerouting connection-mark=wms in-interface=ether5 new-routing-mark=ke_wms passthrough=yes
  25. add action=mark-routing chain=prerouting connection-mark=indihome in-interface=ether5 new-routing-mark=ke_indihome passthrough=yes
  26.  
  27. /ip firewall nat
  28. add action=masquerade chain=srcnat out-interface=ether1
  29. add action=masquerade chain=srcnat out-interface=ether4
  30. add action=masquerade chain=srcnat comment="masquerade hotspot network"src-address=192.168.0.0/16
  31.  
  32. /ip route
  33. add check-gateway=ping distance=1 gateway=192.168.1.1 routing-mark=ke_indihome
  34. add check-gateway=ping distance=1 gateway=192.168.7.254 routing-mark=ke_wms
  35. add check-gateway=ping distance=1 gateway=192.168.7.254
  36. add check-gateway=ping distance=2 gateway=192.168.1.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement