]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc-net.in: fix nftables syntax for IPv6 NAT 4277/head
authorQuentin Lyons <36303164+n0p90@users.noreply.github.com>
Sun, 12 Feb 2023 02:03:42 +0000 (02:03 +0000)
committerQuentin Lyons <36303164+n0p90@users.noreply.github.com>
Sun, 12 Feb 2023 02:24:22 +0000 (02:24 +0000)
commit4de047f51365cc06a626ee9de49fec5f76556c66
tree9d69e8e22e0734ee30bced98b8eae6c7148622ce
parent08f0e7696579b7792b9b94ac4490de57824d0381
lxc-net.in: fix nftables syntax for IPv6 NAT

The nftables masquarade rule for IPv6 was using the IPv4 syntax. This
resulted in the following error when starting the lxc-net.service with
LXC_IPV6_NAT="true" and nftables:

    Feb 11 18:54:54 pc lxc-net[4936]: Error: conflicting protocols specified: ip6 vs. ip
    Feb 11 18:54:54 pc lxc-net[4936]:                              ^^^^^^^^
    Feb 11 18:54:54 pc lxc-net[4917]: Failed to setup lxc-net.
    Feb 11 18:54:54 pc systemd[1]: lxc-net.service: Main process exited, code=exited, status=1/FAILURE
    Feb 11 18:54:54 pc systemd[1]: lxc-net.service: Failed with result 'exit-code'.
    Feb 11 18:54:54 pc systemd[1]: Failed to start LXC network bridge setup.

Signed-off-by: Quentin Lyons <36303164+n0p90@users.noreply.github.com>
config/init/common/lxc-net.in