iptables rules saved in /etc/sysconfig/iptables are not applied at system boot in openshift

Solution Verified - Updated -

Issue

  • the iptables rules saved by iptables-save command in /etc/sysconfig/iptables are not re-applied after a node reboot. What is the right way to make a rule like:
    iptables --insert INPUT -p udp -m state --state NEW -m udp --dport 161 -j ACCEPTpermanent on a OCP node

Environment

  • Openshift Container Platform
    • 3.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.