Wednesday, November 2, 2011

saving you iptables

this tutorial work on OpenSUSE 11.04, if you want to save the configuration of tour iptables, do this command on root level:

iptables-save > /etc/sysconfig/iptables-net

if you want this config always load after restart/ reboot your machine,
Edit with pico, mcedit or vi:/etc/init.d/network

# mcedit /etc/init.d/network

insert this command

iptables-restore < /etc/sysconfig/iptables-net

Done.....

No comments: