You can use conditionals based on our geoip database to route PASS traffic to specific backends. It’s easier than you think:
First off, take a look at our GeoIP documentation to see the things we support.
Next, to route traffic to your backends, just follow these steps:
- Add a backend
- Open the conditional modal for the backend (click the settings gear to the right of the backend)
- Add logic like the following:
geoip.country_code ~ "us"as the conditional.
That’s all there is to it – adding a geoip specific conditional to a backend is all you need to do.