leon3s / wireguard-gui

A wireguard client GUI for Debian/Linux made with nextauri
Apache License 2.0
32 stars 2 forks source link

Simple interface - peer conenction doesn't work [Ubuntu 24.04LTS] #107

Open sireaev opened 3 weeks ago

sireaev commented 3 weeks ago

Hello there,

Ubuntu 24.04LTS

Installed Wireguard and wireguard-gui from leon3s, just added a simple configuration:

[Interface]
PrivateKey = 
Address = 
DNS =

[Peer]
PublicKey = 
PresharedKey =
AllowedIPs = 
Endpoint =
PersistentKeepAlive = 25

The wireguard-gui manages to connect (showing green button) and tray, but though trying to connect to a website outside my network it outputs 403. Though on other platforms like Windows or configuring manually works well, using wg wg-quick etc...

leon3s commented 3 weeks ago

Hey!

First thank you to have taken the time to open an issue, wireguard-gui use wg-quick as back-end to setup the wireguard connection. So if it's work using the wg-quick command it should work in the gui.

I don't really have time at the moment to investigate further on the issue till 16 June. And the config look pretty empty to me to actually work.

╰─ sudo cat /etc/wireguard/wgtest.conf
[Interface]
PrivateKey = 
Address = 
DNS =

[Peer]
PublicKey = 
PresharedKey =
AllowedIPs = 
Endpoint =
PersistentKeepAlive = 25
sudo wg-quick up wgtest            
[#] ip link add wgtest type wireguard
[#] wg setconf wgtest /dev/fd/63
Line unrecognized: `PrivateKey='
Configuration parsing error
[#] ip link delete dev wgtest

I understand that you probably removed values for obvious security reason, but without a way for me to properly reproduce the problem it will be hard to fix it anyway.

So pull request is welcome, you can setup wireguard-gui in development by cloning the repository