SJBERTRAND / gnome-wireguard-extension

Wireguard extension for the gnome-shell
GNU General Public License v2.0
23 stars 1 forks source link

Error: Operation not permitted when starting interface #13

Closed phifogg closed 1 month ago

phifogg commented 1 month ago

I setup a new debian gnome device, added this extention, imported my wireguard.conf file. So far all good. When I try to start the connection, nothing works.

Error message as shown in wg show:

Unable to access interface <interface name>: Operation not permitted

I would assume this is due to me not doing the connection as root?

phifogg commented 1 month ago

Started debug of wireguard with

$ echo "module wireguard +p" | sudo tee /sys/kernel/debug/dynamic_debug/control

Basically only one message in the logfile:

Sending handshake initiation to peer XX (ip)

Then nothing. I can ping the peer just fine.

phifogg commented 1 month ago

Just do add.. connection works fine from windows or android phone. just not from the debian system.

SJBERTRAND commented 1 month ago

Debian uses old libraries and Gnome 43. There was some changes on how to import API's in Gnome Java Script with Gnome 44. So for Debian you should download the extension version 11 for Gnome 43. It will use the proper API

image

I tried it in a VM on a fresh install of Debian stable and it worked without problem. I was able to import a config file an enable/disable the tunnel

Let me know if it doesn't solve it.

phifogg commented 1 month ago

I tested it today again - this time from far far away :D This worked like charm.

Last time when I had issues was basically at home through my mobile phone's hot spot. Seems this is somehow connected to the hot spot.