PiVPN no Wireguard option Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Xlice
Posts: 3
Joined: Tue Sep 29, 2020 5:29 pm

PiVPN no Wireguard option

Post by Xlice »

Hello,
i tried to install PiVPN in dietpi-software on my Odroid HC1(XU4) with the latest DietPi image. Regarding several tutorials there should appear a window with the option to choose wireguard after choosing the VPN user. This does not happen and it directly install OpenVPN. Is it a bug?

Greetings
User avatar
Joulinar
Posts: 2277
Joined: Sat Nov 16, 2019 12:49 am

Re: PiVPN no Wireguard option

Post by Joulinar »

Hi,

many thanks for your report. Usually this should not be the case and PiVPN should ask if you like to install WireGuard or OpenVPN. Do you see from which source PiVPN is installed? Do you use Debian Buster or Stretch?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Xlice
Posts: 3
Joined: Tue Sep 29, 2020 5:29 pm

Re: PiVPN no Wireguard option

Post by Xlice »

I retried with a freshly flashed image. I am using Buster which is the default. I just changed network settings to static IP. After that i start the installation of PiVPN. I get this error:
::: Your system is up to date! Continuing with PiVPN installation...
::: Checking for git... already installed!
::: Checking for tar... already installed!
::: Checking for wget... already installed!
::: Checking for curl... already installed!
::: Checking for grep... already installed!
::: Checking for dnsutils... already installed!
::: Checking for whiptail... already installed!
::: Checking for net-tools... already installed!
::: Checking for bsdmainutils... already installed!
::: Checking for iptables-persistent... not installed!
::: Failed to install iptables-persistent!

I have no idea why the installation of iptables-persistent fails. After a reboot i tried it again and it runs through till the configuration option window. But still no wireguard option.

Edit: PiVPN is cloned from https://github.com/pivpn/pivpn.git
User avatar
Joulinar
Posts: 2277
Joined: Sat Nov 16, 2019 12:49 am

Re: PiVPN no Wireguard option

Post by Joulinar »

Hi,

could be that WireGuard is not supported on your device? I tested installation of PiVPN on my VM and it display WireGuard. :?

As the installation script is downloaded from PiVPN side, maybe better to check directly with them. Probably they know why the installer is not offering WireGuard. https://github.com/pivpn/pivpn
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Xlice
Posts: 3
Joined: Tue Sep 29, 2020 5:29 pm

Re: PiVPN no Wireguard option

Post by Xlice »

Yeah i think i found the lines (from 1113) in the install script. If OS is NOT Raspbian or CPU architecture is NOT X86 then it automatically sets VPN to OpenVPN.

Code: Select all

elif [ "$X86_SYSTEM" -eq 0 ]; then
	echo "::: Using VPN: OpenVPN"
	VPN="openvpn"
fi
I installed the plain wireguard now without PiVPN and it works great :D
User avatar
Joulinar
Posts: 2277
Joined: Sat Nov 16, 2019 12:49 am

Re: PiVPN no Wireguard option

Post by Joulinar »

Yep indeed, but this is a behaviour of the PiVPN script themselves, outside DietPi area. Personally I'm using native WireGuard as well, as I don't feel the need of having the overhead of an admin Gui like PiVPN ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply