求助,补充几个日志例子
--- 例子1
$ curl -I 172.16.16.2
HTTP/1.1 200 OK
Server: openresty
Date: Mon, 04 Dec 2023 13:33:34 GMT
Content-Type: text/plain
Connection: keep-alive
------- 对应日志 -------
Rule Evaluating - ≤ 1 ms
Active - 7 ms
Events
21:33:34.449985 [Connection] Incoming proxy protocol: HTTP
21:33:34.450392 [Rule] Rule matched: IP-CIDR 172.16.16.0/24
21:33:34.451014 [WireGuard-DNS] Remote DNS completed, using record: 172.16.16.2
--- 例子2, xx.xx 对应在公网解析的一个域名,解析到 172.16.16.2
$ curl -I http://xx.xx
HTTP/1.1 503 Service Unavailable
Connection: close
Proxy-Connection: close
Content-Length: 8495
Content-Type: text/html;charset=utf-8
------- 对应日志 -------
Rule Evaluating - ≤ 1 ms
DNS Lookup - ≤ 1 ms
Events
21:35:55.587732 [Connection] Incoming proxy protocol: HTTP
21:35:55.588106 [Rule] Rule evaluating requires DNS lookup for rule: IP-CIDR 172.16.6.0/24
21:35:55.588229 [Rule] DNS completed in 0.09ms, IPv4 address for matching: 172.16.16.2, IPv6 address for matching: N/A
21:35:55.588275 [Rule] Rule matched: IP-CIDR 172.16.16.0/24
21:36:03.688870 [WireGuard-DNS] Remote DNS error: Error Domain=SGErrorDomain Code=0 "Timeout" UserInfo={NSLocalizedDescription=Timeout}
21:36:03.690753 [Connection] Disconnect with reason: Outgoing connection setup failed (Timeout)
--- 例子3, xx.xx 对应在公网解析的一个域名,解析到 172.16.16.2, 去掉 [WireGuard xxx] 下的 dns-server = 119.29.29.29, 223.5.5.5 配置项
$ curl -I http://xx.xx
HTTP/1.1 503 Service Unavailable
Connection: close
Proxy-Connection: close
Content-Length: 8495
Content-Type: text/html;charset=utf-8
------- 对应日志 -------
DNS Lookup - 6 ms
Rule Evaluating - ≤ 1 ms
Events
21:39:01.131796 [Connection] Incoming proxy protocol: HTTP
21:39:01.132219 [Rule] Rule evaluating requires DNS lookup for rule: IP-CIDR 172.16.6.0/24
21:39:01.138451 [Rule] DNS completed in 6.19ms, IPv4 address for matching: 172.16.16.2, IPv6 address for matching: N/A
21:39:01.138536 [Rule] Rule matched: IP-CIDR 172.16.16.0/24
21:39:01.147150 [WireGuard-DNS] Remote DNS error: Error Domain=SGErrorDomain Code=0 "No available upstream DNS server" UserInfo={NSLocalizedDescription=No available upstream DNS server}
21:39:01.148338 [Connection] Disconnect with reason: Outgoing connection setup failed (No available upstream DNS server)