Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Paul Chavent <paul.chavent@free.fr>
To: netfilter@vger.kernel.org
Subject: Options for a custom chain/target
Date: Tue, 12 Mar 2013 22:08:18 +0100	[thread overview]
Message-ID: <513F9942.1040709@free.fr> (raw)

Hi

I would like to be able to pass options to a custom chain. For instance :

$IPT -N log_and_drop

$IPT -A bad_tcp_packets -p tcp ! --syn -m state --state NEW -j log_and_drop --set-custom-arg "New not syn: "

$IPT -A log_and_drop -j LOG --log-prefix --get-custom-arg
$IPT -A log_and_drop -j DROP


Is there any way to do that ? I thought that it could also be achieved with kind of templates in the shell script that init the rules...

Thanks for your assistance.

Regards.

Paul.

P.S. could you cc me, since i haven't subscribed to the list ?

                 reply	other threads:[~2013-03-12 21:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=513F9942.1040709@free.fr \
    --to=paul.chavent@free.fr \
    --cc=netfilter@vger.kernel.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