gistfile1.txt
· 2.0 KiB · Text
Sin formato
May 12 20:26:25 wireguard python3[321848]: 2026-05-12 20:26:25,985 [ERROR] Failed to load watchlist: Expecting value: line 1 column 1 (char 0)
May 13 01:07:34 wireguard python3[321848]: 2026-05-13 01:07:34,366 [INFO] Shutting down wgctl-monitor
May 13 01:07:34 wireguard systemd[1]: Stopping wgctl-monitor.service - wgctl WireGuard Monitor Daemon...
May 13 01:07:34 wireguard systemd[1]: wgctl-monitor.service: Deactivated successfully.
May 13 01:07:34 wireguard systemd[1]: Stopped wgctl-monitor.service - wgctl WireGuard Monitor Daemon.
May 13 01:07:34 wireguard systemd[1]: wgctl-monitor.service: Consumed 2h 26min 17.579s CPU time.
May 13 01:07:34 wireguard systemd[1]: Started wgctl-monitor.service - wgctl WireGuard Monitor Daemon.
May 13 01:07:34 wireguard python3[943857]: 2026-05-13 01:07:34,655 [INFO] wgctl-monitor starting on interface eth0 port 51820
May 13 01:07:34 wireguard python3[943857]: 2026-05-13 01:07:34,655 [INFO] Watchlist loaded, starting packet capture...
by kernel
root@wireguard:~# head -30 /etc/wireguard/.wgctl/daemon/wgctl-monitor.py | grep -i "interface\|port\|eth0\|51820"
import json
import logging
import os
import signal
import sys
import time
from datetime import datetime, timezone
from pathlib import Path
from scapy.all import IP, UDP, sniff
WG_INTERFACE = os.environ.get("WG_INTERFACE", "eth0")
WG_PORT = int(os.environ.get("WG_PORT", "51820"))
tcpdump -i eth0 -n port 51820 -c 5
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
01:10:28.109998 IP 10.0.0.102.51820 > 148.69.193.47.15832: UDP, length 148
01:10:28.446972 IP 148.69.193.47.15832 > 10.0.0.102.51820: UDP, length 32
01:10:28.454855 IP 148.69.193.47.15832 > 10.0.0.102.51820: UDP, length 92
01:10:28.455014 IP 10.0.0.102.51820 > 148.69.193.47.15832: UDP, length 32
01:10:31.636211 IP 148.69.51.160.26606 > 10.0.0.102.51820: UDP, length 32
5 packets captured
5 packets received by filter
| 1 | May 12 20:26:25 wireguard python3[321848]: 2026-05-12 20:26:25,985 [ERROR] Failed to load watchlist: Expecting value: line 1 column 1 (char 0) |
| 2 | |
| 3 | May 13 01:07:34 wireguard python3[321848]: 2026-05-13 01:07:34,366 [INFO] Shutting down wgctl-monitor |
| 4 | |
| 5 | May 13 01:07:34 wireguard systemd[1]: Stopping wgctl-monitor.service - wgctl WireGuard Monitor Daemon... |
| 6 | |
| 7 | May 13 01:07:34 wireguard systemd[1]: wgctl-monitor.service: Deactivated successfully. |
| 8 | |
| 9 | May 13 01:07:34 wireguard systemd[1]: Stopped wgctl-monitor.service - wgctl WireGuard Monitor Daemon. |
| 10 | |
| 11 | May 13 01:07:34 wireguard systemd[1]: wgctl-monitor.service: Consumed 2h 26min 17.579s CPU time. |
| 12 | |
| 13 | May 13 01:07:34 wireguard systemd[1]: Started wgctl-monitor.service - wgctl WireGuard Monitor Daemon. |
| 14 | |
| 15 | May 13 01:07:34 wireguard python3[943857]: 2026-05-13 01:07:34,655 [INFO] wgctl-monitor starting on interface eth0 port 51820 |
| 16 | |
| 17 | May 13 01:07:34 wireguard python3[943857]: 2026-05-13 01:07:34,655 [INFO] Watchlist loaded, starting packet capture... |
| 18 | |
| 19 | |
| 20 | |
| 21 | by kernel |
| 22 | |
| 23 | root@wireguard:~# head -30 /etc/wireguard/.wgctl/daemon/wgctl-monitor.py | grep -i "interface\|port\|eth0\|51820" |
| 24 | |
| 25 | import json |
| 26 | |
| 27 | import logging |
| 28 | |
| 29 | import os |
| 30 | |
| 31 | import signal |
| 32 | |
| 33 | import sys |
| 34 | |
| 35 | import time |
| 36 | |
| 37 | from datetime import datetime, timezone |
| 38 | |
| 39 | from pathlib import Path |
| 40 | |
| 41 | from scapy.all import IP, UDP, sniff |
| 42 | |
| 43 | WG_INTERFACE = os.environ.get("WG_INTERFACE", "eth0") |
| 44 | |
| 45 | WG_PORT = int(os.environ.get("WG_PORT", "51820")) |
| 46 | |
| 47 | |
| 48 | |
| 49 | tcpdump -i eth0 -n port 51820 -c 5 |
| 50 | |
| 51 | tcpdump: verbose output suppressed, use -v[v]... for full protocol decode |
| 52 | |
| 53 | listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes |
| 54 | |
| 55 | 01:10:28.109998 IP 10.0.0.102.51820 > 148.69.193.47.15832: UDP, length 148 |
| 56 | |
| 57 | 01:10:28.446972 IP 148.69.193.47.15832 > 10.0.0.102.51820: UDP, length 32 |
| 58 | |
| 59 | 01:10:28.454855 IP 148.69.193.47.15832 > 10.0.0.102.51820: UDP, length 92 |
| 60 | |
| 61 | 01:10:28.455014 IP 10.0.0.102.51820 > 148.69.193.47.15832: UDP, length 32 |
| 62 | |
| 63 | 01:10:31.636211 IP 148.69.51.160.26606 > 10.0.0.102.51820: UDP, length 32 |
| 64 | |
| 65 | 5 packets captured |
| 66 | |
| 67 | 5 packets received by filter |