Allan Spagnol Comar <allan.comar <at> gmail.com> writes:

> I am using iptables 1.2.11-r3

Why not upgrade to:
Latest version installed: 1.3.4

> and iptables init.d script doesn´t do
> it´s work; had run '/etc/init.d/iptables save' and 'rc-update add
> iptables default' but, when the system boots it does not restore the
> iptables rules !!!! some one could help me with that !!!

Looking at /etc/init.d/iptables I see:
case ${iptables_name} in
        iptables)  iptables_proc="/proc/net/ip_tables_names"
                   iptables_save=${IPTABLES_SAVE};;
        ip6tables) iptables_proc="/proc/net/ip6_tables_names"
                   iptables_save=${IP6TABLES_SAVE};;

If you look at /etc/conf.d/iptables I see:

IPTABLES_SAVE="/var/lib/iptables/rules-save"

# Options to pass to iptables-save and iptables-restore
SAVE_RESTORE_OPTIONS="-c"

# Save state on stopping iptables
SAVE_ON_STOP="yes"

Make sure your scripts are ok and correct.

rc-status nor 'ps aux | grep iptable will show iptables is
running or not.

'/etc/init.d/iptables start'  will show if iptables is running
* WARNING:  "iptables" has already been started.

Also, 'rc-update add iptables boot' will bring up your firewall
before interfaces are up.

HTH,
James



-- 
gentoo-user@gentoo.org mailing list

Reply via email to