QVPN Service 3 - Wireguard connection from client bypasses everything

Hi there,

My Issue: wireguard tunnel from mobile client to wireguard server on qnap established - but seems to bypass 100%

Done so far:

  • Wireguard server set up on qnap nas
  • wireguard client config set up on mobile device
  • connection is being establish - seeing client on server at peer windows (rx/tx works)

Next step: take any website showing “my ip address”

Summary:

When using QNAP wireguard connection → website shows my mobile device public ip → 100% bypass
When using FritzBox wireguard connection → website shows my home router public ip
When using FritzBox IPSec connection → website shows my home router public ip
When using QNAP openvpn connection → website show my home router public ip

(Hint: ALL connections above were done with same mobile device!)

Steps I’ve done so far to solve this issue:

  • Comparing wireguard client config files from FritzBox and QNAP → no mismatch in structure found
  • QNAP FW no issues
  • App settings on wireguard app same for all at default setting

In your Wireguard setup on the server, what is the allowed address range? Do you have things set up so all traffic goes through the VPN or only LAN traffic?

Thanks for the detailed report! To help us look into this, could you send us your mobile client’s WireGuard configuration file via private message?

Before sharing, please make sure to redact any sensitive fields first — for example, the PrivateKey, PresharedKey, and the public IP in the Endpoint field, among others.

Thanks!

Are the allowed IP’s on the client (mobile device) the same for QNAP and the FritzBox?
Because this is typical what the Allowed IP’s setting does on the client: tell it which addresses to send through the tunnel, either your LAN subnet if you only need VPN to access your LAN, or 0.0.0.0/0 if everything needs to go through the LAN

WG connections are Peer to Peer. :smiley:

@petur is correct.

Do you have 0.0.0.0/0 set up for the mobile connection so that all traffic flows through the VPN. If you have just your LAN IP space in there, you can access your LAN but all other traffic will flow through your normal (non-vpn) connection.

I followed these official how to for server setup amd client setup

Please let me know what your allowed address setting is on your NAS side please.

Here are the settings I use. A connection is being established.

First of all, please never publish private keys. Who cares about your port number. The private keys should always be kept private.

This is your issue:

The allowed IPs setting is only allowing LAN traffic to go through the VPN. If you want everything to go through the VPN, that setting needs to be changed to 0.0.0.0/0.

Ok, thank you. I check this out immediately.

Loool, impossible to define. It’s pre-filled out by qts. Seems to be logical order… 1st peer gets.xxx.xxx.xxx.2, 2nd peer gets xxx.xxx.xxx.3

Concerning the keys in my screens - doesnt matter. It will be changed after I got a solution here and of course the server will be shutdown.

Solution is found:

In the client configuration I have to config for the peer from client view

xxx.xxx.xxx.0/24, 0.0.0.0/0

then the whole thing works as intended.

Conclusion:

  • Wonky issue with options of doing errors
  • How to has errors in at last minimum misleading actions

Issue for me closed. Will now erase the server and cut off the forwarding in my router. Maybe this thread gives QNAP enough stuff how to improve this feature for future. Atm it is from my point of view hard to use. A modern NAS with many premade software must give the option to use all provided stuff on a easy base for the customer. If it is mandatory to have high or master level of it knowledge than the product targets not the right group of customers.

Thanks a lot for all to figure out and get it to work. Have a nice sunday.

Right - the mobile peer needs to have allowed addresses of 0.0.0.0/0 as well. I think it’s almost always that on the “remote” side as you never know what IP address you may have.

If there’s no way to change the “allowed addresses” on the NAS side then that’s a failure on QNAP. I have multiple IP subnets on my LAN and with it the way I understand it from you, I couldn’t access some of those other subnets.

Anyhow, my recommendation is to use your router as your VPN peer and not your QNAP.

And this advice I’ll follow on. 100%. As I wrote only configuring additional clients is hell on earth. No way.

cu