Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions files/nftables/999-log.nft
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
#
# Silently drop broad broadcast and multicast traffic. We'd get a lot of IPv6 router solicitations and other things of little
# interest in the logs generated below otherwise.
#
add rule inet filter input pkttype broadcast counter drop comment "Silently drop broadcast"
add rule inet filter input pkttype multicast counter drop comment "Silently drop multicast"
add rule inet filter forward pkttype broadcast counter drop comment "Silently drop broadcast"
add rule inet filter forward pkttype multicast counter drop comment "Silently drop multicast"
#
# Log packets being dropped, with rate limiting to avoid the logging itself becoming a problem (attack vector).
#
add rule inet filter input counter limit rate 5/second log flags all prefix "input_drop: " counter drop comment "Default deny (and log) packets to this host"
Expand Down
3 changes: 3 additions & 0 deletions files/nftables/nftables.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ table inet filter {
ct state established counter accept
# silently drop invalid packets
ct state invalid counter drop

#Allow DHCPv6
ip6 saddr fe80::/10 ip6 daddr fe80::/10 udp sport 547 udp dport 546 accept
}
chain forward {
type filter hook forward priority 0; policy drop;
Expand Down
Loading