I am having trouble starting iptables in Mandrake 8.0.

When I boot up or otherwise attempt to start iptables,
I get an error message that:

/sbin/iptables-restore: invalid option -- p
/sbin/iptables-restore: invalid option -- f


When I look at the start section of rc3.d/S08iptables I see the following main line:

                grep -v "^[[:space:]]*#" $IPTABLES_CONFIG | grep -v '^[[:space:]]*$' | 
/sbin/iptables-restore -p -f && \
                    success "Applying iptables firewall rules" || \
                    failure "Applying iptables firewall rules"

The first two lines are one but Agent has wrapped them.

The thing to note is that /sbin/iptables-restore  is being invoked with the options -p 
and -f.
However, iptables-restore -h gives no such options.

The script is basically the same in this respect in all rcX.d.

I installed iptables from DrakConf which downloaded and installed iptables version 
1.2.1-4mdk.

I have not found a later version.

I can't see why the startup script should call iptables-restore with non-existant 
parameters unless there was some kind of version mixup.

Any idea what's wrong?

Thanks Larry Alkoff N2LA




Larry Alkoff N2LA - Austin TX



Reply via email to