Thatâs not how the PiVPN script works. PiVPN itself checks possible options and offers to install Wireguard or OpenVPN. However, this selection depends on a number of factors. The main factor here is the Wireguard kernel module. If this is available, PiVPN also offers Wireguard as an option. If not, OpenVPN is installed automatically.
The entire PiVPN configuration is independent of the DietPi configuration. PiVPN uses completely different parameters and IP addresses than DietPi. Therefore, the configurations cannot be mixed. However, this has always been the case. You can either use PiVPN or the native VPN server apps from dietpi-software.
OK, then would it not be sensible to install Wireguard as a dependency? Otherwise PiVPN doesnât offer the option to use it at all (which confused me tbh).
Best to my knowledge, PiVPN donât care about already installed Wireguard software. It checks for the kernel module. If this is not present, it will not offer Wireguard (I guess). But this is something to ask the PiVPN maintainer.
I see your point⌠I didnât know that PiVPN used separate Wireguard configs.
But I still think this is a bit of a DietPi issue. Because, if you install Wireguard using dietpi-software, and then PiVPN, two wireguard tunnels are generated, sharing the same port, if I understand correctly? It is not clear that to use Wireguard through PiVPN, you need to install it through apt separately and that the config is not compatible with DietPiâs internal one.
nope, PiVPN is goring to remove the DietPi configuration, as it is creating itâs own Wiregard server config file wg0.conf. This ia a behaviour of PiVPN.
There is a missunderstanding still
If Wireguard is not installed via PiVPN, PiVPN will not generate or use any Wiregard configuration, as it will use OpenVPN.
I did a test installation on my NanoPi R5S and I got ask by the PiVPN installer to select between Wiregiard and OpenVPN. Means PiVPN is offering both if all conditions (wg kernel module) are met.
Interesting. I must have missed this then, and subsequently it was not offered because it has already installed OpenVPN, and assumed I want it. Iâll remove everything and retry.