ohh.. i want to modify backend side... how to to it?
Willy Tarreau <[email protected]>于2015年10月30日周五 下午3:17写道:
> On Thu, Oct 29, 2015 at 10:57:47AM +0000, ??????????????? wrote:
> > 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.
>
> On which side ? set_tos and set_mark affect the front connection (with the
> client).
>
> Can you check if the equivalent TCP actions work
> (tcp-request content set-mark ...) ?
>
> Regards,
> Willy
>
>