#1095889 lxc: Poor default policy in firewall rules for lxc chain

Package:
lxc
Source:
lxc
Description:
Linux Containers userspace tools
Submitter:
Henrik Christian Grove
Date:
2025-02-13 10:42:02 UTC
Severity:
normal
#1095889#5
Date:
2025-02-13 10:38:29 UTC
From:
To:
The /usr/libexec/lxc/lxc-net script adds some default firewall rules.
But those don't specify a policy for the input chain so it gets an
accept policy by default. That's not good.

It also makes it a bit pointless that rules are then added that accepts
DNS and DHCP traffic.

The default configuration is to use RFC-1918 addresses for lxc guests
and that makes it hard for traffic from the outside (I assume we can
restrict ourselves to protect against that), but it's hard to be sure,
and I guess it's also possible to configure the networking so LXC guests
are more directly connected to the outside while still relying on that
chain.