diff options
author | Julian Anastasov <ja@ssi.bg> | 2005-09-14 21:08:51 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-09-14 21:08:51 -0700 |
commit | 87375ab47cd0ba04124c6d3fd80db5c368f5dcb6 (patch) | |
tree | c95f160e2b033b5f8d2fad58348400bab5f989f2 /include/asm-i386/cputime.h | |
parent | f5e229db9cdb27f83594712ca4bb98d9377eb6ed (diff) |
[IPVS]: ip_vs_ftp breaks connections using persistence
ip_vs_ftp when loaded can create NAT connections with unknown client
port for passive FTP. For such expectations we lookup with cport=0 on
incoming packet but it matches the format of the persistence templates
causing packets to other persistent virtual servers to be forwarded to
real server without creating connection. Later the reply packets are
treated as foreign and not SNAT-ed.
This patch changes the connection lookup for packets from clients:
* introduce IP_VS_CONN_F_TEMPLATE connection flag to mark the
connection as template
* create new connection lookup function just for templates -
ip_vs_ct_in_get
* make sure ip_vs_conn_in_get hits only connections with
IP_VS_CONN_F_NO_CPORT flag set when s_port is 0. By this way
we avoid returning template when looking for cport=0 (ftp)
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-i386/cputime.h')
0 files changed, 0 insertions, 0 deletions