Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. /ip firewall address-list
  2. add address=192.168.11.0/24 list=homenet
  3. add address=192.168.0.0/24 list=homenet
  4. add address=192.168.88.0/24 list=homenet
  5. add address=78.107.7.82 disabled=yes list=excludenet
  6. add address=192.168.88.0/24 list=excludenet
  7. add address=192.168.0.0/24 list=excludenet
  8. add address=192.168.11.0/24 list=excludenet
  9. /ip firewall filter
  10. add action=accept chain=input comment=SSH dst-port=22 in-interface=beeline protocol=tcp
  11. add action=accept chain=input comment=WWW dst-address=78.107.7.82 dst-port=80 in-interface=beeline protocol=tcp
  12. add action=accept chain=input dst-address=78.107.7.82 dst-port=443 in-interface=beeline protocol=tcp
  13. add action=accept chain=input comment="defconf: accept established,related,untracked" connection-state=\
  14. established,related,untracked
  15. add action=drop chain=input comment="defconf: drop invalid" connection-state=invalid
  16. add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
  17. add action=drop chain=input comment="defconf: drop all not coming from LAN" in-interface-list=!LAN
  18. add action=accept chain=forward comment="defconf: accept in ipsec policy" ipsec-policy=in,ipsec
  19. add action=accept chain=forward comment="defconf: accept out ipsec policy" ipsec-policy=out,ipsec
  20. add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related
  21. add action=accept chain=forward comment="defconf: accept established,related, untracked" connection-state=\
  22. established,related,untracked
  23. add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
  24. add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
  25. connection-state=new in-interface-list=WAN
  26. /ip firewall nat
  27. add action=dst-nat chain=dstnat comment=WWW dst-address=78.107.7.82 dst-port=80 in-interface=beeline protocol=tcp \
  28. to-addresses=192.168.11.10 to-ports=80
  29. add action=dst-nat chain=dstnat dst-address=78.107.7.82 dst-port=80 in-interface=bridge protocol=tcp src-address=\
  30. 192.168.11.0/24 to-addresses=192.168.11.10 to-ports=80
  31. add action=src-nat chain=srcnat dst-address=192.168.11.10 dst-port=80 out-interface=bridge protocol=tcp to-addresses=\
  32. 78.107.7.82
  33. add action=dst-nat chain=dstnat dst-address=78.107.7.82 dst-port=443 in-interface=beeline protocol=tcp to-addresses=\
  34. 192.168.11.10 to-ports=443
  35. add action=dst-nat chain=dstnat dst-address=78.107.7.82 dst-port=443 in-interface=bridge protocol=tcp src-address=\
  36. 192.168.11.0/24 to-addresses=192.168.11.10 to-ports=443
  37. add action=src-nat chain=srcnat dst-address=192.168.11.10 dst-port=443 out-interface=bridge protocol=tcp to-addresses=\
  38. 78.107.7.82
  39. add action=src-nat chain=srcnat comment="defconf: masquerade" dst-address-list=!excludenet out-interface=beeline \
  40. src-address=192.168.11.0/24 to-addresses=78.107.7.82
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement