Skip to content

Instantly share code, notes, and snippets.

@jpschewe
Created August 22, 2025 14:02
Show Gist options
  • Save jpschewe/e05f18c7c3ef6b64183bc202c9319b40 to your computer and use it in GitHub Desktop.
Save jpschewe/e05f18c7c3ef6b64183bc202c9319b40 to your computer and use it in GitHub Desktop.
Debug info for wireguard
jpschewe@jon-2019:~
>echo "before wireguard"
before wireguard
~
jpschewe@jon-2019:~
>ip route show
default via 192.168.82.219 dev wlp0s20f3 proto dhcp src 192.168.82.168 metric 600
192.168.82.0/24 dev wlp0s20f3 proto kernel scope link src 192.168.82.168 metric 600
~
jpschewe@jon-2019:~
>ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: enp8s0f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 80:fa:5b:71:39:e0 brd ff:ff:ff:ff:ff:ff
3: wlp0s20f3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 0c:dd:24:05:67:2f brd ff:ff:ff:ff:ff:ff
inet 192.168.82.168/24 brd 192.168.82.255 scope global dynamic noprefixroute wlp0s20f3
valid_lft 3573sec preferred_lft 3573sec
inet6 2600:1014:b03c:c507:c02a:b050:a4e1:8d50/64 scope global temporary dynamic
valid_lft 7175sec preferred_lft 7175sec
inet6 2600:1014:b03c:c507:ba99:eb8f:aa70:78a6/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 7175sec preferred_lft 7175sec
inet6 fe80::b816:586:83fe:2eb1/64 scope link noprefixroute
valid_lft forever preferred_lft forever
4: vboxnet0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ff
5: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000
link/none
inet 192.168.150.3/24 brd 192.168.150.255 scope global noprefixroute wg0
valid_lft forever preferred_lft forever
AFTER WIREGUARD IS UP
~
jpschewe@jon-2019:~
>ip route show
default via 192.168.150.1 dev wg0 proto static metric 50
default via 192.168.82.219 dev wlp0s20f3 proto dhcp src 192.168.82.168 metric 600
192.168.82.0/24 dev wlp0s20f3 proto kernel scope link src 192.168.82.168 metric 600
192.168.150.0/24 dev wg0 proto kernel scope link src 192.168.150.3 metric 50
~
jpschewe@jon-2019:~
>ip rule list
0: from all lookup local
30884: from all lookup main suppress_prefixlength 0
30885: not from all fwmark 0xca80 lookup 51840
32766: from all lookup main
32767: from all lookup default
~
jpschewe@jon-2019:~
>ip route list table all
default dev wg0 table 51840 proto static scope link metric 50
default via 192.168.150.1 dev wg0 proto static metric 50
default via 192.168.82.219 dev wlp0s20f3 proto dhcp src 192.168.82.168 metric 600
192.168.82.0/24 dev wlp0s20f3 proto kernel scope link src 192.168.82.168 metric 600
192.168.150.0/24 dev wg0 proto kernel scope link src 192.168.150.3 metric 50
local 127.0.0.0/8 dev lo table local proto kernel scope host src 127.0.0.1
local 127.0.0.1 dev lo table local proto kernel scope host src 127.0.0.1
broadcast 127.255.255.255 dev lo table local proto kernel scope link src 127.0.0.1
local 192.168.82.168 dev wlp0s20f3 table local proto kernel scope host src 192.168.82.168
broadcast 192.168.82.255 dev wlp0s20f3 table local proto kernel scope link src 192.168.82.168
local 192.168.150.3 dev wg0 table local proto kernel scope host src 192.168.150.3
broadcast 192.168.150.255 dev wg0 table local proto kernel scope link src 192.168.150.3
2600:1014:b03c:c507::/64 dev wlp0s20f3 proto ra metric 600 pref medium
fe80::/64 dev wlp0s20f3 proto kernel metric 1024 pref medium
default via fe80::c095:bdff:fec3:d2b3 dev wlp0s20f3 proto ra metric 600 pref high
local ::1 dev lo table local proto kernel metric 0 pref medium
local 2600:1014:b03c:c507:ba99:eb8f:aa70:78a6 dev wlp0s20f3 table local proto kernel metric 0 pref medium
local 2600:1014:b03c:c507:c02a:b050:a4e1:8d50 dev wlp0s20f3 table local proto kernel metric 0 pref medium
local fe80::b816:586:83fe:2eb1 dev wlp0s20f3 table local proto kernel metric 0 pref medium
multicast ff00::/8 dev enp8s0f1 table local proto kernel metric 256 linkdown pref medium
multicast ff00::/8 dev wlp0s20f3 table local proto kernel metric 256 pref medium
@jpschewe
Copy link
Author

network manager configuration

connection.stable-id:                   --
connection.type:                        wireguard
connection.interface-name:              wg0
connection.autoconnect:                 no
connection.autoconnect-priority:        0
connection.autoconnect-retries:         -1 (default)
connection.multi-connect:               0 (default)
connection.auth-retries:                -1
connection.timestamp:                   1755470095
connection.permissions:                 --
connection.zone:                        --
connection.controller:                  --
connection.master:                      --
connection.slave-type:                  --
connection.port-type:                   --
connection.autoconnect-slaves:          -1 (default)
connection.autoconnect-ports:           -1 (default)
connection.secondaries:                 --
connection.gateway-ping-timeout:        0
connection.metered:                     unknown
connection.lldp:                        default
connection.mdns:                        -1 (default)
connection.llmnr:                       -1 (default)
connection.dns-over-tls:                -1 (default)
connection.mptcp-flags:                 0x0 (default)
connection.wait-device-timeout:         -1
connection.wait-activation-delay:       -1
ipv4.method:                            manual
ipv4.dns:                               --
ipv4.dns-search:                        --
ipv4.dns-options:                       --
ipv4.dns-priority:                      0
ipv4.addresses:                         192.168.150.3/24
ipv4.gateway:                           192.168.150.1
ipv4.routes:                            --
ipv4.route-metric:                      -1
ipv4.route-table:                       0 (unspec)
ipv4.routing-rules:                     --
ipv4.replace-local-rule:                -1 (default)
ipv4.ignore-auto-routes:                no
ipv4.ignore-auto-dns:                   no
ipv4.dhcp-client-id:                    --
ipv4.dhcp-iaid:                         --
ipv4.dhcp-dscp:                         --
ipv4.dhcp-timeout:                      0 (default)
ipv4.dhcp-send-hostname:                yes
ipv4.dhcp-hostname:                     --
ipv4.dhcp-fqdn:                         --
ipv4.dhcp-hostname-flags:               0x0 (none)
ipv4.never-default:                     no
ipv4.may-fail:                          yes
ipv4.required-timeout:                  -1 (default)
ipv4.dad-timeout:                       -1 (default)
ipv4.dhcp-vendor-class-identifier:      --
ipv4.link-local:                        0 (default)
ipv4.dhcp-reject-servers:               --
ipv4.auto-route-ext-gw:                 -1 (default)
ipv6.method:                            disabled
ipv6.dns:                               --
ipv6.dns-search:                        --
ipv6.dns-options:                       --
ipv6.dns-priority:                      0
ipv6.addresses:                         --
ipv6.gateway:                           --
ipv6.routes:                            --
ipv6.route-metric:                      -1
ipv6.route-table:                       0 (unspec)
ipv6.routing-rules:                     --
ipv6.replace-local-rule:                -1 (default)
ipv6.ignore-auto-routes:                no
ipv6.ignore-auto-dns:                   no
ipv6.never-default:                     no
ipv6.may-fail:                          yes
ipv6.required-timeout:                  -1 (default)
ipv6.ip6-privacy:                       -1 (unknown)
ipv6.addr-gen-mode:                     stable-privacy
ipv6.ra-timeout:                        0 (default)
ipv6.mtu:                               auto
ipv6.dhcp-pd-hint:                      --
ipv6.dhcp-duid:                         --
ipv6.dhcp-iaid:                         --
ipv6.dhcp-timeout:                      0 (default)
ipv6.dhcp-send-hostname:                yes
ipv6.dhcp-hostname:                     --
ipv6.dhcp-hostname-flags:               0x0 (none)
ipv6.auto-route-ext-gw:                 -1 (default)
ipv6.token:                             --
wireguard.private-key:                  <hidden>
wireguard.private-key-flags:            0 (none)
wireguard.listen-port:                  21841
wireguard.fwmark:                       0x0
wireguard.peer-routes:                  yes
wireguard.mtu:                          0
wireguard.ip4-auto-default-route:       -1 (default)
wireguard.ip6-auto-default-route:       -1 (default)
proxy.method:                           none
proxy.browser-only:                     no
proxy.pac-url:                          --
proxy.pac-script:                       --

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