Advertisement
moneron

blKC

Mar 22nd, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. [admin@MikroTik] > export
  2. # mar/22/2018 18:51:42 by RouterOS 6.39.2
  3. # software id =
  4. #
  5. /interface list
  6. add name=LAN
  7. /interface list member
  8. add interface=ether3 list=LAN
  9. add interface=ether4 list=LAN
  10. /ip address
  11. add address=10.0.0.1/24 interface=ether2 network=10.0.0.0
  12. add address=192.168.3.1/24 interface=ether3 network=192.168.3.0
  13. add address=192.168.4.1/24 interface=ether4 network=192.168.4.0
  14. /ip dhcp-client
  15. add dhcp-options=hostname,clientid disabled=no interface=ether1
  16. /ip dns
  17. set allow-remote-requests=yes
  18. /ip firewall address-list
  19. add address=192.168.3.2 list=proxed
  20. add address=192.168.3.3 list=proxed
  21. add address=192.168.4.2-192.168.4.254 list=proxed
  22. /ip firewall filter
  23. add action=drop chain=input dst-port=53 in-interface=ether1 protocol=udp
  24. add action=accept chain=forward disabled=yes dst-port=53 protocol=udp
  25. add action=drop chain=forward comment="Drop direct WEB access" connection-state=new in-interface-list=LAN log=yes out-interface=ether1
  26. /ip firewall mangle
  27. add action=route chain=prerouting dst-port=80 in-interface-list=LAN passthrough=yes protocol=tcp route-dst=10.0.0.5 src-address-list=proxed
  28. add action=route chain=prerouting dst-port=443 in-interface-list=LAN passthrough=yes protocol=tcp route-dst=10.0.0.5 src-address-list=proxed
  29. /ip firewall nat
  30. add action=masquerade chain=srcnat comment="Default rule" ipsec-policy=out,none out-interface=ether1
  31. add action=src-nat chain=srcnat comment="Hide wireless users" out-interface=ether2 src-address=192.168.4.0/24 to-addresses=192.168.4.1
  32. add action=redirect chain=dstnat comment="Redirect DNS" dst-port=53 in-interface-list=LAN protocol=udp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement