Skip to contentSkip to conversation

Iptables: Bad policy name

DISCUSSION Bret Holbrook 2 participants 2 messages Mar 30, 2003 – Mar 31, 2003

lore
Share & tools
lore
#1 lore raw
In reply to Bret Holbrook
Quoted 31 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Bret Holbrook
Sent: Monday, March 31, 2003 11:13 PM
To: >
Subject: Iptables: Bad policy name

Hi all,

Having a small problem with the error message in the subject.
I'm running Slackware 9.0, Iptables 1.2.7a,
rc.firewall-2.4-stronger version .77s. Basically it gives me the above error on each of the following commands trying to set up my default policy:

iptables -P INPUT REJECT
iptables -P OUTPUT REJECT
iptables -P FORWARD REJECT

Same error wether I punch it in from the command line or it runs in the script. Alternately, the same commands with ACCEPT instead of REJECT works fine. I've used these very same fw rules on various other machines with different versions of Linux and they have worked just fine. This is the first time I've used slackware 9 and the newest iptables though. Is there something I'm missing here? Thanks for the help!

Quoted 2 lines

Bret

The reject don't work as a defult policy. Use the drop target instead. However, the reject work on rules.

Iptables -P INPUT DROP
Iptables -A INPUT ...... -j REJECT

PS: Please read this topic, "what are the possible chain policies?" someware in this list. Ds

/Klintan

#0 lore raw

Hi all,

Having a small problem with the error message in the subject. I'm running Slackware 9.0, Iptables 1.2.7a, rc.firewall-2.4-stronger version .77s. Basically it gives me the above error on each of the following commands trying to set up my default policy:

iptables -P INPUT REJECT
iptables -P OUTPUT REJECT
iptables -P FORWARD REJECT

Same error wether I punch it in from the command line or it runs in the script. Alternately, the same commands with ACCEPT instead of REJECT works fine. I've used these very same fw rules on various other machines with different versions of Linux and they have worked just fine. This is the first time I've used slackware 9 and the newest iptables though. Is there something I'm missing here? Thanks for the help!

Bret