Hello!

I have a frontend configuration that sends requests to different backends according to the host header.

Something like:
use_backend backendZ if { hdr(Host) -i <address> }

This is working fine, but now one such rule should only allowed if the clients are from a certain ip range.

According to the documentation if conditions are AND-combined:
acl rule1 <rule>
acl rule2 <rule>
use_backend backendZ if rule1 rule2

So I tried the following:
acl network_allowed src IP1 IP2 IP3
acl dstvhost hdr(Host) -i <address>
use_backend backendZ if network_allowed dstvhost

But now I’m not getting to this backend even if my IP is in the list.
The rule
use_backend backendZ if dstvhost
is working but without restrictions.

So how do I solve my problem?

Shade and sweet water!

        Stephan

--
|    If your life was a horse, you'd have to shoot it.    |

Reply via email to