So,
I reinstalled Wireguard on its own.
Straight up vanilla install with the pre-written wg0-client.conf and the output for wg is the same
Code: Select all
public key: ************************************************GUg=
private key: (hidden)
listening port: 51820
peer: *******************************************************+bB0=
allowed ips: 10.9.0.2/32
In fact, running wg returns the same even if the client isn't running on my laptop.
In double fact, even after rebooting the server and running sudo wg I get exactly the same output as above with the client still not running on the laptop. Like there's some phantom config left over from an earlier install or something?
The peer key above matches the public key of the wg0.conf file
Same thing after stopping and restarting Wireguard.
I've also just discovered that the client connection remains active even after the client app is quit.
Update to the update:
So, I configured it on my phone this time using the QR code printed to the screen, so it's using wg0-client.conf and when running
sudo wg it returns
Code: Select all
root@HC1:/home/jon# wg
interface: wg0
public key: ***************************************************GUg=
private key: (hidden)
listening port: 51820
peer: ********************************************************+bB0=
endpoint: 192.168.20.1:59283
allowed ips: 10.9.0.2/32
latest handshake: 3 seconds ago
transfer: 9.60 KiB received, 16.18 KiB sent
but... I can't access my nextcloud instance on the phone and my public ip remains the same as when not connected to the VPN