rules.v6.j2 654 B

123456789101112131415161718192021222324
  1. # This file is managed by ansible, don't make changes here - they will be overwritten.
  2. *filter
  3. :INPUT ACCEPT [0:0]
  4. :FORWARD ACCEPT [0:0]
  5. :OUTPUT ACCEPT [0:0]
  6. COMMIT
  7. *mangle
  8. :PREROUTING ACCEPT [0:0]
  9. :INPUT ACCEPT [0:0]
  10. :FORWARD ACCEPT [0:0]
  11. :OUTPUT ACCEPT [0:0]
  12. -N DNS
  13. -A INPUT -p udp -m udp --dport 53 -j DNS
  14. -A INPUT -p tcp -m tcp --dport 53 -j DNS
  15. {% if v6dnsips is defined %}
  16. {% for entry in v6dnsips %}
  17. -A DNS -d {{entry}}/32 -j RETURN
  18. {% endfor %}
  19. {% endif %}
  20. :POSTROUTING ACCEPT [0:0]
  21. {% if ffrl_tun is defined %}
  22. -A POSTROUTING -o tun-+ -p tcp -m tcp --tcp-flags SYN,RST SYN -m tcpmss ! --mss 0:1220 -j TCPMSS --set-mss 1220
  23. {% endif %}
  24. COMMIT