wireguard-install icon indicating copy to clipboard operation
wireguard-install copied to clipboard

OPENVZ

Open Arioshoma opened this issue 4 years ago • 3 comments

Is this possible to use this script on OpenVZ servers? Is this possible to change ports?

Arioshoma avatar Feb 05 '21 22:02 Arioshoma

If your host has a new enough kernel with Wireguard in it, then yes, with my pull request. https://github.com/angristan/wireguard-install/pull/185

You can test if it works by running ip link add wg999 type Wireguard. If it creates the interface, then you are good.

If not, then you will have to try going with either Wireguard-go, or BoringTun. If I get some spare time in the future, I may try to add BoringTun to this script as a backup option when the Wireguard test fails. As BoringTun seems to preform better than WireGuard-go.

The script automatically selects a random port. But you can specify whichever port you want.

jaminmc avatar Feb 07 '21 15:02 jaminmc

Strangely on Hostinger VPS, OPENVZ is running with 5.4.0 kernel, but this command fails, while ip link add dev wg0 type wireguard works.

alicemq avatar Feb 23 '21 20:02 alicemq

Until they merge my Pull request, it will fail.

Try:

git clone https://github.com/jaminmc/wireguard-install
./wireguard-install/wireguard-install.sh

and it will install it from my fork.

jaminmc avatar Feb 25 '21 16:02 jaminmc