summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-02-23 15:34:41 +0100
committerPaul Holzinger <pholzing@redhat.com>2022-02-23 16:11:19 +0100
commiteab5a4cfb7b3bbb63cd2a1d9a5a69e9bc32d4cef (patch)
treea62b2aa6d199f264d9e6d7e98a28717decf1dd92 /contrib
parent8b2432422fc188e15130c888a05e41fd881b8ca4 (diff)
downloadpodman-eab5a4cfb7b3bbb63cd2a1d9a5a69e9bc32d4cef.tar.gz
podman-eab5a4cfb7b3bbb63cd2a1d9a5a69e9bc32d4cef.tar.bz2
podman-eab5a4cfb7b3bbb63cd2a1d9a5a69e9bc32d4cef.zip
Load ip_tables modules at boot
Rootless users cannot load the ip_tables module, in fedora 36 this module is no longer loaded by default so we have to add it manually. This is needed because rootless network setup tries to use iptables and if iptables-legacy is used instead of iptables-nft it will fail. To provide a better user experience we will load the module at boot. Note that this is not needed for RHEL because iptables-legacy is not supported on RHEL 8 and newer. [NO NEW TESTS NEEDED] Fixes #12661 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/modules-load.d/podman-iptables.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/modules-load.d/podman-iptables.conf b/contrib/modules-load.d/podman-iptables.conf
new file mode 100644
index 000000000..001ef8af8
--- /dev/null
+++ b/contrib/modules-load.d/podman-iptables.conf
@@ -0,0 +1,5 @@
+# On fedora 36 ip_tables is no longer auto loaded and rootless user have no permsissions to load it.
+# When we have actual nftables support in the future we might want to revisit this.
+# If you use iptables-nft this is not needed.
+ip_tables
+ip6_tables