Re: http-response set-mark with value from http-response header field
Hi Vinay, According to the documentation: - "set-tos" is used to set the TOS or DSCP field value of packets sent to the client to the value passed in on platforms which support this. This value represents the whole 8 bits of the IP TOS field, and can be expressed both in decimal or hexadecimal format (prefixed by "0x") It does not expect a log format variable as your trying to do. Baptiste On Sun, Jul 26, 2015 at 1:00 PM, Vinay Y S wrote: > Actually I suppose the syntax could be same as sample fetches. For example: > > http-response set-tos %[res.hdr_val(X-Tos)] > > This syntax currently doesn't work. Is it possible to make this work easily? > > On Sun, Jul 26, 2015 at 3:45 PM Vinay Y S wrote: >> >> Hi, >> I would like to use set-mark and set-tos to values returned by the backend >> in the http-response header field. Is this possible? >> >> For example a syntax like this would be nice: >> http-response set-tos $http_resp_hdr[tos] >> >> Idea is to have backend determine the best value for tos and mark on a per >> request basis depending on the client ip address, client id etc. And then >> based on the tos & mark values I've my policy routing setup to choose >> outbound interface and traffic queues etc. >> >> Thanks, >> Vinay
Re: http-response set-mark with value from http-response header field
Actually I suppose the syntax could be same as sample fetches. For example: http-response set-tos %[res.hdr_val(X-Tos)] This syntax currently doesn't work. Is it possible to make this work easily? On Sun, Jul 26, 2015 at 3:45 PM Vinay Y S wrote: > Hi, > I would like to use set-mark and set-tos to values returned by the backend > in the http-response header field. Is this possible? > > For example a syntax like this would be nice: > http-response set-tos $http_resp_hdr[tos] > > Idea is to have backend determine the best value for tos and mark on a per > request basis depending on the client ip address, client id etc. And then > based on the tos & mark values I've my policy routing setup to choose > outbound interface and traffic queues etc. > > Thanks, > Vinay >
http-response set-mark with value from http-response header field
Hi, I would like to use set-mark and set-tos to values returned by the backend in the http-response header field. Is this possible? For example a syntax like this would be nice: http-response set-tos $http_resp_hdr[tos] Idea is to have backend determine the best value for tos and mark on a per request basis depending on the client ip address, client id etc. And then based on the tos & mark values I've my policy routing setup to choose outbound interface and traffic queues etc. Thanks, Vinay