[arch-general] iptables script

Sébastien Luttringer seblu at seblu.net
Wed Sep 11 10:39:04 EDT 2013


On Wed, Sep 11, 2013 at 1:20 PM, F. Gr. <frgroccia at gmail.com> wrote:
> Jakub Klinkovský [2013-09-10 20:01:01+0200]:
>
> [...]
>> I don't know how you use the script, but you might consider using
>> the 'iptables-restore' command to switch between multiple iptables
>> configurations. If you still want to use the iptables.service, you
>> can make the file /etc/iptables/iptables.rules a symlink and change
>> its target to change the configuration.
>> You can run 'iptables-save > foo.rules' to save current iptables
>> configuration, edit the file to your liking (adding comments etc.),
>> and finally run 'iptables-restore < foo.rules' to load the saved
>> configuration.
>
> I did that.
Even better, you can use ferm[1].

[1] https://www.archlinux.org/packages/community/any/ferm/

Cheers,

-- 
Sébastien "Seblu" Luttringer
https://www.seblu.net
GPG: 0x2072D77A


More information about the arch-general mailing list