l-n-s / wireguard-install

WireGuard VPN server installer
MIT License
657 stars 166 forks source link

OpenVZ is not supported. Script needs to detect it. #15

Closed GuBo88 closed 5 years ago

GuBo88 commented 5 years ago

Hi,

I used your script on a VPS with CentOS 7. The installation runs smooth. I also can connect from the Wireguard iOS App. But I can't connect to any webpage. By manually starting up Wireguard I run into the following problem:

root@GuBo ~]# wg-quick up wg0 [#] ip link add wg0 type wireguard RTNETLINK answers: Operation not supported Unable to access interface: Protocol not supported [#] ip link delete dev wg0

Can you help? Thanks

ghost commented 5 years ago

is this a client side error or a server side error??

GuBo88 commented 5 years ago

Dear,

World expect server. The WireGuard App on iOS works with another (commercial) Wireguard service. Also the App shows me the connection is established. And configuration is done by the generated QR code. Would I help if you can login to the VPS Server?

I can provide you with the login data by email.

Thanks
Thomas

The life is too short to drink a bad wine.

Am 28. Januar 2019 um 20:38:04, Prajwal Koirala (notifications@github.com(mailto:notifications@github.com)) schrieb:

is this a client side error or a server side error??

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub(https://github.com/l-n-s/wireguard-install/issues/15#issuecomment-458271502), or mute the thread(https://github.com/notifications/unsubscribe-auth/ARaxpj-5F_hdW56UyCY80pTsGLORGV_Xks5vH1GcgaJpZM4aVYmY).

ghost commented 5 years ago

https://gist.github.com/LiveChief/25da2f6733711f48930dcdc8decfa986

Take a look at this.

GuBo88 commented 5 years ago

On Debian 9.2 (64-bit) Minimal and following the above steps I get the following error: /usr/lib/wireguard_install.sh: line 146: /etc/iptables/rules.v4: No such file or directory Failed to enable unit: File wg-quick@wg0.service: No such file or directory Failed to start wg-quick@wg0.service: Unit wg-quick@wg0.service not found.

Thanks

l-n-s commented 5 years ago

@GuBo88 looks like your server has problems with wireguard kernel module. Is it a virtual server? Does it allow kernel modules to be loaded?

GuBo88 commented 5 years ago

It's a virtual server (https://www.liteserver.nl). I'm not sure if it allow kernel modules to be installed.

l-n-s commented 5 years ago

@GuBo88 good, is it KVM or OpenVZ plan?

GuBo88 commented 5 years ago

OpenVZ and installing Kernel modules is not possible in OpenVZ at Liteserver. I need a KVM VPS from them.

GuBo88 commented 5 years ago

Any way to run Wireguard on OpneVZ?

l-n-s commented 5 years ago

You can install a userspace version of Wireguard, but it performs a lot worse than the kernel module. I'd suggest changing your VPS plan to KVM.

hexicans commented 4 years ago

Hello, Seem now it's supported, no ? https://wiki.openvz.org/VPN_using_Wireguard

l-n-s commented 4 years ago

No, it's not. This instruction is for hosting providers, not for clients.

hexicans commented 4 years ago

If I configure host and container, I can run a wireguard server I think