Options for a custom chain/target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 ?
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux