How do I save network packet filter settings for iptables?

Updated -

Symptom:

I set up my firewall/packet filtering but after a reboot the rules are not there any more.

Solution:

After configuring the appropriate network packet filters for your situation, save the settings so they get restored after a reboot. Do so by typing the following command:

# /sbin/service iptables save

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.