I’m trying to set up caddy so that accesses coming from Portugal get reverse-proxied through, and anything from anywhere else gets a 403 error. Unfortunately, I can’t seem to figure out how to get the config file for it right.
2. Error messages and/or full log output:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
I’m basically trying to get the @mygeofilter and reverse_proxy sections to work together, but it doesn’t seem to be working – the current attempt just lets anybody through.
The * means “every request”. So you’re allowing every request through the filter. And @mygeofilter inside the block shouldn’t even parse correctly, I’m surprised you don’t get errors.