Re: relayd fallback when using tag/tagged

2024-02-19 Thread Michael Hekeler
> > > Using such a configuration: > > > #-8<--- > > > table { 192.0.2.4 } > > > table { 192.0.2.7} > > > http protocol www { > > >block > > >match request header "Host" value "www.example" tag "example" > > >pass request tagged "example" forward to

Re: relayd fallback when using tag/tagged

2024-02-16 Thread Joel Carnat
Le 2/15/24 à 10:33, Michael Hekeler a écrit : 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. I don't understand exactly what you want to achieve. Do you want: A. Requests with

Re: relayd fallback when using tag/tagged

2024-02-15 Thread Michael Hekeler
> 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. I don't understand exactly what you want to achieve. Do you want: A. Requests with http header "www.example" going to

Re: relayd fallback when using tag/tagged

2024-02-13 Thread Joel Carnat
Le 13/02/2024 à 10:07, Manuel Giraud a écrit : Joel Carnat 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 { 192.0.2.4 }

Re: relayd fallback when using tag/tagged

2024-02-13 Thread Manuel Giraud
Joel Carnat 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 { 192.0.2.4 } > table { 192.0.2.7} > http

Re: relayd fallback when using tag/tagged

2024-02-13 Thread Joel Carnat
The proposed rules don't seem to change relayd(8)'s behaviour. It keeps sending HTTP traffic to the primary server and fail when it is down. The secondary / fallback server is never used. Starting status: relayd[26195]: host 192.0.2.7, check http code (14ms,http code ok), state unknown -> up,

Re: relayd fallback when using tag/tagged

2024-02-12 Thread list
Hi On February 13, 2024 12:20:26 AM UTC, Joel Carnat wrote: >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 { 192.0.2.4 }

relayd fallback when using tag/tagged

2024-02-12 Thread Joel Carnat
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 { 192.0.2.4 } table { 192.0.2.7} http protocol www { block match request