nftables.conf 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #!/usr/sbin/nft -f
  2. #
  3. # Example nftables configuration for letmein.
  4. #
  5. flush ruleset
  6. table inet filter {
  7. chain LETMEIN-INPUT {
  8. # This chain will be managed and filled by letmeind.
  9. # Do NOT put manual rules here.
  10. # Leave this chain empty in this configuration.
  11. # letmeind will dynamically insert 'accept' rules here for the leases.
  12. }
  13. chain INPUT {
  14. type filter hook input priority filter; policy drop;
  15. iifname lo accept
  16. ct state invalid drop
  17. ct state related,established accept
  18. meta l4proto ipv6-icmp accept
  19. meta l4proto icmp accept
  20. ip protocol igmp accept
  21. # Your static rules here...
  22. # Jump to letmein dynamic rules.
  23. jump LETMEIN-INPUT
  24. reject
  25. }
  26. chain FORWARD {
  27. type filter hook forward priority filter; policy drop;
  28. # Your static rules here...
  29. reject
  30. }
  31. chain OUTPUT {
  32. type filter hook output priority filter; policy drop;
  33. oifname lo accept
  34. ct state related,established accept
  35. meta l4proto ipv6-icmp accept
  36. meta l4proto icmp accept
  37. ip protocol igmp accept
  38. # Your static rules here...
  39. meta l4proto udp accept
  40. meta l4proto tcp accept
  41. reject
  42. }
  43. }