Mailing List Archive


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

Re: [tlug] iptables: problem with REJECT



On Fri, Feb 14, 2003 at 12:18:17AM +0900, Jean-Christian Imbeault wrote:
> Josh Glover wrote:
> >
> >It must say something like: "REJECT target"
> 
> I still get:
> 
> # iptables --policy FORWARD REJECT
> iptables: Bad policy name

Thats because REJECT is not a valid default policy. You can only have
ACCEPT, DROP, QUEUE or RETURN for that.

To use REJECT, put it at the *end* of your rules like this:

-A OUTPUT -j REJECT

-- 
A. Sajjad Zaidi
gpg --keyserver pgp.mit.edu --recv-keys 267E0D0E

Attachment: pgp00051.pgp
Description: PGP signature


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links