Le 13/02/2024 à 10:07, Manuel Giraud a écrit :
Joel Carnat <j...@carnat.net> writes:
Hello,
I'm trying to configure relayd(8) to use tags, to allow legit host
names only and modify HTTP headers, and fallback. But I can't have it
working properly.
Using such a configuration:
#-8<-------
table <primary> { 192.0.2.4 }
table <fallback> { 192.0.2.7}
http protocol www {
block
match request header "Host" value "www.example" tag "example"
pass request tagged "example" forward to <primary>
}
I've not tested it but maybe you're missing this last rule in the
previous block:
pass request forward to <fallback>
That doesn't work either.
If I add it, with or without a tagged directive, it becomes the only
effective rule (last matching rule?) and it never reaches the primary
server.