WireGuard outbound: config reload (PUT /configs) leaves the old device running — two sockets with one key, the peer's endpoint flaps
Verify steps
- [x] I have read the documentation and understand the meaning of all the configuration items I have written.
- [x] I have carefully reviewed the documentation and have not resolved the issue.
- [x] I have searched the Issue Tracker for the issue I want to raise and did not find it.
- [x] I am a non-Chinese user.
- [x] I have tested with the latest Alpha branch version, and the issue still persists.
- [x] I have provided the server and client configuration files and processes that can reproduce the issue locally.
- [x] I provided the simplest configuration that can be used to reproduce the errors in my report.
- [x] I have provided complete logs.
- [x] I have directly reproduced the error using the Mihomo command-line program.
Operating System
MacOS
System Version
macOS 26.7 (arm64)
Mihomo Version
Mihomo Meta alpha-63bd52e darwin arm64 with go1.26.8 Sun Sep 27 01:30:49 UTC 2026
Use tags: with_gvisor
Configuration File
Client (/tmp/wgrepro/wg/config.yaml; test-only keys generated for this repro):
mixed-port: 17892
external-controller: 127.0.0.1:19092
log-level: debug
ipv6: false
proxies:
- name: wg
type: wireguard
server: 192.168.105.5 # local Linux VM, plain kernel WireGuard
port: 51820
ip: 10.9.0.2
private-key: <client private key>
public-key: <server public key>
udp: true
persistent-keepalive: 5
rules:
- MATCH,wg
Server (Ubuntu 24.04 VM, kernel 6.8, wg-quick up wgr0; python3 -m http.server 8080 --bind 10.9.0.1 as the target):
[Interface]
Address = 10.9.0.1/24
ListenPort = 51820
PrivateKey = <server private key>
[Peer]
PublicKey = <client public key>
AllowedIPs = 10.9.0.2/32
Description
After a config reload through the API, the WireGuard outbound created by the previous config is not closed. The new config brings up a second WireGuard device with the same private key and a new UDP source port, so the client holds two sockets to the same server. A WireGuard server keeps one endpoint per peer key; as both devices send (keepalives here), the peer's endpoint on the server switches between the two source ports. The old socket stays until the core restarts (POST /restart).
The log shows no teardown of the old device at the reload (23:49:17): only a new device coming up.
On the local test path (~1 ms) requests still succeeded, since WireGuard recovers fast there. On a real ~75 ms path the same flapping made roughly every other health check through the proxy time out, and a fallback group moved off the WireGuard proxy.
GUI clients apply a subscription update exactly this way. Clash Verge Rev refreshes subscriptions daily by default, so every refresh leaves a WireGuard proxy half-working until the core is restarted by hand.
Also seen on Linux (mihomo in Docker, an earlier 1.19.x build) with the same symptom after PUT /configs, and with amnezia-wg-option set.
Reproduction Steps
mihomo -d /tmp/wgrepro/wg -f /tmp/wgrepro/wg/config.yamlcurl -x http://127.0.0.1:17892 http://10.9.0.1:8080/— works.netstat -anv -p udp | grep 192.168.105.5.51820— one socket (local port 54844). On the server,wg show wgr0 endpoints—:54844, steady.curl -X PUT 'http://127.0.0.1:19092/configs?force=true' -d '{"path":"/tmp/wgrepro/wg/config.yaml"}'— the same file, unchanged;204.- Step 2 again, then step 3 — two sockets:
58487 54844. - On the server,
wg show wgr0 endpointsevery 2 s:58487 54844 54844 54844 54844 58487 54844 58487 54844 54844 58487 54844 58487 54844 54844. - Both sockets are still there after another 30 requests (~50 s).
curl -X POST http://127.0.0.1:19092/restart— one socket (51686), server endpoint steady again.
Expected: a reload closes the previous WireGuard device, so only one socket per server remains.
Logs
Complete log, log-level debug (steps 1–8; restart at 23:50:06)
time="2026-09-27T23:48:47.439766000+05:00" level=info msg="Start initial configuration in progress"
time="2026-09-27T23:48:47.439968000+05:00" level=info msg="Geodata Loader mode: memconservative"
time="2026-09-27T23:48:47.439982000+05:00" level=info msg="Geosite Matcher implementation: succinct"
time="2026-09-27T23:48:47.440032000+05:00" level=info msg="Initial configuration complete, total time: 0ms"
time="2026-09-27T23:48:47.440276000+05:00" level=info msg="RESTful API listening at: 127.0.0.1:19092"
time="2026-09-27T23:48:47.441695000+05:00" level=info msg="Sniffer is closed"
time="2026-09-27T23:48:47.441777000+05:00" level=info msg="Mixed(http+socks) proxy listening at: 127.0.0.1:17892"
time="2026-09-27T23:48:47.441807000+05:00" level=info msg="Start initial compatible provider default"
time="2026-09-27T23:48:50.453567000+05:00" level=debug msg="Auth success from 127.0.0.1:52877 -> "
time="2026-09-27T23:48:50.453736000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:48:50.453764000+05:00" level=debug msg="[WG](wg) UAPI: Updating private key"
time="2026-09-27T23:48:50.453878000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - UAPI: Created"
time="2026-09-27T23:48:50.453888000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - UAPI: Updating endpoint"
time="2026-09-27T23:48:50.453897000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - UAPI: Adding allowedip"
time="2026-09-27T23:48:50.453904000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - UAPI: Updating persistent keepalive interval"
time="2026-09-27T23:48:50.453929000+05:00" level=debug msg="[WG](wg) Interface up requested"
time="2026-09-27T23:48:50.453945000+05:00" level=debug msg="[WG](wg) UDP bind has been updated"
time="2026-09-27T23:48:50.453952000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Starting"
time="2026-09-27T23:48:50.453963000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Routine: sequential receiver - started"
time="2026-09-27T23:48:50.453971000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending handshake initiation"
time="2026-09-27T23:48:50.453986000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:48:50.453974000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Routine: sequential sender - started"
time="2026-09-27T23:48:50.453976000+05:00" level=debug msg="[WG](wg) Routine: receive incoming receive - started"
time="2026-09-27T23:48:50.454088000+05:00" level=debug msg="[WG](wg) Interface state was Down, requested Up, now Up"
time="2026-09-27T23:48:50.511122000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Received handshake response"
time="2026-09-27T23:48:50.511420000+05:00" level=info msg="[TCP] 127.0.0.1:52877 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:48:51.041504000+05:00" level=debug msg="Auth success from 127.0.0.1:52878 -> "
time="2026-09-27T23:48:51.041709000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:48:51.042498000+05:00" level=info msg="[TCP] 127.0.0.1:52878 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:48:51.573589000+05:00" level=debug msg="Auth success from 127.0.0.1:52880 -> "
time="2026-09-27T23:48:51.573808000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:48:51.574642000+05:00" level=info msg="[TCP] 127.0.0.1:52880 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:48:52.102165000+05:00" level=debug msg="Auth success from 127.0.0.1:52881 -> "
time="2026-09-27T23:48:52.102288000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:48:52.102815000+05:00" level=info msg="[TCP] 127.0.0.1:52881 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:48:52.624550000+05:00" level=debug msg="Auth success from 127.0.0.1:52884 -> "
time="2026-09-27T23:48:52.624695000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:48:52.625115000+05:00" level=info msg="[TCP] 127.0.0.1:52884 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:48:53.152087000+05:00" level=debug msg="Auth success from 127.0.0.1:52885 -> "
time="2026-09-27T23:48:53.152242000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:48:53.152785000+05:00" level=info msg="[TCP] 127.0.0.1:52885 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:48:53.685693000+05:00" level=debug msg="Auth success from 127.0.0.1:52888 -> "
time="2026-09-27T23:48:53.685886000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:48:53.686593000+05:00" level=info msg="[TCP] 127.0.0.1:52888 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:48:54.217413000+05:00" level=debug msg="Auth success from 127.0.0.1:52890 -> "
time="2026-09-27T23:48:54.217545000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:48:54.218055000+05:00" level=info msg="[TCP] 127.0.0.1:52890 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:48:54.747732000+05:00" level=debug msg="Auth success from 127.0.0.1:52891 -> "
time="2026-09-27T23:48:54.747942000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:48:54.748726000+05:00" level=info msg="[TCP] 127.0.0.1:52891 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:48:55.279872000+05:00" level=debug msg="Auth success from 127.0.0.1:52893 -> "
time="2026-09-27T23:48:55.280076000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:48:55.280779000+05:00" level=info msg="[TCP] 127.0.0.1:52893 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:48:55.810988000+05:00" level=debug msg="Auth success from 127.0.0.1:52895 -> "
time="2026-09-27T23:48:55.811165000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:48:55.811886000+05:00" level=info msg="[TCP] 127.0.0.1:52895 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:48:56.341991000+05:00" level=debug msg="Auth success from 127.0.0.1:52897 -> "
time="2026-09-27T23:48:56.342096000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:48:56.342538000+05:00" level=info msg="[TCP] 127.0.0.1:52897 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:48:56.871166000+05:00" level=debug msg="Auth success from 127.0.0.1:52898 -> "
time="2026-09-27T23:48:56.871275000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:48:56.871765000+05:00" level=info msg="[TCP] 127.0.0.1:52898 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:48:57.399096000+05:00" level=debug msg="Auth success from 127.0.0.1:52900 -> "
time="2026-09-27T23:48:57.399293000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:48:57.400102000+05:00" level=info msg="[TCP] 127.0.0.1:52900 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:48:57.930034000+05:00" level=debug msg="Auth success from 127.0.0.1:52901 -> "
time="2026-09-27T23:48:57.930153000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:48:57.930659000+05:00" level=info msg="[TCP] 127.0.0.1:52901 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:48:58.457435000+05:00" level=debug msg="Auth success from 127.0.0.1:52903 -> "
time="2026-09-27T23:48:58.457560000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:48:58.458024000+05:00" level=info msg="[TCP] 127.0.0.1:52903 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:48:58.988120000+05:00" level=debug msg="Auth success from 127.0.0.1:52906 -> "
time="2026-09-27T23:48:58.988339000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:48:58.989126000+05:00" level=info msg="[TCP] 127.0.0.1:52906 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:48:59.518161000+05:00" level=debug msg="Auth success from 127.0.0.1:52908 -> "
time="2026-09-27T23:48:59.518312000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:48:59.518946000+05:00" level=info msg="[TCP] 127.0.0.1:52908 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:00.046552000+05:00" level=debug msg="Auth success from 127.0.0.1:52909 -> "
time="2026-09-27T23:49:00.046657000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:00.047102000+05:00" level=info msg="[TCP] 127.0.0.1:52909 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:00.564665000+05:00" level=debug msg="Auth success from 127.0.0.1:52911 -> "
time="2026-09-27T23:49:00.564792000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:00.565212000+05:00" level=info msg="[TCP] 127.0.0.1:52911 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:05.567499000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:49:10.568694000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:49:15.569862000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:49:17.599277000+05:00" level=info msg="Start initial configuration in progress"
time="2026-09-27T23:49:17.599403000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 3 - started"
time="2026-09-27T23:49:17.599435000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 16 - started"
time="2026-09-27T23:49:17.599445000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 13 - started"
time="2026-09-27T23:49:17.599461000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 6 - started"
time="2026-09-27T23:49:17.599438000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 16 - started"
time="2026-09-27T23:49:17.599441000+05:00" level=debug msg="[WG](wg) Routine: decryption worker 13 - started"
time="2026-09-27T23:49:17.599443000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 17 - started"
time="2026-09-27T23:49:17.599444000+05:00" level=debug msg="[WG](wg) Routine: decryption worker 16 - started"
time="2026-09-27T23:49:17.599446000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 1 - started"
time="2026-09-27T23:49:17.599436000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 13 - started"
time="2026-09-27T23:49:17.599529000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 18 - started"
time="2026-09-27T23:49:17.599448000+05:00" level=debug msg="[WG](wg) Routine: decryption worker 3 - started"
time="2026-09-27T23:49:17.599449000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 8 - started"
time="2026-09-27T23:49:17.599450000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 3 - started"
time="2026-09-27T23:49:17.599450000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 5 - started"
time="2026-09-27T23:49:17.599450000+05:00" level=debug msg="[WG](wg) Routine: decryption worker 12 - started"
time="2026-09-27T23:49:17.599451000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 4 - started"
time="2026-09-27T23:49:17.599452000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 2 - started"
time="2026-09-27T23:49:17.599452000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 8 - started"
time="2026-09-27T23:49:17.599452000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 7 - started"
time="2026-09-27T23:49:17.599453000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 6 - started"
time="2026-09-27T23:49:17.599453000+05:00" level=debug msg="[WG](wg) Routine: decryption worker 14 - started"
time="2026-09-27T23:49:17.599454000+05:00" level=debug msg="[WG](wg) Routine: decryption worker 4 - started"
time="2026-09-27T23:49:17.599454000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 5 - started"
time="2026-09-27T23:49:17.599455000+05:00" level=info msg="Geodata Loader mode: memconservative"
time="2026-09-27T23:49:17.599456000+05:00" level=debug msg="[WG](wg) Routine: decryption worker 6 - started"
time="2026-09-27T23:49:17.599664000+05:00" level=info msg="Geosite Matcher implementation: succinct"
time="2026-09-27T23:49:17.599459000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 18 - started"
time="2026-09-27T23:49:17.599460000+05:00" level=debug msg="[WG](wg) Routine: decryption worker 1 - started"
time="2026-09-27T23:49:17.599710000+05:00" level=info msg="Initial configuration complete, total time: 0ms"
time="2026-09-27T23:49:17.599463000+05:00" level=debug msg="[WG](wg) Routine: decryption worker 18 - started"
time="2026-09-27T23:49:17.599464000+05:00" level=debug msg="[WG](wg) Routine: decryption worker 8 - started"
time="2026-09-27T23:49:17.599465000+05:00" level=debug msg="[WG](wg) Routine: decryption worker 10 - started"
time="2026-09-27T23:49:17.599465000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 1 - started"
time="2026-09-27T23:49:17.599466000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 7 - started"
time="2026-09-27T23:49:17.599467000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 10 - started"
time="2026-09-27T23:49:17.599468000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 15 - started"
time="2026-09-27T23:49:17.599468000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 11 - started"
time="2026-09-27T23:49:17.599469000+05:00" level=debug msg="[WG](wg) Routine: decryption worker 7 - started"
time="2026-09-27T23:49:17.599470000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 2 - started"
time="2026-09-27T23:49:17.599470000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 4 - started"
time="2026-09-27T23:49:17.599471000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 14 - started"
time="2026-09-27T23:49:17.599455000+05:00" level=debug msg="[WG](wg) Routine: decryption worker 11 - started"
time="2026-09-27T23:49:17.599471000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 9 - started"
time="2026-09-27T23:49:17.599472000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 12 - started"
time="2026-09-27T23:49:17.599473000+05:00" level=debug msg="[WG](wg) Routine: decryption worker 17 - started"
time="2026-09-27T23:49:17.599475000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 12 - started"
time="2026-09-27T23:49:17.599476000+05:00" level=debug msg="[WG](wg) Routine: decryption worker 15 - started"
time="2026-09-27T23:49:17.599477000+05:00" level=debug msg="[WG](wg) Routine: decryption worker 9 - started"
time="2026-09-27T23:49:17.599477000+05:00" level=debug msg="[WG](wg) Routine: TUN reader - started"
time="2026-09-27T23:49:17.599478000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 15 - started"
time="2026-09-27T23:49:17.599478000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 11 - started"
time="2026-09-27T23:49:17.599479000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 14 - started"
time="2026-09-27T23:49:17.599479000+05:00" level=debug msg="[WG](wg) Routine: decryption worker 2 - started"
time="2026-09-27T23:49:17.599480000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 17 - started"
time="2026-09-27T23:49:17.599447000+05:00" level=debug msg="[WG](wg) Routine: decryption worker 5 - started"
time="2026-09-27T23:49:17.599458000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 9 - started"
time="2026-09-27T23:49:17.599459000+05:00" level=debug msg="[WG](wg) Routine: event worker - started"
time="2026-09-27T23:49:17.599461000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 10 - started"
time="2026-09-27T23:49:17.601360000+05:00" level=info msg="Sniffer is closed"
time="2026-09-27T23:49:17.601386000+05:00" level=info msg="Start initial compatible provider default"
time="2026-09-27T23:49:17.616096000+05:00" level=debug msg="Auth success from 127.0.0.1:52942 -> "
time="2026-09-27T23:49:17.616185000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:17.616206000+05:00" level=debug msg="[WG](wg) UAPI: Updating private key"
time="2026-09-27T23:49:17.616302000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - UAPI: Created"
time="2026-09-27T23:49:17.616308000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - UAPI: Updating endpoint"
time="2026-09-27T23:49:17.616315000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - UAPI: Adding allowedip"
time="2026-09-27T23:49:17.616322000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - UAPI: Updating persistent keepalive interval"
time="2026-09-27T23:49:17.616350000+05:00" level=debug msg="[WG](wg) Interface up requested"
time="2026-09-27T23:49:17.616375000+05:00" level=debug msg="[WG](wg) UDP bind has been updated"
time="2026-09-27T23:49:17.616380000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Starting"
time="2026-09-27T23:49:17.616385000+05:00" level=debug msg="[WG](wg) Routine: receive incoming receive - started"
time="2026-09-27T23:49:17.616399000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Routine: sequential sender - started"
time="2026-09-27T23:49:17.616395000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:49:17.616431000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending handshake initiation"
time="2026-09-27T23:49:17.616397000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Routine: sequential receiver - started"
time="2026-09-27T23:49:17.616593000+05:00" level=debug msg="[WG](wg) Interface state was Down, requested Up, now Up"
time="2026-09-27T23:49:17.621038000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Received handshake response"
time="2026-09-27T23:49:18.617859000+05:00" level=info msg="[TCP] 127.0.0.1:52942 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:19.146621000+05:00" level=debug msg="Auth success from 127.0.0.1:52945 -> "
time="2026-09-27T23:49:19.146811000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:19.147591000+05:00" level=info msg="[TCP] 127.0.0.1:52945 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:20.571014000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:49:24.149678000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:49:25.572127000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:49:29.150896000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:49:30.573273000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:49:34.151134000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:49:35.574459000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:49:39.152305000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:49:40.575032000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:49:44.153436000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:49:45.576258000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:49:49.154733000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:49:50.577055000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:49:50.624578000+05:00" level=debug msg="Auth success from 127.0.0.1:52995 -> "
time="2026-09-27T23:49:50.624685000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:50.625080000+05:00" level=info msg="[TCP] 127.0.0.1:52995 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:51.152245000+05:00" level=debug msg="Auth success from 127.0.0.1:52997 -> "
time="2026-09-27T23:49:51.152442000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:51.153212000+05:00" level=info msg="[TCP] 127.0.0.1:52997 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:51.678032000+05:00" level=debug msg="Auth success from 127.0.0.1:52998 -> "
time="2026-09-27T23:49:51.678144000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:51.678579000+05:00" level=info msg="[TCP] 127.0.0.1:52998 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:52.205601000+05:00" level=debug msg="Auth success from 127.0.0.1:53000 -> "
time="2026-09-27T23:49:52.205722000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:52.206223000+05:00" level=info msg="[TCP] 127.0.0.1:53000 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:52.731758000+05:00" level=debug msg="Auth success from 127.0.0.1:53002 -> "
time="2026-09-27T23:49:52.731968000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:52.732674000+05:00" level=info msg="[TCP] 127.0.0.1:53002 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:53.263379000+05:00" level=debug msg="Auth success from 127.0.0.1:53004 -> "
time="2026-09-27T23:49:53.263570000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:53.264345000+05:00" level=info msg="[TCP] 127.0.0.1:53004 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:53.798252000+05:00" level=debug msg="Auth success from 127.0.0.1:53005 -> "
time="2026-09-27T23:49:53.798366000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:53.798883000+05:00" level=info msg="[TCP] 127.0.0.1:53005 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:54.331787000+05:00" level=debug msg="Auth success from 127.0.0.1:53007 -> "
time="2026-09-27T23:49:54.331984000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:54.332806000+05:00" level=info msg="[TCP] 127.0.0.1:53007 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:54.869465000+05:00" level=debug msg="Auth success from 127.0.0.1:53008 -> "
time="2026-09-27T23:49:54.869661000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:54.870482000+05:00" level=info msg="[TCP] 127.0.0.1:53008 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:55.406816000+05:00" level=debug msg="Auth success from 127.0.0.1:53010 -> "
time="2026-09-27T23:49:55.407027000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:55.407687000+05:00" level=info msg="[TCP] 127.0.0.1:53010 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:55.578256000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:49:55.936644000+05:00" level=debug msg="Auth success from 127.0.0.1:53013 -> "
time="2026-09-27T23:49:55.936761000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:55.937190000+05:00" level=info msg="[TCP] 127.0.0.1:53013 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:56.465314000+05:00" level=debug msg="Auth success from 127.0.0.1:53014 -> "
time="2026-09-27T23:49:56.465436000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:56.466007000+05:00" level=info msg="[TCP] 127.0.0.1:53014 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:56.997529000+05:00" level=debug msg="Auth success from 127.0.0.1:53016 -> "
time="2026-09-27T23:49:56.997727000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:56.998521000+05:00" level=info msg="[TCP] 127.0.0.1:53016 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:57.526025000+05:00" level=debug msg="Auth success from 127.0.0.1:53017 -> "
time="2026-09-27T23:49:57.526132000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:57.526593000+05:00" level=info msg="[TCP] 127.0.0.1:53017 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:58.059439000+05:00" level=debug msg="Auth success from 127.0.0.1:53019 -> "
time="2026-09-27T23:49:58.059597000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:58.060191000+05:00" level=info msg="[TCP] 127.0.0.1:53019 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:58.579723000+05:00" level=debug msg="Auth success from 127.0.0.1:53020 -> "
time="2026-09-27T23:49:58.579816000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:58.580201000+05:00" level=info msg="[TCP] 127.0.0.1:53020 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:59.109697000+05:00" level=debug msg="Auth success from 127.0.0.1:53023 -> "
time="2026-09-27T23:49:59.109897000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:59.110715000+05:00" level=info msg="[TCP] 127.0.0.1:53023 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:49:59.637267000+05:00" level=debug msg="Auth success from 127.0.0.1:53024 -> "
time="2026-09-27T23:49:59.637368000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:49:59.637821000+05:00" level=info msg="[TCP] 127.0.0.1:53024 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:00.162037000+05:00" level=debug msg="Auth success from 127.0.0.1:53026 -> "
time="2026-09-27T23:50:00.162169000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:00.162801000+05:00" level=info msg="[TCP] 127.0.0.1:53026 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:00.579461000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:50:00.685719000+05:00" level=debug msg="Auth success from 127.0.0.1:53027 -> "
time="2026-09-27T23:50:00.685844000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:00.686298000+05:00" level=info msg="[TCP] 127.0.0.1:53027 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:01.216444000+05:00" level=debug msg="Auth success from 127.0.0.1:53029 -> "
time="2026-09-27T23:50:01.216659000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:01.217427000+05:00" level=info msg="[TCP] 127.0.0.1:53029 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:01.747146000+05:00" level=debug msg="Auth success from 127.0.0.1:53032 -> "
time="2026-09-27T23:50:01.747277000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:01.747795000+05:00" level=info msg="[TCP] 127.0.0.1:53032 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:02.275714000+05:00" level=debug msg="Auth success from 127.0.0.1:53034 -> "
time="2026-09-27T23:50:02.275876000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:02.276626000+05:00" level=info msg="[TCP] 127.0.0.1:53034 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:02.806515000+05:00" level=debug msg="Auth success from 127.0.0.1:53035 -> "
time="2026-09-27T23:50:02.806663000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:02.807256000+05:00" level=info msg="[TCP] 127.0.0.1:53035 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:03.337330000+05:00" level=debug msg="Auth success from 127.0.0.1:53037 -> "
time="2026-09-27T23:50:03.337535000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:03.338301000+05:00" level=info msg="[TCP] 127.0.0.1:53037 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:03.868688000+05:00" level=debug msg="Auth success from 127.0.0.1:53038 -> "
time="2026-09-27T23:50:03.868782000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:03.869197000+05:00" level=info msg="[TCP] 127.0.0.1:53038 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:04.394558000+05:00" level=debug msg="Auth success from 127.0.0.1:53040 -> "
time="2026-09-27T23:50:04.394758000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:04.395488000+05:00" level=info msg="[TCP] 127.0.0.1:53040 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:04.924942000+05:00" level=debug msg="Auth success from 127.0.0.1:53042 -> "
time="2026-09-27T23:50:04.925146000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:04.925944000+05:00" level=info msg="[TCP] 127.0.0.1:53042 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:05.454523000+05:00" level=debug msg="Auth success from 127.0.0.1:53044 -> "
time="2026-09-27T23:50:05.454648000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:05.455153000+05:00" level=info msg="[TCP] 127.0.0.1:53044 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:05.580659000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:50:05.990461000+05:00" level=debug msg="Auth success from 127.0.0.1:53045 -> "
time="2026-09-27T23:50:05.990658000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:05.991433000+05:00" level=info msg="[TCP] 127.0.0.1:53045 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:06.543165000+05:00" level=warning msg="Mihomo shutting down"
time="2026-09-27T23:50:06.543207000+05:00" level=info msg="restarting: \"/tmp/wgrepro/mihomo-darwin-arm64-alpha-63bd52e\" [\"-d\" \"/tmp/wgrepro/wg\" \"-f\" \"/tmp/wgrepro/wg/config.yaml\"]"
time="2026-09-27T23:50:06.552526000+05:00" level=info msg="Start initial configuration in progress"
time="2026-09-27T23:50:06.552672000+05:00" level=info msg="Geodata Loader mode: memconservative"
time="2026-09-27T23:50:06.552713000+05:00" level=info msg="Geosite Matcher implementation: succinct"
time="2026-09-27T23:50:06.552735000+05:00" level=info msg="Initial configuration complete, total time: 0ms"
time="2026-09-27T23:50:06.552757000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 3 - started"
time="2026-09-27T23:50:06.552789000+05:00" level=debug msg="[WG](wg) Routine: decryption worker 17 - started"
time="2026-09-27T23:50:06.552952000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 1 - started"
time="2026-09-27T23:50:06.552936000+05:00" level=debug msg="[WG](wg) Routine: handshake worker 16 - started"
time="2026-09-27T23:50:06.553104000+05:00" level=debug msg="[WG](wg) Routine: encryption worker 17 - started"
time="2026-09-27T23:50:06.553108000+05:00" level=info msg="RESTful API listening at: 127.0.0.1:19092"
time="2026-09-27T23:50:06.554499000+05:00" level=info msg="Sniffer is closed"
time="2026-09-27T23:50:06.554596000+05:00" level=info msg="Mixed(http+socks) proxy listening at: 127.0.0.1:17892"
time="2026-09-27T23:50:06.554622000+05:00" level=info msg="Start initial compatible provider default"
time="2026-09-27T23:50:10.564021000+05:00" level=debug msg="Auth success from 127.0.0.1:53057 -> "
time="2026-09-27T23:50:10.564164000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:10.564197000+05:00" level=debug msg="[WG](wg) UAPI: Updating private key"
time="2026-09-27T23:50:10.564300000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - UAPI: Created"
time="2026-09-27T23:50:10.564309000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - UAPI: Updating endpoint"
time="2026-09-27T23:50:10.564316000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - UAPI: Adding allowedip"
time="2026-09-27T23:50:10.564325000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - UAPI: Updating persistent keepalive interval"
time="2026-09-27T23:50:10.564354000+05:00" level=debug msg="[WG](wg) Interface up requested"
time="2026-09-27T23:50:10.564379000+05:00" level=debug msg="[WG](wg) UDP bind has been updated"
time="2026-09-27T23:50:10.564389000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Starting"
time="2026-09-27T23:50:10.564398000+05:00" level=debug msg="[WG](wg) Routine: receive incoming receive - started"
time="2026-09-27T23:50:10.564414000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Routine: sequential sender - started"
time="2026-09-27T23:50:10.564415000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Routine: sequential receiver - started"
time="2026-09-27T23:50:10.564416000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:50:10.564417000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending handshake initiation"
time="2026-09-27T23:50:10.564450000+05:00" level=debug msg="[WG](wg) Interface state was Down, requested Up, now Up"
time="2026-09-27T23:50:10.612303000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Received handshake response"
time="2026-09-27T23:50:11.566315000+05:00" level=info msg="[TCP] 127.0.0.1:53057 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:12.099413000+05:00" level=debug msg="Auth success from 127.0.0.1:53061 -> "
time="2026-09-27T23:50:12.099618000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:12.100400000+05:00" level=info msg="[TCP] 127.0.0.1:53061 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:12.619309000+05:00" level=debug msg="Auth success from 127.0.0.1:53063 -> "
time="2026-09-27T23:50:12.619397000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:12.619803000+05:00" level=info msg="[TCP] 127.0.0.1:53063 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:13.151179000+05:00" level=debug msg="Auth success from 127.0.0.1:53065 -> "
time="2026-09-27T23:50:13.151383000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:13.152165000+05:00" level=info msg="[TCP] 127.0.0.1:53065 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:13.680004000+05:00" level=debug msg="Auth success from 127.0.0.1:53068 -> "
time="2026-09-27T23:50:13.680201000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:13.680981000+05:00" level=info msg="[TCP] 127.0.0.1:53068 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:14.208655000+05:00" level=debug msg="Auth success from 127.0.0.1:53071 -> "
time="2026-09-27T23:50:14.208857000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:14.209634000+05:00" level=info msg="[TCP] 127.0.0.1:53071 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:14.735872000+05:00" level=debug msg="Auth success from 127.0.0.1:53072 -> "
time="2026-09-27T23:50:14.735985000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:14.736419000+05:00" level=info msg="[TCP] 127.0.0.1:53072 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:15.263112000+05:00" level=debug msg="Auth success from 127.0.0.1:53074 -> "
time="2026-09-27T23:50:15.263314000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:15.264039000+05:00" level=info msg="[TCP] 127.0.0.1:53074 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:15.794351000+05:00" level=debug msg="Auth success from 127.0.0.1:53075 -> "
time="2026-09-27T23:50:15.794558000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:15.795333000+05:00" level=info msg="[TCP] 127.0.0.1:53075 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:16.327844000+05:00" level=debug msg="Auth success from 127.0.0.1:53077 -> "
time="2026-09-27T23:50:16.328007000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:16.328644000+05:00" level=info msg="[TCP] 127.0.0.1:53077 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:16.861034000+05:00" level=debug msg="Auth success from 127.0.0.1:53079 -> "
time="2026-09-27T23:50:16.861248000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:16.862040000+05:00" level=info msg="[TCP] 127.0.0.1:53079 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:17.391312000+05:00" level=debug msg="Auth success from 127.0.0.1:53081 -> "
time="2026-09-27T23:50:17.391517000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:17.392270000+05:00" level=info msg="[TCP] 127.0.0.1:53081 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:17.924290000+05:00" level=debug msg="Auth success from 127.0.0.1:53082 -> "
time="2026-09-27T23:50:17.924496000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:17.925235000+05:00" level=info msg="[TCP] 127.0.0.1:53082 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:18.452491000+05:00" level=debug msg="Auth success from 127.0.0.1:53084 -> "
time="2026-09-27T23:50:18.452591000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:18.453036000+05:00" level=info msg="[TCP] 127.0.0.1:53084 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:18.977398000+05:00" level=debug msg="Auth success from 127.0.0.1:53085 -> "
time="2026-09-27T23:50:18.977597000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:18.978389000+05:00" level=info msg="[TCP] 127.0.0.1:53085 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:19.507370000+05:00" level=debug msg="Auth success from 127.0.0.1:53087 -> "
time="2026-09-27T23:50:19.507469000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:19.507907000+05:00" level=info msg="[TCP] 127.0.0.1:53087 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:20.037451000+05:00" level=debug msg="Auth success from 127.0.0.1:53089 -> "
time="2026-09-27T23:50:20.037656000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:20.038384000+05:00" level=info msg="[TCP] 127.0.0.1:53089 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:20.561242000+05:00" level=debug msg="Auth success from 127.0.0.1:53091 -> "
time="2026-09-27T23:50:20.561333000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:20.561752000+05:00" level=info msg="[TCP] 127.0.0.1:53091 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:21.087758000+05:00" level=debug msg="Auth success from 127.0.0.1:53092 -> "
time="2026-09-27T23:50:21.087947000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:21.088703000+05:00" level=info msg="[TCP] 127.0.0.1:53092 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:21.613021000+05:00" level=debug msg="Auth success from 127.0.0.1:53094 -> "
time="2026-09-27T23:50:21.613213000+05:00" level=debug msg="[Rule] use default rules"
time="2026-09-27T23:50:21.613970000+05:00" level=info msg="[TCP] 127.0.0.1:53094 --> 10.9.0.1:8080 match Match using wg"
time="2026-09-27T23:50:26.616732000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:50:31.617933000+05:00" level=debug msg="[WG](wg) peer(xcs7…27mk) - Sending keepalive packet"
time="2026-09-27T23:50:34.561968000+05:00" level=warning msg="Mihomo shutting down"
Adding measurements from mihomo v1.19.33, tested on 2026-11-10 with Clash Verge Rev 2.5.10 on macOS arm64, TUN with the gVisor stack, and a Linux userspace wireguard-go server. There was one configured WireGuard outbound and one mihomo process.
During a 135-second run with an HTTP probe through the proxy every 0.5 seconds, 25 of 268 probes failed. The failed probes were started between 20:37:41 and 20:37:53; each failed after 5 seconds, with mihomo logging:
dial tcp <tunnel-ip>:<port>-><target>:<port>: context deadline exceeded
A server-side capture containing only packet headers showed two UDP source ports for the same peer. Calling them A and B, B carried the probe traffic, while A sent keepalives every 25 seconds matching mihomo’s Sending keepalive packet logs.
The capture and logs showed this sequence:
- At 20:37:25, A sent a data packet.
- At 20:37:40.57, mihomo logged
Retrying handshake because we stopped hearing back after 15 seconds. At 20:37:40.60, the server received a handshake initiation from A and responded. - Over the following approximately 15.6 seconds, 106 server-to-B packets had receiver indices corresponding to the session negotiated through A.
- At 20:37:56.16, B initiated a handshake, after which the probes resumed succeeding.
This is consistent with a session/endpoint mismatch causing the failed dials.
Earlier in the same session, SSH attempts through TUN sometimes reported Connection closed by <target> port 22, coinciding with 5-second dial timeouts in mihomo.
After restarting the core through the GUI, the same probe method produced 328 successful probes out of 328 over 165 seconds. A 180-second server-side capture showed only one source port for this peer.
Same issue here on Windows 10, mihomo v1.19.33 (bundled with Clash Verge Rev 2.5.10, service mode, TUN with gvisor stack), WireGuard outbound with amnezia-wg-option (AmneziaWG 3.1 server). Clash Verge's "reactivate profile" button triggers it the same way.
A few additional observations (client source port as seen by the server, sampled once per second):
- persistent-keepalive set: 51965 -> 49746 after reload -> back to 51965 after 4 s.
- persistent-keepalive removed: 54728 -> 64793 (reload 1) -> 64640 (reload 2) -> 54728 -> 64793 -> 54728 — three devices alive at the same time.
- persistent-keepalive removed + all connections closed right after the reload: 56299 <-> 64316 flipping every 1–3 s for more than 30 s. Closing connections makes it worse, apparently because the old device then has packets to send and no replies, so it keeps re-initiating handshakes. Restarting the core fixes it immediately.
As far as I can see in the code, the replaced outbound is only wrapped by NewAutoCloseProxyAdapter (adapter/parser.go) and closed by a runtime finalizer (adapter/outbound/base.go), i.e. after GC — and not while connections still hold a reference via AddRef. The same code is present in the Alpha branch (7e73a94, 2026-11-14).
Closing the replaced WireGuard device immediately on reload (or at least stopping its keepalive/handshake activity) would fix it. A similar bug was recently fixed in mysteriumnetwork/node (PR #6195): a deferred device close left orphaned devices sending keepalives.
I've opened a fix for this: #3466.
It closes the replaced WireGuard outbound right after PUT /configs instead of waiting for the finalizer. Tested on Linux with an AmneziaWG outbound: without the patch the server's endpoint kept returning to older devices after reloads and some requests timed out; with the patch there is exactly one endpoint change per reload and no timeouts. Details are in the PR.
Confirmed on macOS with Prizrak Box 2.0.0-rc03, AmneziaWG 3.1 and Mistgate.
Before subscription reload: one UDP socket, stable connectivity.
After subscription reload: two UDP sockets to the same endpoint within the same core process, followed by intermittent TCP/TLS timeouts.
Restarting the core immediately restores stable connectivity.
Similar connectivity issues were also observed on Windows and iOS.
This significantly affects subscription-based AWG deployments. Could maintainers please prioritize reviewing this fix?
I'm available to test a patched build on macOS, Windows and iOS. Thanks!
@maxlorrs thanks for confirming. The fix is in #3466 (a small change in hub/executor/executor.go); if you want to test it before review, you can build mihomo from that PR branch.
One question about your setup: does the AWG node come from the main config, so the whole profile is replaced on reload, or from a proxy-providers entry? #3466 closes WireGuard outbounds replaced by a config reload; proxies from proxy providers are not covered yet.
@ogrishko In our setup, the AWG 3.1 node is defined directly in the proxies section of the main Mihomo configuration, not through proxy-providers.
Mistgate serves a complete Mihomo YAML subscription, and Prizrak Box reloads the configuration when the subscription is updated.
We use rule-providers for routing rules, but no proxy-providers.
The issue is reproducible after a subscription reload: the old UDP socket remains active alongside the newly created one, both targeting the same AWG endpoint.
So our setup appears to fall directly within the scope of #3466.
I'll test the patch when I have a chance and report the results!
@ogrishko
Tested #3466 on Windows 11 with AmneziaWG 3.1 and a Mistgate-generated subscription.
Test environment
- Go 1.27.4
- Windows amd64 v3
- Build tag:
with_gvisor - Baseline:
184857ce - Patched:
7441cdd7
Test methodology
- Identical, unmodified Mistgate subscription.
- AWG node defined directly in
proxies. - 10 configuration reloads via
PUT /configs?force=truewithout restarting the core. - Three HTTPS requests through AWG per iteration.
- UDP sockets monitored using
Get-NetUDPEndpoint.
Results
| Metric | Baseline | Patched |
|---|---|---|
| Initial UDP socket count | 1 | 1 |
| Reloads with two UDP sockets | 9/10 | 0/10 |
| Maximum UDP socket count | 2 | 1 |
| Successful HTTPS requests | 33/33 | 33/33 |
| Failed HTTPS requests | 0 | 0 |
Without the patch, the previous UDP socket remained present alongside the newly created socket after most reloads.
With the patch, only one UDP socket was observed after every reload.
No TCP/TLS timeouts occurred during this test. Remote UDP endpoints were not independently verified through packet capture.
The results confirm that #3466 resolves the observed duplicate UDP socket behavior in this Windows/Mistgate/AWG 3.1 setup.