ip6tables-enabled 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. *nat
  2. :PREROUTING ACCEPT [0:0]
  3. :OUTPUT ACCEPT [0:0]
  4. :POSTROUTING ACCEPT [0:0]
  5. :PR-QBS - [0:0]
  6. :PR-QBS-SERVICES - [0:0]
  7. -A PREROUTING -j PR-QBS
  8. -A PREROUTING -j PR-QBS-SERVICES
  9. -A POSTROUTING -o vif+ -j ACCEPT
  10. -A POSTROUTING -o lo -j ACCEPT
  11. -A POSTROUTING -j MASQUERADE
  12. COMMIT
  13. *raw
  14. :QBS-PREROUTING - [0:0]
  15. -A PREROUTING -j QBS-PREROUTING
  16. COMMIT
  17. *mangle
  18. :QBS-POSTROUTING - [0:0]
  19. -A POSTROUTING -j QBS-POSTROUTING
  20. COMMIT
  21. *filter
  22. :INPUT DROP [0:0]
  23. :FORWARD DROP [0:0]
  24. :OUTPUT ACCEPT [0:0]
  25. :QBS-FORWARD - [0:0]
  26. -A INPUT -m state --state INVALID -j DROP
  27. -A INPUT -i lo -j ACCEPT
  28. -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
  29. -A INPUT ! -i vif+ -p udp -s fe80::/64 -d fe80::/64 --dport 546 -j ACCEPT
  30. -A INPUT -i vif+ -p icmpv6 --icmpv6-type router-advertisement -j DROP
  31. -A INPUT -i vif+ -p icmpv6 --icmpv6-type redirect -j DROP
  32. -A INPUT -i vif+ -p icmpv6 -j ACCEPT
  33. -A INPUT -i vif+ -j REJECT --reject-with icmp6-adm-prohibited
  34. -A INPUT -p icmpv6 -j ACCEPT
  35. -A INPUT -j DROP
  36. -A FORWARD -m state --state INVALID -j DROP
  37. -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
  38. -A FORWARD -j QBS-FORWARD
  39. -A FORWARD -i vif+ -o vif+ -j DROP
  40. -A FORWARD -i vif+ -j ACCEPT
  41. -A FORWARD -j DROP
  42. COMMIT