How to enable network activity logging in wireguard?
I searched for ways to view the logs on the server but don't see anything under /var/log.
As it's running as a systemd service I can see some minimal info with
sudo systemctl status wg-quick@wg0
but this provides very little info.
Also tried:
journalctl -u wg-quick@wg0
but this does not show much more than the previous command.
Ideally I would like to be able to see peer connections and (optionally) the requests that are being made.
So far the only helpful diagnostic command I've found is sudo wg show wg0 (or just sudo wg) but I wish there was a way to increase the verbosity level and have it display in real time.
Update:
It is possible to get some sense of what connections are initiated by using third-party network tools such as tcpdump | grep 10.66.66 (given that the tunnel is set up on 10.66.66.x) and nethogs, but that still does not answer the question how to do it directly via wireguard.