Skip to content

iptables: fix compat with legacy

Natanael Copa requested to merge ncopa/awall:iptables-legacy-compat into master

Fix case where iptables binary uses nft backend in LXC container.

iptables-save may not output anything at all, while /proc/net/ip_tables_names exists, so we check for both before concluding that firewall is not enabled in kernel. More importantly, it prevents awall activate --force to exit with failure.

fixes commit 49e61853 (iptables: fix to work with nft backend)

Merge request reports

Loading