mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-04-28 18:42:47 +00:00
Merge pull request #4277 from n0p90/fix-nft-ip6-nat
lxc-net.in: fix nftables syntax for IPv6 NAT
This commit is contained in:
commit
2d3dab782d
@ -92,7 +92,7 @@ start_nftables() {
|
|||||||
add table ip6 lxc;
|
add table ip6 lxc;
|
||||||
flush table ip6 lxc;
|
flush table ip6 lxc;
|
||||||
add chain ip6 lxc postrouting { type nat hook postrouting priority 100; };
|
add chain ip6 lxc postrouting { type nat hook postrouting priority 100; };
|
||||||
add rule ip6 lxc postrouting ip saddr ${LXC_IPV6_NETWORK} ip daddr != ${LXC_IPV6_NETWORK} counter masquerade;
|
add rule ip6 lxc postrouting ip6 saddr ${LXC_IPV6_NETWORK} ip6 daddr != ${LXC_IPV6_NETWORK} counter masquerade;
|
||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
NFT_RULESET="${NFT_RULESET};
|
NFT_RULESET="${NFT_RULESET};
|
||||||
|
Loading…
Reference in New Issue
Block a user