I'm trying to install locally GeoBlock plugin by Pascal Minder in my traefik setup
Only US ip addresses should be allowed. With my current setup I am able to access the website from a different country so something must be broken...
traefik+crowdsec+portainer are currently installed via docker compose.
I have read guides+watched YouTube videos on docker+traefik+crowdsec but not found a solution to my issue. Apologies in advance as I have just stepped into the traefik world which I find, amazing!
Still, if I access the website via VPN via eg. France the site traefik-dashboard.website.com is accessible, and it shouldn't be.
Plus, it there are more websites, eg earth dot website dot com mars dot website dot com they should be blocked as well unless accessed from the US. Should the same setup (that I fail to properly configure) be replicated for each container?
eg. apply geoblock to container earth yml files as in traefik dashboard so that the geoblock is also applied to earth dot website dot com?
Thank you @bluepuma77 once more. I think the issue is on their side. Their domain is related to three different IPs.
pi@raspberrypi:~/docker/traefik $ ping 104.26.1.100
PING 104.26.1.100 (104.26.1.100) 56(84) bytes of data.
64 bytes from 104.26.1.100: icmp_seq=1 ttl=58 time=116 ms
64 bytes from 104.26.1.100: icmp_seq=2 ttl=58 time=67.5 ms
pi@raspberrypi:~/docker/traefik $ ping 172.67.70.233
PING 172.67.70.233 (172.67.70.233) 56(84) bytes of data.
64 bytes from 172.67.70.233: icmp_seq=1 ttl=58 time=37.1 ms
64 bytes from 172.67.70.233: icmp_seq=2 ttl=58 time=31.8 ms
64 bytes from 172.67.70.233: icmp_seq=3 ttl=58 time=36.9 ms
pi@raspberrypi:~/docker/traefik $ ping 104.26.1.100
PING 104.26.1.100 (104.26.1.100) 56(84) bytes of data.
64 bytes from 104.26.1.100: icmp_seq=1 ttl=58 time=24.2 ms
64 bytes from 104.26.1.100: icmp_seq=2 ttl=58 time=26.3 ms
But, as per their own documentation:
pi@raspberrypi:~/docker/traefik $ wget https://get.geojs.io/v1/ip/country/8.8.8.8
--2024-01-24 21:32:14-- https://get.geojs.io/v1/ip/country/8.8.8.8
Resolving get.geojs.io (get.geojs.io)... 0.0.0.0, 2606:4700:20::681a:164, 2606:4700:20::ac43:46e9, ...
Connecting to get.geojs.io (get.geojs.io)|0.0.0.0|:443... connected.
ERROR: The certificate of ‘get.geojs.io’ is not trusted.
ERROR: The certificate of ‘get.geojs.io’ doesn't have a known issuer.
The certificate's owner does not match hostname ‘get.geojs.io’
Thank you. Yes, I'm running AdGuard+unbound on a different server (static 192.168.1.10). The router is configured to forward DNS requests to 192.168.1.10 (Router has setting 192.168.1.10 as Primary DNS, no secondary DNS set) and AdGuard is blocking ads LAN-wide so all good.
The issue is then in my AdGuard+unbound setup which, strangely enough, blocks all sorts of ads alright.
So, AdGuard server (192.168.1.10) shutdown and Primary DNS 1.1.1.1 in router.
So now, from the other server:
pi@raspberrypi:~/docker/traefik $ wget https://get.geojs.io/v1/ip/country
--2024-01-24 23:20:21-- https://get.geojs.io/v1/ip/country
Resolving get.geojs.io (get.geojs.io)... 104.26.0.100, 172.67.70.233, 104.26.1.100, ...
Connecting to get.geojs.io (get.geojs.io)|104.26.0.100|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘country’
country [ <=> ] 3 --.-KB/s in 0s
2024-01-24 23:20:21 (402 KB/s) - ‘country’ saved [3]
pi@alpha:~/docker/traefik $ cat country
US
So good. Time to troubleshoot what's going on with AdGuard, not here, different community. I think I'll reply to the GitHub message as it may be of help.