This is a community guide and is not officially supported. If you have any issues, please reach out to the author.
Installation
To integrate GeoBlock into your Traefik setup, follow the steps below:- Add the following configuration to your
/config/traefik/traefik_config.yml
file:
- Add the following configuration to your
/config/traefik/dynamic_config.yml
file. SettingblackListMode: false
enables GeoBlock in whitelist mode, allowing only the specified countries. Remember to add the appropriate countries when traveling. A list of country codes can be found in the documentation.
- Restart Traefik to apply the changes:
Testing
To monitor GeoBlock activities in the Traefik logs, enable logging by setting the following options totrue
: