Re: how to store iptables rules
On Saturday 24 January 2009 12:34:52 abdelkader belahcene wrote:
> hi,
> please i want to save the iptables for next sessions,
> now I have to run iptables after each reboot.
> I tried iptables-save, it did't.
> thanks for help
> bela
Redirect it to a file:
iptables-save > target-file
You will also need to set it up to restore the rules from the file during
bootup. This is done, iirc, by running
iptables-restore < target-file
That can be done in /etc/network/interfaces, but there is a particular syntax
which escapes me at the moment.
Reply to: