Is it possible to use iptables instead of nftables? #1332
-
I am trying out podman on Debian Trixie. I have iptables installed but not nftables. However, when I run a podman container it fails because netavark wants to use nftables:
I installed nftables from apt and it works now but I would prefer to use iptables. Is it possible to make netavark use iptables instead? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
you just need to switch the firewall_driver in containers.conf to iptables, basically the inverse of the way described here https://fedoraproject.org/wiki/Changes/NetavarkNftablesDefault But note we are about to deprecate the iptables driver and remove it likely next year. The nftables driver offers much better feature set and performance to us. And in general iptables has been deprecated for a long time now so I would recommend against using iptables. |
Beta Was this translation helpful? Give feedback.
-
Change the following line in your
to
The |
Beta Was this translation helpful? Give feedback.
-
That was so fast. Thank you both. I will stick with nftables instead because of the planned deprecation. Thank you again. |
Beta Was this translation helpful? Give feedback.
you just need to switch the firewall_driver in containers.conf to iptables, basically the inverse of the way described here https://fedoraproject.org/wiki/Changes/NetavarkNftablesDefault
But note we are about to deprecate the iptables driver and remove it likely next year. The nftables driver offers much better feature set and performance to us. And in general iptables has been deprecated for a long time now so I would recommend against using iptables.