Public IP visible through VPN

Hi all! My experience in networking is still a bit limited and I do not quite understand why my public IP is visible though my VPN connection.

I have a NordVPN account and followed the instructions to set up the VPN here:

https://support.nordvpn.com/Connectivity/NAS/1047411102/How-to-configure-QNAP-4-4-2-NAS.htm

However, when I go to check the IP in the Torrent Address detection both the VPN IP and my own IP show up. I was wondering what I am doing wrong and how to proceed to fix it.

You have to disable IPV6 on the NAS (or router).

Usually this is the result of a DNS issue, I would suggest trying to point the VPN connection to NordVPN’s DNS servers. This could potentially be done at the router as well depending on your setup but I wasn’t able to find documentation on where you can change this in QVPN:

103.86.96.100

103.86.99.100

Same issue with ProtonVpn sadly, both with openvpn and wireguard…

Never really been able to fix it, if someone have a fix I will be really happy too…

If someone more knowledgeable will correct me as needed, I believe this is actually running normally.

  1. You have a real IP address. You also have a VPN address.

  2. VPN traffic goes between you and your VPN host, and from there goes out in to the internet at large. This first hop between you and your VPN host goes between your real IP address and their server IP address. This traffic is what’s encrypted/encapsulated.

Now, your torrent client is seeing both the real and VPN addresses because that’s simply the way it’s configured, probably by default using all adapters.

You need to explicitly bind your torrent client to ONLY the virtual adapter that your VPN connection uses to prevent leaks. Otherwise your torrent client will use the next available adapter when the VPN disconnects.

If the torrent client doesn’t let you configure it via GUI (for example like QTransmission), you may need to manually modify the .json configuretion file.

Did anyone find a satisfactory resolution. I have the same issue with NordVPN.

Thanks, just tried that, but did not help. Please see also my answer to the other reply :blush:

Thanks, I just tried setting the DNS manually, but the IP address is still leaking. I did set the DNS of the virtual switch to the ones from NordVPN and also deactivated IPv6 (as also suggested). What I find odd is that the virtual switch does connect to the VPN in the interface overview. Perhaps this is the issue (see screenshot)?

https://postimg.cc/CdnRF5Mf

Good to know it’s not only me then.
One solution that kind of worked for me was to set a Proxy directly in download station. Not ideal, but better than nothing, I guess :man_shrugging:

I did with qBittorrent. There in the advanced section of the settings, you can set the network adapter manually. There, the VPN shows up for me and then the IP does not leak

Possibly, sounds like everything is correct but I’m really not too familiar with QNAP/VPN setups. Is it possible to set the VPN connection as the default gateway for that switch?

Do you use Download manager? If so, under App settings you can select the VPN as default gateway.

Sadly won’t work for me as I don’t use download station and some apps I use don’t have proxy redirection built in…

Thanks. I’ll try it.

I’m new to this whole thing and I can’t get qBittorrent to work in container station/docker because the webUI uses the same port as the QNAP dashboard. I googled and tried to change the webUI port but I guess I don’t know how to map the new port tried to pick. How did you manage this? Can you explain it like I’m 5 years old? Just got a notice from IP about a few of the movies I downloaded with download station so I definitely need to find a solution.

Hmm, at least I do not know how. Would I have to set the IP address manually to do that (using DHCP at the moment)?

I use “Download Station”, yes, but there is no option to elect the VPN as default gateway as far as I can see.

Hey, just saw your reply. I did install qBittorent from the Qnapclub store, not with a container. Then in the settings under advanced, you can choose the network interface. For me the VPN is named “tun2003” for some reason…

there is no option to elect the VPN as default gateway

  1. Open QVPN Service GUI
  2. Under the VPN Client section on the left, click on VPN Connection Profiles
  3. On the top of the GUI will be an option to “Use VPN as NAS Default Gateway”

Edit: This is the same place that you set up the NordVPN connection profile

When you go to the Qnap App Center (where you can view all installed Apps or uninstall, etc), there’s a menu under Downloadmanager to select the VPN as default.