* limiting connection duration
@ 2011-01-06 20:16 Rich Rauenzahn
2011-01-06 20:53 ` Marek Kierdelewicz
0 siblings, 1 reply; 2+ messages in thread
From: Rich Rauenzahn @ 2011-01-06 20:16 UTC (permalink / raw)
To: netfilter
I'd like to allow a connection to connect and communicate to a
specific for as much as it wants for N minutes and then have iptables
block the connection until the connection goes away.
The details of WHY I want to do this are in this redhat bug regarding
the NFS portmapper:
https://bugzilla.redhat.com/show_bug.cgi?id=666932
[In short, Windows 7 nfs clients don't disconnect from it (even though
they are done) and use up all of the portmapper file descriptors.]
I've written a script that manually adds entries to iptables to kill
the idle connections and also added keepalive to the portmapper
process via libkeepalive. But a single iptables rule would be so
much more elegant :)
Looking at the --limit related options, it seems that all of the
options are about limiting rate, not duration of a connection.
Rich
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: limiting connection duration
2011-01-06 20:16 limiting connection duration Rich Rauenzahn
@ 2011-01-06 20:53 ` Marek Kierdelewicz
0 siblings, 0 replies; 2+ messages in thread
From: Marek Kierdelewicz @ 2011-01-06 20:53 UTC (permalink / raw)
To: Rich Rauenzahn; +Cc: netfilter
Hi,
>Looking at the --limit related options, it seems that all of the
>options are about limiting rate, not duration of a connection.
Look at "recent" match and "CONNMARK/connmark" target/match. I think it
could do what you want.
best regards,
Marek Kierdelewicz
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-06 20:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-06 20:16 limiting connection duration Rich Rauenzahn
2011-01-06 20:53 ` Marek Kierdelewicz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox