Skip to contentSkip to conversation

Options for a custom chain/target

DISCUSSION Paul Chavent 1 participant 1 message Mar 12, 2013

lore
Share & tools
lore
#0 lore 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 ?