You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
iptables and iptables-legacy with Docker containers #319
I'm running a Docker container on the host network. I figured out that creating iptables from inside the container will make them appear in the host's iptables-legacy. When running iptc on the host machine, it uses iptables-legacy. However, sometimes I need to access and modify the rules from iptables.
I'm running Raspberry Pi OS.
Is it possible to specify the binary (?) that iptc uses?
Activity
ldx commentedon Mar 11, 2021
It's not a binary,
python-iptablesuses the underlying C libraries, so it can only work withiptables-legacyrules.Can you make sure you always use
iptables-legacy, both on the host and in the container?