我使用Tunnelblick运行OpenVPN,本地配置为不作为默认网关,并根据服务端下发内容手动配置了一些routes:
# redirect-gateway def1
# do not set routes
route-nopull
route 192.168.0.0 255.255.0.0 vpn_gateway
route 47.75.0.0 255.255.0.0 vpn_gateway
.....
此时OpenVPN可与Surge的增强模式共存,但有些域名需要使用内部DNS解析,尝试过以下配置的多种组合都无法向192.168.10.133发起请求:
dns-server = 119.29.29.29, 1.2.4.8, 192.168.10.133, system
dns-server = 192.168.10.133
always-real-ip = *
[Proxy]
Company = direct, interface=utun7, allow-other-interface=true
[Rule]
IP-CIDR, 192.168.10.133/32, Company
[Host]
a.b.company.com = 123.123.123.123
*.company.com = server:192.168.10.133
验证办法:
nslookup a.b.company.com 192.18.0.2
;; connection timed out; no servers could be reached
nslookup a.b.company.com 192.168.10.133
# Address: 123.123.123.123
目前的解决办法是在系统设置中额外指定DNS为192.168.10.133。
参考过以下内容都无法解决,请问我问题出在哪里呢?@SurgeTeam