Make IPv6 work.

This commit is contained in:
Julien Palard 2021-12-03 17:34:44 +01:00
parent 04d7f88368
commit 8b4e6d7843
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8

View File

@ -64,7 +64,8 @@
- package: name=nftables state=present
- copy:
- name: Copy nftables rules
copy:
content: |
#!/usr/sbin/nft -f
@ -76,6 +77,11 @@
type filter hook input priority 0;
iif lo accept
ct state established,related accept
icmp type echo-request counter accept
icmpv6 type echo-request counter accept
# accept neighbour discovery otherwise connectivity breaks:
icmpv6 type { nd-neighbor-solicit, nd-router-advert, nd-neighbor-advert } accept
tcp dport { ssh, http, https, smtp, imap2, imaps} ct state new accept
{{ nft_extra }}
counter drop