Fedora 16 not working with /sbin/service iptables save

Posted on by

Booted up my first Fedora 16 instance in Rackspace Cloud today so test and lucky I did, it appears a lot of the commands I used to use in creating a server have changed. For example /sbin/service iptables save that I would normally use is now coming back with an error message – Redirecting to /bin/systemctl save iptables.service Unknown operation save

It appears that Fedora 16 now uses Systemd – http://fedoraproject.org/wiki/Systemd#Why_systemd.3F and you have to use systemctl to do tasks now.

So to save the IP Tables I should be able to use the command:

systemctl save iptables.service

However this comes up with an error: Unknown operation save

Not sure if this a bug or not, however running /sbin/iptables-save made it work

Fedora, Rackspace Cloud | 2 Comments
  • Grat0r

    Try,
     #iptables-save > /etc/sysconfig/iptables

  • http://twitter.com/walterblandon Walter Blandón

    Hi,

    You use next command 

    /usr/libexec/iptables.init save