From ef1764c0ec38f987087f8dc9727aa12c441720a0 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 8 Nov 2020 15:10:05 +0100 Subject: Firewall: ICMPv6: accept link-local multicast receiver notification messages. --- roles/common/templates/etc/nftables.conf.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'roles/common') diff --git a/roles/common/templates/etc/nftables.conf.j2 b/roles/common/templates/etc/nftables.conf.j2 index 808383c..cc79671 100755 --- a/roles/common/templates/etc/nftables.conf.j2 +++ b/roles/common/templates/etc/nftables.conf.j2 @@ -64,7 +64,10 @@ table netdev filter { # accept neighbour discovery for autoconfiguration, RFC 4890 sec. 4.4.1 ip6 hoplimit 255 icmpv6 type { 133,134,135,136,141,142 } counter accept - # reject all remaining ICMP/ICMPv6 traffic + # accept link-local multicast receiver notification messages + ip6 saddr fe80::/10 ip6 daddr ff02::/16 ip6 hoplimit 1 icmpv6 type { 130,131,132,143 } counter accept + + # drop all remaining ICMP/ICMPv6 traffic meta l4proto { icmp, icmpv6 } drop # bogon filter (cf. RFC 6890 for non-global ip addresses) -- cgit v1.2.3