netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Conntrack TW->SS in Reply direction
@ 2014-09-17 16:22 Marcelo Ricardo Leitner
  2014-10-13 16:09 ` [PATCH] nf_conntrack_proto_tcp: allow server to become a client in TW handling Marcelo Ricardo Leitner
  0 siblings, 1 reply; 4+ messages in thread
From: Marcelo Ricardo Leitner @ 2014-09-17 16:22 UTC (permalink / raw)
  To: netfilter-devel

Hi,

Any reason on why we don't allow TW->SS state change in reply direction? It is 
currently marked as (since ever it seems) in a comment:
  *  sTW -> sIV  Reopened connection, but server may not do it.

That is true but just if the server role is never swapped between hosts and I 
don't see it violating any spec by allowing it..

Thing is, there is this application that needs a connection as a callback on a 
specified port range. This application is used between 2 servers, using 
conntrack and only allowing in new connections and its (related) packets. 
There will be a moment that the port that once was server for the callback, 
will now originate a callback to the other server.

As Linux stack uses TIME_WAIT timeout as 1min and conntrack as 2mins, there 
will be a moment on which the port selection allows using a port that, for 
conntrack, is still not allowed...

Reducing conntrack's TIME_WAIT timeout is more complicated because it may 
restrain the compatibility with other implementations, but allowing TW->SS 
imposes no harm?

Thanks,
Marcelo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-22 12:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-17 16:22 Conntrack TW->SS in Reply direction Marcelo Ricardo Leitner
2014-10-13 16:09 ` [PATCH] nf_conntrack_proto_tcp: allow server to become a client in TW handling Marcelo Ricardo Leitner
2014-10-15  7:27   ` Jozsef Kadlecsik
2014-10-22 12:28     ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).