f3698ee0d75890696251419824a7067f07121d25
howto/wireguard.md
| ... | ... | @@ -62,6 +62,22 @@ ping fe80::<your_peers_suffix>%<interface_name> |
| 62 | 62 | |
| 63 | 63 | Afterwards configure your [BGP session](/howto/Bird) as usual |
| 64 | 64 | |
| 65 | +## Debugging |
|
| 66 | + |
|
| 67 | +The wireguard kernel module on linux has support for enabling dynamic debugging. This can be useful to help track down some problems, e.g. if public keys don't match. |
|
| 68 | + |
|
| 69 | +Debug messages are logged via dmesg and can be enabled using: |
|
| 70 | + |
|
| 71 | +```sh |
|
| 72 | +$ echo 'module wireguard +p' > /sys/kernel/debug/dynamic_debug/control |
|
| 73 | +``` |
|
| 74 | + |
|
| 75 | +To disable debug: |
|
| 76 | + |
|
| 77 | +```sh |
|
| 78 | +$ echo 'module wireguard -p' > /sys/kernel/debug/dynamic_debug/control |
|
| 79 | +``` |
|
| 80 | + |
|
| 65 | 81 | ## wg-quick |
| 66 | 82 | |
| 67 | 83 | [wg-quick](https://git.zx2c4.com/wireguard-tools/about/src/man/wg-quick.8) is a script that is shipped with Wireguard to help users bring up tunnels in some common use cases. |