I have this in config file
listen railgun
option transparent
bind *:5000 transparent
server main *
source *
tcp-request content lua.test
tcp-request content reject if LOCALHOST
and this in .lua
core.register_action("test", { "tcp-req", "http-req" }, function(txn)
txn:Info("test")
txn:set_mark(0x10)
txn:set_tos(0x10)
end)
then run
sudo haproxy -f /etc/haproxy/haproxy.cfg -d
and it successfully prints "test" on each connection, but i see every
packet TOS is 0, not 0x10. same for mark.
HAProxy 1.6.1