Qnap Qvpn

0 views
Skip to first unread message

Gigí Ruais

unread,
Aug 5, 2024, 12:17:56 AM8/5/24
to steamsaltmistterf
Sowhile we do not deal literally with clients and servers but rather equal peers here, I will use the term "server" for the NAS and "client" for the computers connecting to it, just to make it easier.

So first of all, just like with OpenVPN, you need to make sure that your NAS can be reached, so you need to add the "Listen Port" from your Wireguard setup page to your Router's port forwarding. Pick an "network interface" setting in the Wireguard setup on QVPN and then add the respective IP address you chose as well as the listen port to your router setup.


On your Client computer, you open the WireGuard app that you downloaded from wireguard.com and select to "add an empty tunnel" (Windows) or "Create from scratch" (Android). You will there see a "public key" and "private key" field. If it's empty on Android, look for a "reload" button that will fill the respective lines. Again here, copy out the Public key and in this case send it to the computer that you use to manage your QNAP.


Now, on your QNAP QPVN Wireguard setup, press the "Add Peer" button. Add a meaningful "Peer name" and paste the Public Key that you just created in the last step into the respective "public key" field . Before pressing "Apply", click the down-arrow next to "advanced settings" and note the "Allowed IPs" down. This should be something like 198.18.7.2/32. This information is needed on the client and will be different for each peer that you add. You can leave the other fields in the "advanced" section blank.


Then add a [Peer] section in Windows or press the "Add Peer" link on Android. Then insert the public key from your NAS with a PublicKey = ... line. Below there, add the line AllowedIPs = 0.0.0.0/0 to make sure that all data will pass through the VPN.Lastly, add the Endpoint line where you add the Dynamic DNS and port info of your QNAP NAS with Endpoint = whateverisyours.myqnapcloud.com:51820 (likely the myqnapcloud.com domain that you chose. This is the same info as for your OpenVPN setup, just a different port.


Hello, this works perfekt for me. But when i restart my qnap it wont connect correctly to zerotier. In ZeroTier Central the qnap will be signed as online but i cannot ping to the device.

When i leave and join again, i got an error on join like: 500 join


The mapped directory cannot use the original path ($HOME/docker/zerotier-one). After investigation, it was found that this path mapping does not exist after NAS restarts. The image cannot read the previous configuration after startup, which causes ZeroTier not to connect automatically.


After NAS restarts, it is necessary to manually restart the CONTAINER in order to connect to the original network ID settings. By using the modified command above, there is no need for manual operation after NAS restarts; the container can connect to the original network ID automatically.

3a8082e126
Reply all
Reply to author
Forward
0 new messages