Can't initialize iptables table filter and nat: Permission denied

Solution Unverified - Updated -

Issue

Executing iptables command in an application container fails with the following error.

[root@pod]# iptables -L
iptables v1.8.4 (legacy): can't initialize iptables table `filter': Permission denied
Perhaps iptables or your kernel needs to be upgraded.
[root@pod]# iptables -L -t nat
iptables v1.8.4 (legacy): can't initialize iptables table `nat': Permission denied
Perhaps iptables or your kernel needs to be upgraded.

Environment

  • Red Hat OpenShift Container Platform 4.6+

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In