All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gáspár Lajos" <swifty@freemail.hu>
To: "S?ébastien Cramatte" <scramatte@zensoluciones.com>
Cc: netfilter@vger.kernel.org
Subject: Re: Why REJECT target  is not supported with MANGLE ?
Date: Thu, 10 Jan 2008 09:46:36 +0100	[thread overview]
Message-ID: <4785DB6C.7020305@freemail.hu> (raw)
In-Reply-To: <478548BA.2020903@zensoluciones.com>

S?ébastien Cramatte írta:
> Hello,
>
> Why REJECT target  is not supported with MANGLE ?
>
>
> My server is running debian etch4 with 2.6.22 kernel  and setuped as 
> traffic shaper + transparent bridge
>
> The command with connlimit  bellow won't work and return me "Invalid 
> Argument"
>
> iptables  -t mangle -N mytable
> iptables --table mangle --append POSTROUTING --out-interface br0 
> --match physdev --physdev-is-bridged --physdev-out eth0 --jump  mytable
>
> iptables  -t mangle -A mytable --proto tcp --match connlimit 
> --connlimit-above 15 --connlimit-mask 32 --jump REJECT
> iptables  -t mangle -A mytable --jump CLASSIFY --set-class 1:10
>
> How can I achieve this kind of setup ?
I would drop those packets in a filter table...

INPUT/filter
OUTPUT/filter
FORWARD/filter


Is there any good reason not to do that?

Swifty


  reply	other threads:[~2008-01-10  8:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-09 22:20 Why REJECT target is not supported with MANGLE ? S?ébastien Cramatte
2008-01-10  8:46 ` Gáspár Lajos [this message]
2008-01-10  8:53 ` Michele Petrazzo - Unipex srl

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=4785DB6C.7020305@freemail.hu \
    --to=swifty@freemail.hu \
    --cc=netfilter@vger.kernel.org \
    --cc=scramatte@zensoluciones.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.