All of lore.kernel.org
 help / color / mirror / Atom feed
* Connections with SYN aren't NEW
@ 2003-12-14 16:23 Loïc Minier
  2003-12-14 16:34 ` Antony Stone
  2003-12-14 16:54 ` Antony Stone
  0 siblings, 2 replies; 5+ messages in thread
From: Loïc Minier @ 2003-12-14 16:23 UTC (permalink / raw)
  To: Netfilter

     Hey list,

 I am using a 2.4.22 with the ebtables + br-nf patch of
 ebtables.sourceforge.net. I am currently not DROPping packets, only
 logging for a while as a safety for my new rules on this host.

 I face a problem with some TCP connections: I want to accept new
 TCP connections only if they match both --syn and -m state --state
 NEW. This turns out to be a bad practice in some case where I see
 legitimate new TCP connections with correct flags matching --syn but
 which do not match -m state --state NEW.
   This happens a lot with HTTP clients and with DNS requests, and I
 think this is because of port reuse:
   - the HTTP client opens a connection from port xyz to port 80
   - it finishes the session and closes the connection
   - it reopens another connection with the same port xyz to the same
     host on port 80

 However, grepping the /proc/net/ip_conntrack shows two different
 entries in such cases.

 Am I wrong in thinking the connections should match -m state --state
 NEW, even if a connection happened with the same ports/ips a few
 seconds ago? What can I change to fulfill my wishes?


   Kind regards,

-- 
Loïc Minier <lool@dooz.org>


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

end of thread, other threads:[~2003-12-14 17:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-14 16:23 Connections with SYN aren't NEW Loïc Minier
2003-12-14 16:34 ` Antony Stone
2003-12-14 16:59   ` Loïc Minier
2003-12-14 16:54 ` Antony Stone
2003-12-14 17:24   ` Loïc Minier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.