]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: proto_tcp: add support for tracking L7 information
authorWilly Tarreau <w@1wt.eu>
Sun, 9 Dec 2012 11:00:04 +0000 (12:00 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 9 Dec 2012 13:08:47 +0000 (14:08 +0100)
commit5d5b5d8eaf3891cc8ce6e7fca6fd05ca828f014e
tree2fc028e276c87bd72f8219fc2b21829ee7f372c2
parentf22180f1b658106c08e83918dec64843c52d3d7e
MEDIUM: proto_tcp: add support for tracking L7 information

Until now it was only possible to use track-sc1/sc2 with "src" which
is the IPv4 source address. Now we can use track-sc1/sc2 with any fetch
as well as any transformation type. It works just like the "stick"
directive.

Samples are automatically converted to the correct types for the table.

Only "tcp-request content" rules may use L7 information, and such information
must already be present when the tracking is set up. For example it becomes
possible to track the IP address passed in the X-Forwarded-For header.

HTTP request processing now also considers tracking from backend rules
because we want to be able to update the counters even when the request
was already parsed and tracked.

Some more controls need to be performed (eg: samples do not distinguish
between L4 and L6).
doc/configuration.txt
include/proto/session.h
include/types/session.h
src/cfgparse.c
src/proto_http.c
src/proto_tcp.c
src/session.c