Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Ruben Laban <r.laban@ism.nl>
To: netfilter@lists.netfilter.org
Subject: Re: REJECT target not as policy
Date: Mon, 20 Aug 2007 16:08:39 +0200	[thread overview]
Message-ID: <200708201608.39032.r.laban@ism.nl> (raw)
In-Reply-To: <20070820135206.GA18644@bart.bertram-scharpf.homelinux.com>

On Monday 20 August 2007, Bertram Scharpf wrote:
> on one of my machines the REJECT target doesn't behave as I
> expect. It is inserted into a chain but it is not accepted
> as a policy.
>
> myhost ~ # iptables -L
> Chain INPUT (policy DROP 2 packets, 116 bytes)
>  pkts bytes target     prot opt in     out     source              
> destination ...
>     0     0 REJECT     tcp  --  any    any     anywhere            
> anywhere    ... ...
>
> But:
>
> myhost ~ # iptables -v -t filter -P INPUT REJECT
> iptables: Bad policy name
>
>
> How comes this? I guess it is a kernel option I have to
> change. But which?

The REJECT target is only valid when either the tcp or udp module is loaded. 
Hence it cannot be used as a policy.

HTH
-- 
Ruben


  reply	other threads:[~2007-08-20 14:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-20 13:52 REJECT target not as policy Bertram Scharpf
2007-08-20 14:08 ` Ruben Laban [this message]
2007-08-20 15:52   ` Pascal Hambourg
2007-08-20 17:46     ` Bertram Scharpf
2007-08-20 18:43       ` Pascal Hambourg
2007-08-20 19:11         ` Rob Sterenborg
2007-08-20 20:27           ` Pascal Hambourg
2007-08-21  5:26             ` Rob Sterenborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200708201608.39032.r.laban@ism.nl \
    --to=r.laban@ism.nl \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox