Hi,
I’m trying to redirect a tcp traffic based on a regex but it isn’t working. The client app opens a socket and send the message. I need to switch it depending on the content.
Can anyone give me a help!?
frontend switching
bind 192.168.0.176:2820
log-format [%t]\ from\ %ci:%cp\ to\ %fi:%fp\ %si:%sp\ %s\ %ts\ request_size=%U\ response_size=%B
acl acl_system2 req.payload(0,0) -m reg -i (.+)(06SWITCH)(.*)
use_backend system2 if acl_system2
use_backend system1
########
I also don’t know the size of the payload it may differ between different requests…