Answer the question
In order to leave comments, you need to log in
Is it possible to add a custom package to HAproxy when connecting (similar to send-proxy)?
Actually the essence of the issue in the topic.
frontend testfront
bind 0.0.0.0:1234
mode tcp
use_backend testback
backend testback
mode tcp
server test destantion:1234 send-proxy
Answer the question
In order to leave comments, you need to log in
The issue is resolved, if anyone suddenly needs it, it is done through LUA:
haproxy.cfg:
global
lua-load /path-to/script.lua
frontend testfront
bind 0.0.0.0:1234
mode tcp
tcp-request content lua.testfunc testvalue
use_backend testback
backend testback
mode tcp
server test destantion:1234 send-proxy
core.register_action("testfunc", { "tcp-req" }, function (txn, varfromconfig)
txn.req:send("TEST " .. varfromconfig .. "\n")
end, 1)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question