PascalMinder / geoblock

Traefik middleware plugin - Deny requests based on country of origin
98 stars 10 forks source link

Getting tls:failed to verify certificate errors in my traefik log #49

Closed rama31244 closed 5 months ago

rama31244 commented 6 months ago

Hi I just reinstated the geoblock plugin after deactivating it for a few months and now all my server sites are blocked and the following error appears in my traefik log INFO: GeoBlock: 2023/12/24 11:10:37 Get "https://get.geojs.io/v1/ip/country/154.6..": tls: failed to verify certificate: x509: certificate is valid for 4fed2cfbe67222790a2bd3e25350.2f5f979232bcd6119a206081ceectraefik.default, not get.geojs.io

Any idea how to fix this? Thanks

mixpc commented 5 months ago

In case you had AdGuard(+unbound) installed or acting as Primary DNS, that may be the cause of the issue. For further reference: https://community.traefik.io/t/how-to-properly-apply-geoblock-plugin-to-traefik-setup/21199

rama31244 commented 5 months ago

I do indeed have AdGuard and unbound set up so that is almost certainly the issue. Thanks for getting back to me

rama31244 commented 5 months ago

Yep, whitelisting get.geojs.io fixed the issue. Thanks