All of lore.kernel.org
 help / color / mirror / Atom feed
* Options for a custom chain/target
@ 2013-03-12 21:08 Paul Chavent
  0 siblings, 0 replies; only message in thread
From: Paul Chavent @ 2013-03-12 21:08 UTC (permalink / raw)
  To: netfilter

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 ?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-03-12 21:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-12 21:08 Options for a custom chain/target Paul Chavent

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.