How do I save network packet filter settings for iptables?

Updated -


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


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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content