Re: equivalent of url32+src for hdr_ip(x-forwarded-for)?

2023-05-11 Thread Nathan Rixham
On Fri, 12 May 2023, 00:00 Aleksandar Lazic, wrote: > How about to try to use `hdr_ip(x-forwarded-for),base32` or something > similar? > > You can take a look into the reg-tests for some more inspiration :-) > >

Re: equivalent of url32+src for hdr_ip(x-forwarded-for)?

2023-05-11 Thread Aleksandar Lazic
Hi. On 12.05.23 00:36, Nathan Rixham wrote: NP, let's stick to a generic example then, redacted down to the bare minimum backend st-min     # log request rate over 1 minute     stick-table type ipv6 size 1g expire 2m store http_req_rate(1m) backend st-min-url     # log request rate per

Re: equivalent of url32+src for hdr_ip(x-forwarded-for)?

2023-05-11 Thread Nathan Rixham
NP, let's stick to a generic example then, redacted down to the bare minimum backend st-min # log request rate over 1 minute stick-table type ipv6 size 1g expire 2m store http_req_rate(1m) backend st-min-url # log request rate per distinct url+ip(v4/6) stick-table type binary len

Re: equivalent of url32+src for hdr_ip(x-forwarded-for)?

2023-05-11 Thread Aleksandar Lazic
Dear Nathan. On 11.05.23 23:59, Nathan Rixham wrote: Hi All, I've run into an issue I can't figure out, essentially need to use url32+src in stick tables, but where src is the x-forwarded-for address rather than the connecting source - any advice would be appreciated. As this is a quite

equivalent of url32+src for hdr_ip(x-forwarded-for)?

2023-05-11 Thread Nathan Rixham
Hi All, I've run into an issue I can't figure out, essentially need to use url32+src in stick tables, but where src is the x-forwarded-for address rather than the connecting source - any advice would be appreciated. Cheers, Nathan