Trying to get up my VPN interface with sudo wg-quick down wg0;sudo wg-quick up wg0
raised:
RTNETLINK answers: Operation not supported
Unable to access interface: Protocol not supported
I am not sure what happened but the only thing I did was reboot. I did not update my packages. Still something apparently changed.
Download and install the latest version of the WireGuard client from the official WireGuard website. Navigate to our config file generator. Choose Generate key or Add key manually. Select the required Single or Multi-hop server configuration(s), Port , Internet protocol and hit Download zip archive.
Here are the best VPNs that support WireGuard ExpressVPN — The best all-around VPN has a Lightway Protocol which makes it even faster for browsing, gaming, and streaming. CyberGhost – Easy-to-use VPN with WireGuard for Linux and iOS. Private Internet Access – Strong security features and WireGuard support for anonymity and fast speeds.
The WireGuard VPN protocol is designed stateless. Connections are considered as an interface — once they're up, they always stay up. If the connection to the VPN server is lost, the internet connection stops working until the VPN server becomes reachable again.
On StrongVPN, all VPN protocols, including WireGuard, allow you to have up to 12 devices connected to our VPN service. Can I select what port WireGuard uses for the VPN connection?
If you are trying to establish a WireGuard connection with a wg-quick command and receive the following error..: $ ip link add dev wg0 type wireguard RNETLINK answers: Operation not supported Unable to access interface: Protocol not supported ..most likely the wireguard kernel module is not loaded in your system.
In my case there were no appropriate kernel headers installed.
First you need to know your current kernel version:
# uname --kernel-release
4.19.0-14-cloud-amd64
Important part here is "cloud-amd64" (there are several versions of "linux-headers-..." package, use apt list linux-headers-*
to see what is available).
Then install appropriate kernel headers (I'm using Debian):
# apt install linux-headers-cloud-amd64
Then re-install wireguard-dkms
package:
# apt install --reinstall wireguard-dkms
Reboot your OS:
# reboot
In my case (Debian 10, PiVPN) i had to:
apt-get update
apt-get install linux-image-amd64 linux-headers-amd64
reboot
apt reinstall wireguard-dkms
reboot
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With