Advertisement
nagual2

Untitled

Mar 11th, 2024
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.40 KB | None | 0 0
  1. /ipv6 firewall filter
  2. add action=accept chain=input comment=\
  3.     "defconf: accept established,related,untracked" connection-state=\
  4.     established,related,untracked
  5. add action=drop chain=input comment="defconf: drop invalid" connection-state=\
  6.     invalid log=yes
  7. add action=accept chain=input comment="defconf: accept ICMPv6" protocol=\
  8.     icmpv6
  9. add action=accept chain=input comment="defconf: accept UDP traceroute" port=\
  10.     33434-33534 protocol=udp
  11. add action=accept chain=input comment=\
  12.     "defconf: accept DHCPv6-Client prefix delegation." dst-port=546 protocol=\
  13.     udp src-address=fe80::/10
  14. add action=accept chain=input comment="defconf: accept IKE" dst-port=500,4500 \
  15.     protocol=udp
  16. add action=accept chain=input comment="defconf: accept ipsec AH" protocol=\
  17.     ipsec-ah
  18. add action=accept chain=input comment="defconf: accept ipsec ESP" protocol=\
  19.     ipsec-esp
  20. add action=accept chain=input comment=\
  21.     "defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
  22. add action=drop chain=input comment=\
  23.     "defconf: drop everything else not coming from LAN" in-interface-list=WAN \
  24.     log=yes
  25. add action=accept chain=forward comment=\
  26.     "defconf: accept established,related,untracked" connection-state=\
  27.     established,related,untracked
  28. add action=drop chain=forward comment="defconf: drop invalid" \
  29.     connection-state=invalid log=yes
  30. add action=drop chain=forward comment=\
  31.     "defconf: drop packets with bad src ipv6" src-address-list=bad_ipv6
  32. add action=drop chain=forward comment=\
  33.     "defconf: drop packets with bad dst ipv6" dst-address-list=bad_ipv6
  34. add action=drop chain=forward comment="defconf: rfc4890 drop hop-limit=1" \
  35.     hop-limit=equal:1 protocol=icmpv6
  36. add action=accept chain=forward comment="defconf: accept ICMPv6" protocol=\
  37.     icmpv6
  38. add action=accept chain=forward comment="defconf: accept HIP" protocol=139
  39. add action=accept chain=forward comment="defconf: accept IKE" dst-port=\
  40.     500,4500 protocol=udp
  41. add action=accept chain=forward comment="defconf: accept ipsec AH" protocol=\
  42.     ipsec-ah
  43. add action=accept chain=forward comment="defconf: accept ipsec ESP" protocol=\
  44.     ipsec-esp
  45. add action=accept chain=forward comment=\
  46.     "defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
  47. add action=drop chain=forward comment=\
  48.     "defconf: drop everything else not coming from LAN" in-interface-list=WAN \
  49.     log=yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement