之前在网上看到搭建代理服务器流程,感觉有意思就自己弄了一个,客户端用的是clash v0.20.39,copy教程的配置文件只有开tun模式才能走代理,不开的话就连不上。我看日志主要报错有
09:46:26 WRN [TCP] dial failed error=xxx.xxxx:443 connect error: all DNS requests failed, first error: Post “https://1.1.1.1/dns-query”: dial tcp4 1.1.1.1:443: connectex: A socket operation was attempted to an unreachable network. proxy=GLOBAL lAddr=127.0.0.1:53603 rAddr=kessel-api.parsec.app:443
09:46:46 INF [Config] initial compatible provider name=Proxy
09:46:46 ERR [Inbound] start failed error=Error creating interface: Access is denied. type=TUN stackType=system inet=198.18.0.1/16
lia可能是我的dns配置有问题?我的dns配置是:
dns:
enable: true
listen: 0.0.0.0:7874
ipv6: false
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
nameserver:
- 114.114.114.114
- https://1.1.1.1/dns-query
fallback:
- tcp://1.1.1.1
- https://public.dns.iij.jp/dns-query
- https://doh.pub/dns-query
大佬们能帮看下是哪的问题吗?