Re: iptables - how to create a rule that expires automatically

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

 



I'm not sure if that can be done with the netfilter itself.
You could always get a script into crontab to check if the rule is
matched (iptables ... -L -n -v will show you number of packets matched
by the rule) and set up some sort of a timer.

Ivan

On Thu, Feb 19, 2009 at 7:10 PM, Colin Davis <col@xxxxxxxxxxxxxxxx> wrote:
>
> Hi,
>
> Not sure if this is possible. I wish to create a rule that once created will
> automatically expire (and be removed) after say 10 minutes.
>
> Please
>
> Many thanks,
> Colin.
> --
> 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
>
--
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