qdm12 / gluetun

VPN client in a thin Docker container for multiple VPN providers, written in Go, and using OpenVPN or Wireguard, DNS over TLS, with a few proxy servers built-in.
https://hub.docker.com/r/qmcgaw/gluetun
MIT License
7.72k stars 360 forks source link

Mullvad city error - exit on startup, worked previously #1604

Closed ppriorfl closed 1 year ago

ppriorfl commented 1 year ago
environment:
  - NETWORK=192.168.1.0/24
  - VPN_SERVICE_PROVIDER=mullvad
  - VPN_TYPE=wireguard
  - WIREGUARD_PRIVATE_KEY=xxxxxx
  - WIREGUARD_ADDRESSES=xx.xx.xx.xx/32
  - SERVER_CITIES=Amsterdam
  - FIREWALL_OUTBOUND_SUBNETS=10.0.0.0/24 # added this to get access to LAN from container

result in log - note it says error for server city name but it's correct. In the variable above it's capital A but in the error message it's small a - not sure if this is case sensitive or why it reports it small a when it's not what is in the variable.

This used to work.

If I comment out that line the VPN will load, but then it gives me an IP address in the USA from ifconfig so it's not connecting to the correct mullvad server.

2023-05-26T00:40:13Z INFO [firewall] enabling... 2023-05-26T00:40:13Z INFO [firewall] enabled successfully 2023-05-26T00:40:14Z INFO [storage] creating /gluetun/servers.json with 13056 hardcoded servers 2023-05-26T00:40:14Z ERROR VPN settings: provider settings: server selection: for VPN service provider mullvad: the city specified is not valid: value is not one of the possible choices: value amsterdam, choices available are Adelaide, Amsterdam, Ashburn VA, Athens, Atlanta GA, Auckland, Belgrade, Bogota, Bratislava, Brisbane, Brussels, Bucharest, Budapest, Chicago IL, Chisinau, Copenhagen, Dallas TX, Denver CO, Dubai, Dublin, Dusseldorf, Frankfurt, Gothenburg, Helsinki, Hong Kong, Houston TX, Johannesburg, Lisbon, London, Los Angeles CA, Luxembourg, Madrid, Malmö, Manchester, Marseille, Melbourne, Miami FL, Milan, Montreal, New York NY, Osaka, Oslo, Paris, Perth, Phoenix AZ, Prague, Raleigh NC, Riga, Rome, Salt Lake City UT, San Jose CA, Sao Paulo, Seattle WA, Secaucus NJ, Singapore, Skopje, Sofia, Stavanger, Stockholm, Sydney, Tallinn, Tel Aviv, Tirana, Tokyo, Toronto, Vancouver, Vienna, Warsaw, Zagreb, Zurich 2023-05-26T00:40:14Z INFO Shutdown successful

nebula8830 commented 1 year ago

Someone pointed out in another issue that this has already been reported, removing my comment and putting this issue out for attention instead

https://github.com/qdm12/gluetun/issues/1599

qdm12 commented 1 year ago

The latest image qmcgaw/gluetun was fixed a few minutes ago by 7e325715c7a24da73447b29cec94b207bd950745. The regression was introduced 2 days ago with a43973c093662c2b5521eb2e9e3aea053584e96b which did compare text taking care about case sensitivity (gluetun lowercases everything inputted, but keeps servers data text with case sensitivity). My apologies for the delay fixing it, obviously, and thank you for reporting the issue 🎖️

Just in case you are not aware, you can use released docker images such as qmcgaw/gluetun:v3 or qmcgaw/gluetun:v3.34.1 which should be more stable than the latest image qmcgaw/gluetun. I always appreciate users using the latest image since this helps fix bugs before bringing them to a stable release which would end up unstable, so ideally keep using the latest image 😉