Surge 6.4.1
设置系统代理+增强模式
WIFI手动设置IP地址:192.168.0.8,DNS:192.168.0.1
Mac mini M4 macOS 15.7.2,机器未登录iCloud
情况一:重启机器,无法连接DNS,日志如下:
2025-11-23 00:44:33.848438 <NOTIFY> [SGMMain] Updating core settings, sections: All
2025-11-23 00:44:33.848496 <NOTIFY> [SGMMain] Apply proxy settings
2025-11-23 00:44:33.849643 <NOTIFY> [SGMMain] Apply rule settings
2025-11-23 00:44:33.849713 <NOTIFY> [SGMMain] Apply general settings
2025-11-23 00:44:33.849883 <NOTIFY> [SGMMain] Effective DNS servers: (null)
2025-11-23 00:44:33.849911 <NOTIFY> [SGMMain] Effective encrypted DNS servers: N/A
2025-11-23 00:44:33.863095 <NOTIFY> [SGMSystemSettings] SSID: (null) (AirPort interface: en1)
2025-11-23 00:44:33.863117 <NOTIFY> [SGMSystemSettings] System network state: IPv4 en1 (192.168.0.8), IPv6 N/A (No address)
2025-11-23 00:44:33.863224 <NOTIFY> [SGMMain] Effective DNS servers: 192.168.0.1
2025-11-23 00:44:33.863235 <NOTIFY> [SGMMain] Effective encrypted DNS servers: N/A
2025-11-23 00:44:33.864521 <NOTIFY> [SGProxyServerManager] HTTP proxy listen on interface: 127.0.0.1, port: 6152
2025-11-23 00:44:33.864591 <NOTIFY> [SGProxyServerManager] SOCKS5 proxy listen on interface: 127.0.0.1, port: 6153
2025-11-23 00:44:33.927288 <NOTIFY> [SGMTunnelManager] NE status: Disconnected
2025-11-23 00:44:33.959119 <NOTIFY> [SGMTunnelManager] IPv6 VIF enabled: 0
2025-11-23 00:44:33.964846 <NOTIFY> [SGMTunnelManager] NE status: Connecting
2025-11-23 00:44:34.233220 <NOTIFY> [SGMVirtualInterface] utun device: utun4
2025-11-23 00:44:34.233572 <NOTIFY> [SGMTunnelManager] NE status: Connected
2025-11-23 00:44:34.233587 <NOTIFY> [SGMTunnelManager] Network Extension started
2025-11-23 00:44:34.233678 <NOTIFY> [SGMMain] Initialization sequence complete
2025-11-23 00:44:34.297828 <NOTIFY> [SGMSystemSettings] System proxy settings update, state: 1
2025-11-23 00:44:34.525129 <NOTIFY> [SGMHelperBridge] Helper version matched
2025-11-23 00:44:35.241649 <NETWORK-ERROR> [SGUDPSocket-4] send() failed: Broken pipe (POSIX:32), dest: 192.168.0.1:53
2025-11-23 00:44:35.242131 <NETWORK-ERROR> [SGUDPSocket-5] send() failed: Broken pipe (POSIX:32), dest: 192.168.0.1:53
2025-11-23 00:44:35.256166 <NETWORK-ERROR> [SGUDPSocket-6] send() failed: Broken pipe (POSIX:32), dest: 192.168.0.1:53
2025-11-23 00:44:36.248706 <NETWORK-ERROR> [SGUDPSocket-7] send() failed: Broken pipe (POSIX:32), dest: 192.168.0.1:53
2025-11-23 00:44:37.249140 <NETWORK-ERROR> [SGUDPSocket-9] send() failed: Broken pipe (POSIX:32), dest: 192.168.0.1:53
2025-11-23 00:44:37.249312 <NETWORK-ERROR> [SGUDPSocket-8] send() failed: Broken pipe (POSIX:32), dest: 192.168.0.1:53
2025-11-23 00:44:37.324689 <NETWORK-ERROR> [SGUDPSocket-10] send() failed: Broken pipe (POSIX:32), dest: 192.168.0.1:53
2025-11-23 00:44:39.249591 <NETWORK-ERROR> [SGUDPSocket-12] send() failed: Broken pipe (POSIX:32), dest: 192.168.0.1:53
2025-11-23 00:44:39.249906 <NETWORK-ERROR> [SGUDPSocket-13] send() failed: Broken pipe (POSIX:32), dest: 192.168.0.1:53
2025-11-23 00:44:39.877617 <WARNING> [ERROR] ERROR (SGCloudKit.m:187): <CKError 0x600001f67270: "Not Authenticated" (9/1002); "This request requires an authenticated account">
2025-11-23 00:44:39.877862 <WARNING> [SGPonteManager] Failed to update device list: iCloud 状态异常,请在系统设置中检查你的 iCloud 账号是否正常。也有可能是 Apple 服务器故障导致的临时问题。
2025-11-23 00:44:41.249644 <NETWORK-ERROR> [SGUDPSocket-14] send() failed: Broken pipe (POSIX:32), dest: 192.168.0.1:53
2025-11-23 00:44:41.249852 <NETWORK-ERROR> [SGUDPSocket-15] send() failed: Broken pipe (POSIX:32), dest: 192.168.0.1:53
2025-11-23 00:44:41.341483 <NETWORK-ERROR> [SGUDPSocket-16] send() failed: Broken pipe (POSIX:32), dest: 192.168.0.1:53
2025-11-23 00:44:43.249563 <NETWORK-ERROR> [SGUDPSocket-18] send() failed: Broken pipe (POSIX:32), dest: 192.168.0.1:53
2025-11-23 00:44:43.249771 <NETWORK-ERROR> [SGUDPSocket-17] send() failed: Broken pipe (POSIX:32), dest: 192.168.0.1:53
情况二:重载配置会导致系统代理失效,菜单栏选中,但是系统设置WIFI详细信息-代理,全部为空。
2025-11-23 01:06:21.534428 <NOTIFY> [SGMMain] Updating core settings, sections: All
2025-11-23 01:06:21.534476 <NOTIFY> [SGMMain] Apply proxy settings
2025-11-23 01:06:21.535663 <NOTIFY> [SGMMain] Apply rule settings
2025-11-23 01:06:21.535688 <NOTIFY> [SGMMain] Apply general settings
2025-11-23 01:06:21.535722 <NOTIFY> [SGMMain] Effective DNS servers: 192.168.0.1
2025-11-23 01:06:21.535737 <NOTIFY> [SGMMain] Effective encrypted DNS servers: N/A
2025-11-23 01:06:21.540924 <NOTIFY> [SGMMain] Effective DNS servers: 192.168.0.1
2025-11-23 01:06:21.540944 <NOTIFY> [SGMMain] Effective encrypted DNS servers: N/A
2025-11-23 01:06:21.549524 <NOTIFY> [SGMSystemSettings] SSID: (null) (AirPort interface: en1)
2025-11-23 01:06:21.549549 <NOTIFY> [SGMSystemSettings] System network state: IPv4 en1 (192.168.0.8), IPv6 N/A (No address)
2025-11-23 01:06:21.551294 <NOTIFY> [SGProxyServerManager] HTTP proxy listen on interface: 127.0.0.1, port: 6152
2025-11-23 01:06:21.551411 <NOTIFY> [SGProxyServerManager] SOCKS5 proxy listen on interface: 127.0.0.1, port: 6153
2025-11-23 01:06:21.556262 <NOTIFY> [SGMSystemSettings] System proxy settings update, state: 0
2025-11-23 01:06:21.576464 <NOTIFY> [SGMTunnelManager] IPv6 VIF enabled: 0
2025-11-23 01:06:21.577699 <NOTIFY> [SGMTunnelManager] NE status: Connecting
2025-11-23 01:06:21.653884 <NOTIFY> [SGMVirtualInterface-17] utun device: utun4
2025-11-23 01:06:21.654176 <NOTIFY> [SGMTunnelManager] NE status: Connected
2025-11-23 01:06:21.654191 <NOTIFY> [SGMTunnelManager] Network Extension started
2025-11-23 01:06:21.654215 <NOTIFY> [SGMMain] Initialization sequence complete
2025-11-23 01:06:21.717936 <NOTIFY> [SGMSystemSettings] System proxy settings update, state: 1
2025-11-23 01:06:26.667522 <WARNING> [ERROR] ERROR (SGCloudKit.m:187): <CKError 0x600001c2e010: "Not Authenticated" (9/1002); "This request requires an authenticated account">
2025-11-23 01:06:26.667792 <WARNING> [SGPonteManager] Failed to update device list: iCloud 状态异常,请在系统设置中检查你的 iCloud 账号是否正常。也有可能是 Apple 服务器故障导致的临时问题。
Surge配置:
[General]
skip-proxy = 192.168.0.0/16, 127.0.0.1, localhost, *.local
test-timeout = 5
loglevel = notify
ipv6 = false
exclude-simple-hostnames = true
internet-test-url = http://www.gstatic.com/generate_204
proxy-test-url = http://www.gstatic.com/generate_204
http-api-web-dashboard = false
udp-policy-not-supported-behaviour = REJECT
[Proxy]
SG = vmess, 1.1.1.1, 123456, username=123-456-789, vmess-aead=true
[Proxy Group]
PROXY = select, SG
[Rule]
DOMAIN-SUFFIX,domain1.com,DIRECT
DOMAIN-SUFFIX,domain2.com,DIRECT
DOMAIN-SUFFIX,domain3.com,DIRECT
FINAL,PROXY
开启系统代理+增强模式,重启机器和重载配置都会遇到问题,问题出在哪里呢?
@SurgeTeam