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

nuno ревизий этого фрагмента 1 month ago. К ревизии

1 file changed, 67 insertions

gistfile1.txt(файл создан)

@@ -0,0 +1,67 @@
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
Новее Позже