All of lore.kernel.org
 help / color / mirror / Atom feed
* HTTP connection tracking
@ 2008-07-07 14:13 Jan Engelhardt
  2008-07-07 14:20 ` Patrick McHardy
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Engelhardt @ 2008-07-07 14:13 UTC (permalink / raw)
  To: Netfilter Developer Mailing List

Hi,

a user in irc came up with the following scenario:

- home router is connected to two ISPs with different IP addresses and 
  does round-robin or some other form of packet scheduling.

- in such a setup, one generally uses MARK/CONNMARK to make sure that 
  packets of a certain connection always leave through the same device 
  through which the first packet was sent. (This is required to not 
  break TCP connections.)

But how can we make sure that arbitrary connections which are defined as 
related, can be sent through the same device? Think of a website which, 
when the user is logged in, requires that all HTTP and HTTPS connections 
that will be made by the user, must come from the same IP address.

Connection helpers seemed like a good idea at first, since expected 
connections inherit the connmark value of the original connection. 
However, once an expectation is set up, there is no way to set up 
another right after one expectation has been confirmed.

The stomper approach that seems left is to write a target extension that 
collects destination IP addresses (on IP_CT_NEW) and the mark value of 
the packet, or restores the mark value from the collection cache on 
!IP_CT_NEW.

There got to be a better way. What's Netfilter capable of I don't 
know yet?

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

end of thread, other threads:[~2008-07-07 15:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-07 14:13 HTTP connection tracking Jan Engelhardt
2008-07-07 14:20 ` Patrick McHardy
2008-07-07 14:52   ` Jan Engelhardt
2008-07-07 15:25     ` Patrick McHardy

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.