summaryrefslogtreecommitdiff
path: root/etc/nftables.conf
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-12-03 10:12:33 +0000
committerXiao Pan <gky44px1999@gmail.com>2023-12-03 10:12:33 +0000
commit392092019bfb3266c7596c857ce01bc5e49eb0bd (patch)
treec157e057e252ff667f90dfbd1ddca9cf16fc93b7 /etc/nftables.conf
parentf1131958e4d6579724c42e114620328d2414824e (diff)
maybe prevent ipv6 leak
Diffstat (limited to 'etc/nftables.conf')
-rw-r--r--etc/nftables.conf4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/nftables.conf b/etc/nftables.conf
index 2dba5a76..7132abfd 100644
--- a/etc/nftables.conf
+++ b/etc/nftables.conf
@@ -58,7 +58,9 @@ table inet my_table {
# https://wiki.gentoo.org/wiki/Nftables/Examples#Basic_NAT
# needed by wireguard?
-table ip nat {
+# Need inet to masquerade both ipv4 and ipv6? If use ip it will only masquerade ipv4? If use ip6 it will only masquerade ipv6?
+# https://wiki.nftables.org/wiki-nftables/index.php/Nftables_families
+table inet nat {
chain prerouting {
type nat hook prerouting priority 0; policy accept;
}