Closed rajmondburgaj closed 9 months ago
I constantly get the error as below
The log 'spam' should be re-fixed in 6c639fcf7f547c09cd6ec46a19ce40298042dc63 where if ipinfo.io responds that too many requests are sent, it logs the error once as warning, and does not keep on retrying. This was previous behavior and most likely a regression introduced recently, although YOU DID NOT ATTACH THE GLUETUN VERSION AS REQUESTED!!!... so I can't tell 😭
As a result, the connection is not established in the specified location but rather sticks to the Netherlands which I think is the default location for Surfshark. Is this error originating from the gluetun itself, or is it related to the Surfshark?
Incorrect, you would need to filter servers (see the wiki). By default Gluetun picks at random a server from the pool of all surfshark servers. Now this error is just because ipinfo.io received too many requests from that particular VPN server, so it blocks you. Although this log line is for informational purposes only, it does not affect the VPN or server selection or healthiness or anything really.
Regarding the ipinfo.io errors:
[ip getter] too many requests sent for this month from https://ipinfo.io/: 429 429 Too Many Requests
The ipinfo.io service (quite sensibly) applies rate limiting for unidentified requests. I suspect this is performed by source IP address so becomes a problem when you're connected to a VPN because, of course, you're sharing an IP with many others. You can however register at ipinfo.io (with an email address) and they'll give you an API key of your very own, entitling you to 50k requests/month for free.
Pass the API to your gluetun container with the PUBLICIP_API_TOKEN
env var:
PUBLICIP_API=ipinfo
PUBLICIP_API_TOKEN=YourKeyHere02345
Regarding the ipinfo.io errors:
[ip getter] too many requests sent for this month from https://ipinfo.io/: 429 429 Too Many Requests
The ipinfo.io service (quite sensibly) applies rate limiting for unidentified requests. I suspect this is performed by source IP address so becomes a problem when you're connected to a VPN because, of course, you're sharing an IP with many others. You can however register at ipinfo.io (with an email address) and they'll give you an API key of your very own, entitling you to 50k requests/month for free.
Pass the API to your gluetun container with the
PUBLICIP_API_TOKEN
env var:PUBLICIP_API=ipinfo PUBLICIP_API_TOKEN=YourKeyHere02345
Hi there, I tried including the two lines above in my compose but still have the too many requests error. Have I implemented correctly?
services:
gluetun:
image: qmcgaw/gluetun:latest
container_name: gluetun
restart: always
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
volumes:
- /home/crispy/docker/gluetun2/config:/config
ports:
- "8009:8000/tcp"
- "6081:6881"
- "6081:6881/udp"
- "6011:6011"
environment:
VPN_SERVICE_PROVIDER: windscribe
VPN_TYPE: wireguard
WIREGUARD_PRIVATE_KEY: <<<<redacted>>>>
WIREGUARD_ADDRESSES: <<<<redacted>>>>
WIREGUARD_PRESHARED_KEY: <<<<redacted>>>>
SERVER_REGIONS: Poland
SERVER_CITIES: Gdansk
PUBLICIP_API: ipinfo
PUBLICIP_API_TOKEN: <<<<redacted>>>>
When I try to use Wireshark with surfshark VPN I constantly get the error as below:
As a result, the connection is not established in the specified location but rather sticks to the Netherlands which I think is the default location for Surfshark. Is this error originating from the gluetun itself, or is it related to the Surfshark?
The docker compose is fairly easy.