Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4740

Help on Switching backend on TCP mode

$
0
0

@lucasbds wrote:

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..

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4740

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>