Joentje / nordvpn-proxy

Use NordVPN in your Docker stack
141 stars 53 forks source link

Country code set to UK server but connects to a NL server?! #64

Closed BobWs closed 3 years ago

BobWs commented 3 years ago

Hi, When I set Country to UK nordvpn-proxy connects to a Random NL server, but when I set Country to CA it connects to a random CA server (which is good). How is this possible? So how can I set nordvpn=proxy to connect to the UK servers?

Here's my log:

2021-05-05 07:35:18 INFO: Download and extract ovpn files
2021-05-05 07:35:18 INFO: Removing current cronfile
2021-05-05 07:35:18 INFO: Creating new cronfile
2021-05-05 07:35:18 INFO: Your cron settings (*/15 * * * *) will be applied!
2021-05-05 07:35:28 INFO: Privoxy will be started
2021-05-05 07:35:28.368 7f5673291d48 Info: Privoxy version 3.0.28
2021-05-05 07:35:28.369 7f5673291d48 Info: Program name: privoxy
2021-05-05 07:35:28.371 7f5673291d48 Info: Listening on port 8118 on IP address 0.0.0.0
2021-05-05 07:35:31.425 7f5673184b20 Request: push.services.mozilla.com:443/
2021-05-05 07:35:49 INFO: OVPN files successfully unzipped to /app/ovpn/config
2021-05-05 07:35:49 INFO: SERVER has not been set, choosing best for you.
2021-05-05 07:35:49 INFO: Your country setting will be used. This is set to: UK
2021-05-05 07:35:49 INFO: The country codes are unknown, getting country codes from API
nl928.nordvpn.com
2021-05-05 07:35:51 INFO: Creating tun interface /dev/net/tun

2021-05-05 07:35:51 INFO: Connection to server: Netherlands #928
2021-05-05 07:35:51 INFO: Current load: 2
2021-05-05 07:35:51 INFO: Info updated at: 2021-05-05 07:34:51
2021-05-05 07:35:51 INFO: Server IP: 213.152.188.82
2021-05-05 07:35:51 INFO: Protocol: udp
2021-05-05 07:37:40 INFO: Download and extract ovpn files
2021-05-05 07:37:40 INFO: Removing current cronfile
2021-05-05 07:37:40 INFO: Creating new cronfile
2021-05-05 07:37:40 INFO: Your cron settings (*/15 * * * *) will be applied!
2021-05-05 07:37:50 INFO: Privoxy will be started
2021-05-05 07:37:50.480 7fba52725d48 Info: Privoxy version 3.0.28
2021-05-05 07:37:50.481 7fba52725d48 Info: Program name: privoxy
2021-05-05 07:37:50.483 7fba52725d48 Info: Listening on port 8118 on IP address 0.0.0.0
2021-05-05 07:38:13 INFO: OVPN files successfully unzipped to /app/ovpn/config
2021-05-05 07:38:13 INFO: SERVER has not been set, choosing best for you.
2021-05-05 07:38:13 INFO: Your country setting will be used. This is set to: CA
2021-05-05 07:38:13 INFO: The country codes are unknown, getting country codes from API
ca1305.nordvpn.com
2021-05-05 07:38:15 INFO: Creating tun interface /dev/net/tun

2021-05-05 07:38:15 INFO: Connection to server: Canada #1305
2021-05-05 07:38:15 INFO: Current load: 4
2021-05-05 07:38:15 INFO: Info updated at: 2021-05-05 07:33:04
2021-05-05 07:38:15 INFO: Server IP: 5.181.233.203
2021-05-05 07:38:15 INFO: Protocol: udp
matt-laird commented 3 years ago

Try GB for the United Kingdom - Code line that processes country payload from Nord Below is example of the Nord Servers Countries payload: image

Joentje commented 3 years ago

This is indeed correct. If it does not have match, it will use what the api provides. Maybe it should be a bit improved in the docs as well where you can find the valid country codes -> list.

BobWs commented 3 years ago

Okay thanks for the suggestion I will give it a try and let you know if it works!

BobWs commented 3 years ago

Thanks it works, Iā€™m connected to UK servers!šŸ™šŸŽ‰ Closing this issue šŸ‘

2021-05-06 11:17:27 INFO: Removing current cronfile
2021-05-06 11:17:27 INFO: Download and extract ovpn files
2021-05-06 11:17:27 INFO: Creating new cronfile
2021-05-06 11:17:27 INFO: Your cron settings (*/15 * * * *) will be applied!
2021-05-06 11:17:37 INFO: Privoxy will be started
2021-05-06 11:17:37.241 7f0a8f9d8d48 Info: Privoxy version 3.0.28
2021-05-06 11:17:37.242 7f0a8f9d8d48 Info: Program name: privoxy
2021-05-06 11:17:37.243 7f0a8f9d8d48 Info: Listening on port 8118 on IP address 0.0.0.0
2021-05-06 11:18:27.582 7f0a8f8cbb20 Request: api.nordvpn.com:443/
2021-05-06 11:18:41 INFO: OVPN files successfully unzipped to /app/ovpn/config
2021-05-06 11:18:41 INFO: SERVER has not been set, choosing best for you.
2021-05-06 11:18:41 INFO: Your country setting will be used. This is set to: GB
2021-05-06 11:18:41 INFO: The country codes are unknown, getting country codes from API
uk2268.nordvpn.com
2021-05-06 11:18:43 INFO: Creating tun interface /dev/net/tun

2021-05-06 11:18:43 INFO: Connection to server: United Kingdom #2268
2021-05-06 11:18:43 INFO: Current load: 11
2021-05-06 11:18:43 INFO: Info updated at: 2021-05-06 11:15:18
2021-05-06 11:18:43 INFO: Server IP: 5.226.142.3
2021-05-06 11:18:43 INFO: Protocol: udp