Advertisement
moneron

MT Firewall TLS-host example

Mar 15th, 2018
1,772
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. /ip firewall filter
  2. add action=jump chain=forward comment="Goto check TLS-hello" \
  3. connection-bytes=0-3000 dst-port=443 in-interface=eth2 jump-target=\
  4. tls-filter protocol=tcp
  5. add action=accept chain=forward comment=\
  6. "Defconf: accept estableshed, related" connection-state=\
  7. established,related
  8. add action=drop chain=forward comment="Defconf: drop invalid packets" \
  9. connection-state=invalid
  10. add action=drop chain=forward comment=\
  11. "defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
  12. connection-state=new in-interface=eth1
  13. add action=reject chain=tls-filter comment=vk.com protocol=tcp reject-with=\
  14. tcp-reset tls-host=vk.com
  15. add action=reject chain=tls-filter protocol=tcp reject-with=tcp-reset \
  16. tls-host=*.vk.com
  17. add action=reject chain=tls-filter comment=mikrotik.com protocol=tcp \
  18. reject-with=tcp-reset tls-host=mikrotik.com
  19. add action=reject chain=tls-filter protocol=tcp reject-with=tcp-reset \
  20. tls-host=*.mikrotik.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement