Closed ddan4 closed 3 years ago
Please post the config file that WireGuard is complaining about. You can edit out the keys.
I think you might be using an IPsec config file instead of a WireGuard config file.
you are correct! only problem is.. I deleted that from /etc/wireguard/wg0.conf
and ran again this command on the proper wireuard config sudo install -o root -g root -m 600 hp.conf /etc/wireguard/wg0.conf
but now though sudo wg-quick up wg0
works, I have no internet connection once connected
just had to reboot, thanks!
I also have Line unrecognized
on rc-service net.wg0 start
, my /etc/wireguard/wg0.conf
:
[Interface]
PrivateKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
Address = xx.xx.x.x
DNS = xxx.xx.xxx.xxx
[Peer]
PublicKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
PresharedKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
AllowedIPs = 0.0.0.0/0
Endpoint = x.xx.xxx.xxx:xxxxx
Describe the bug
When trying to enable my wireguard connection, I get the following error.
This is on Ubuntu 20LTS,
To Reproduce
Steps to reproduce the behavior:
sudo install -o root -g root -m 600 <username>.conf /etc/wireguard/wg0.conf
sudo wg-quick up wg0
(also triedsystemctl status wg-quick@wg0.service
)Expected behavior
Usually at this point wireguard simply works and I never have to concern with it again.
Full log