DavidVentura / Wireguard_qml

UBPorts app in QML for Wireguard
MIT License
4 stars 5 forks source link

What about the preshared key? #5

Closed luksus42 closed 2 years ago

luksus42 commented 2 years ago

(For testing, I disabled my PIN-password and now kernel module is recognized)

I generated a client-config (with pivpn) on my wireguard server and then tried to add a new profile with the data of this config. My config contains a preshared key, which is not represented in the app profile config. I assume that is the reason why it does not work.

The client config file looks like this:

[Interface]
PrivateKey = ***
Address = 10.6.0.2/24
MTU = 1420
DNS = 192.168.42.110, 192.168.42.1

[Peer]
PublicKey = ***
PresharedKey = ***
Endpoint = xyz:51820
AllowedIPs = 0.0.0.0/0, ::0/0

Also, I wonder, if it would be possible to just copy a config to the ~/.local/share/wireguard.davidv.dev/profiles/ folder, to simplify configuration of new profiles.