Skip to content

Instantly share code, notes, and snippets.

@jazzychad
Created August 23, 2024 15:20
Show Gist options
  • Save jazzychad/789be33cedf95511c19a0390e7054d53 to your computer and use it in GitHub Desktop.
Save jazzychad/789be33cedf95511c19a0390e7054d53 to your computer and use it in GitHub Desktop.
Wireguard logs
{
"title": "Wireguard logs",
"timestamp": "2024-08-23T15:20:10.645Z",
"visibility": "public",
"parts": [
{
"id": "nYqmZqxMaxxpbPJasQMb0.md",
"timestamp": "2024-08-23T15:20:10.645Z",
"type": "post",
"subtype": "markdown"
}
]
}

To enable kernel logs:

$ echo "module wireguard +p" | sudo tee /sys/kernel/debug/dynamic_debug/control

To watch the logs:

$ sudo dmesg -wT

To disable logs:

$ echo "module wireguard -p" | sudo tee /sys/kernel/debug/dynamic_debug/control

Reference: https://ubuntu.com/server/docs/troubleshooting-wireguard-vpn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment