Последняя активность 1 month ago

gistfile1.txt Исходник
1May 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
3May 13 01:07:34 wireguard python3[321848]: 2026-05-13 01:07:34,366 [INFO] Shutting down wgctl-monitor
4
5May 13 01:07:34 wireguard systemd[1]: Stopping wgctl-monitor.service - wgctl WireGuard Monitor Daemon...
6
7May 13 01:07:34 wireguard systemd[1]: wgctl-monitor.service: Deactivated successfully.
8
9May 13 01:07:34 wireguard systemd[1]: Stopped wgctl-monitor.service - wgctl WireGuard Monitor Daemon.
10
11May 13 01:07:34 wireguard systemd[1]: wgctl-monitor.service: Consumed 2h 26min 17.579s CPU time.
12
13May 13 01:07:34 wireguard systemd[1]: Started wgctl-monitor.service - wgctl WireGuard Monitor Daemon.
14
15May 13 01:07:34 wireguard python3[943857]: 2026-05-13 01:07:34,655 [INFO] wgctl-monitor starting on interface eth0 port 51820
16
17May 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
23root@wireguard:~# head -30 /etc/wireguard/.wgctl/daemon/wgctl-monitor.py | grep -i "interface\|port\|eth0\|51820"
24
25import json
26
27import logging
28
29import os
30
31import signal
32
33import sys
34
35import time
36
37from datetime import datetime, timezone
38
39from pathlib import Path
40
41from scapy.all import IP, UDP, sniff
42
43WG_INTERFACE = os.environ.get("WG_INTERFACE", "eth0")
44
45WG_PORT = int(os.environ.get("WG_PORT", "51820"))
46
47
48
49tcpdump -i eth0 -n port 51820 -c 5
50
51tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
52
53listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
54
5501:10:28.109998 IP 10.0.0.102.51820 > 148.69.193.47.15832: UDP, length 148
56
5701:10:28.446972 IP 148.69.193.47.15832 > 10.0.0.102.51820: UDP, length 32
58
5901:10:28.454855 IP 148.69.193.47.15832 > 10.0.0.102.51820: UDP, length 92
60
6101:10:28.455014 IP 10.0.0.102.51820 > 148.69.193.47.15832: UDP, length 32
62
6301:10:31.636211 IP 148.69.51.160.26606 > 10.0.0.102.51820: UDP, length 32
64
655 packets captured
66
675 packets received by filter