MEDIUM: tcp: add registration and processing of TCP L5 rules
authorWilly Tarreau <w@1wt.eu>
Fri, 21 Oct 2016 14:37:51 +0000 (16:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 21 Oct 2016 16:19:24 +0000 (18:19 +0200)
commit620408f406dcd3210508e84cd23270108644bbab
tree4218ba042454b0d55cee57afdcae9755c8cb9ddb
parent27df66e8d961f2b5c6dae985f6f6d600a57ac4ca
MEDIUM: tcp: add registration and processing of TCP L5 rules

This commit introduces "tcp-request session" rules. These are very
much like "tcp-request connection" rules except that they're processed
after the handshake, so it is possible to consider SSL information and
addresses rewritten by the proxy protocol header in actions. This is
particularly useful to track proxied sources as this was not possible
before, given that tcp-request content rules are processed after each
HTTP request. Similarly it is possible to assign the proxied source
address or the client's cert to a variable.
include/common/cfgparse.h
include/proto/proto_tcp.h
include/types/action.h
include/types/listener.h
include/types/proxy.h
src/cfgparse.c
src/proto_tcp.c
src/proxy.c
src/session.c
src/stick_table.c
src/vars.c