[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [firewall] dove mettere lo script di iptables?



> > > insomma voi dove piazzate le regole di iptables?
> >
> > /etc/init.d/iptables save active
> > le regole finiscono in /var/lib/iptables
>
> ok, ma da /usr/share/doc/iptables/README.Debian.gz leggo:
>
>     "If you have upgraded from an earlier version of the iptables
>     package, you may still have the deprecated init.d scripts and
>     state information installed, but orphaned from the package.
>     This was necessary to preserve existing configurations. Run
>     "update-rc.d -f iptables remove" and delete this list of files
>     and directories to get rid of it all:
>
>       /etc/default/iptables
>       /etc/init.d/iptables
>       /var/lib/iptables/"

Infatti.
Io metto lo script con le varie regole di iptables sotto 
/etc/network/if-pre-up.d in modo tale che vengano abilitate prima 
dell'up delle varie schede di rete.
Non so se e' corretto.
Secondo voi e' una buona scelta?



Reply to: