1
0
Fork 0

Add nftables config

main
urosm 2024-11-18 15:03:37 +01:00
parent fd74e6a125
commit 462301bd1f
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
#!/usr/sbin/nft -f
flush ruleset
table inet filter {
chain input {
type filter hook input priority filter; policy drop;
iif lo accept comment "Accept any localhost traffic"
ct state invalid drop comment "Drop invalid connections"
ct state established,related accept comment "Accept traffic originated from us"
meta l4proto ipv6-icmp accept comment "Accept ICMPv6"
meta l4proto icmp accept comment "Accept ICMP"
udp dport mdns ip6 daddr ff02::fb accept comment "Accept mDNS"
udp dport mdns ip daddr 224.0.0.251 accept comment "Accept mDNS"
icmpv6 type { nd-neighbor-solicit, nd-router-advert, nd-neighbor-advert } accept comment "Accept neighbour discovery"
tcp dport ipp accept comment "Accept IPP"
}
}