surge中配置wireguard客户端连接
surge还是挺好用的,不过最近研究内网穿透,想试试wireguard的设置,然后折腾了一下,虽然秒被封,但是至少这个配置是成功的,可以参考
在surge中新建一个配置,内容按如下做调整即可
[Proxy]
US = wireguard, section-name = USServer
[WireGuard USServer]
private-key = iDwtj5UroacSipA9+MFQv4m3n9a2LpJHY=
self-ip = 198.18.0.2
self-ip-v6 = fd00:1111::11
dns-server = 8.8.8.8, 2606:4700:4700::1001
prefer-ipv6 = false
mtu = 1280
peer = (public-key = bLRTF/YPWiOC9VbvCwgURf3M9tIga+ldJgo=, allowed-ips = 0.0.0.0/0, endpoint = 1.2.3.4:9999)
[Proxy Group]
Group = select, US
[Rule]
DOMAIN-SUFFIX,jetbrains.com,DIRECT
# block ad
DOMAIN-SUFFIX,google-analytics.com,REJECT
DOMAIN-SUFFIX,hm.baidu.com,REJECT
DOMAIN-SUFFIX,cpro.baidu.com,REJECT
DOMAIN-SUFFIX,p.tanx.com,REJECT
DOMAIN-SUFFIX,s5.cnzz.com,REJECT
DOMAIN-SUFFIX,hzs19.cnzz.com,REJECT
DOMAIN-SUFFIX,c.cnzz.com,REJECT
DOMAIN-SUFFIX,w.cnzz.com,REJECT
DOMAIN-SUFFIX,tcss.qq.com,REJECT
RULE-SET,https://s.trojanflare.com/Surge/Basic/Apple-proxy.list,Group
RULE-SET,https://s.trojanflare.com/Surge/Basic/Apple-direct.list,DIRECT
RULE-SET,https://s.trojanflare.com/Surge/Basic/CN.list,DIRECT
RULE-SET,https://s.trojanflare.com/Surge/Basic/common-ad-keyword.list,REJECT-TINYGIF
RULE-SET,https://s.trojanflare.com/Surge/Basic/foreign.list,Group
RULE-SET,https://s.trojanflare.com/Surge/App/social/Telegram.list,Group
RULE-SET,LAN,DIRECT
GEOIP,CN,DIRECT
GEOIP,HK,DIRECT
FINAL,Group,dns-failed
版权声明:本文为原创文章,版权归 全栈开发技术博客 所有。
本文链接:https://www.lvtao.net/tool/surge-wireguard.html
转载时须注明出处及本声明