From: "Michael K" Subject: RE: Iptables: Bad policy name Date: Mon, 31 Mar 2003 01:45:58 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: <000501c2f716$8378d2f0$0200a8c0@klintan.local> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.netfilter.org > -----Original Message----- > From: netfilter-admin@lists.netfilter.org > [mailto:netfilter-admin@lists.netfilter.org] 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! > > 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