Junk Food for the Brain

Open Source and Awesomesauce :)

Fedora 16 Save Iptables Rules

| Comments

Not sure if this is a bug only I stumbled upon, or im doing it wrongly, but when you try to save iptables rules in Fedora 16, you get this:- [root@fedora ~]# service iptables save Redirecting to /bin/systemctl save iptables.service Unknown operation save

Solution: [root@fedora ~]# iptables-save > /etc/sysconfig/iptables
Well, Fedora 16 has migrated more of its services to Systemd, so trying to do a save redirects it to systemctl save iptables.service. :|

Looking at the Fedora 16 Security Guide, either they didn’t spot the error, or I’m doing something completely wrong.

Anyway, it showed me another command: /sbin/iptables-save which did what I wanted.

So what I did was pipe it back to /etc/sysconfig/iptables and then we all lived happily ever after. :)