Skip to content

Instantly share code, notes, and snippets.

@chenyaofo
Created August 6, 2023 04:05
Show Gist options
  • Save chenyaofo/83d62b8de5db6a6528d32435d50afe6f to your computer and use it in GitHub Desktop.
Save chenyaofo/83d62b8de5db6a6528d32435d50afe6f to your computer and use it in GitHub Desktop.
Cloudflare-Clash-Tunnel
port: 7890
socks-port: 7891
allow-lan: true
mode: Global
log-level: info
external-controller: :9090
profile:
store-selected: true
store-fake-ip: true
dns:
enable: true
ipv6: false
listen: 127.0.0.1:5450
enhanced-mode: fake-ip
nameserver:
- https://dns.pub/dns-query
- https://223.5.5.5/dns-query
proxies:
- name: WARP
type: wireguard
server: 127.0.0.1
port: 7776
ip: 172.16.0.2
ipv6: 2606:4700:xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
private-key: "QIdqLgL/sMsF/rd/+3Cz7uqnJPNmpKYoB8Axxxxxxxx"
public-key: "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51hxxxxxxxx"
# preshared-key: base64
remote-dns-resolve: true # remote resolve DNS with `dns` field, default is true
dns: [1.1.1.1, 8.8.8.8]
mtu: 1280
udp: true
tunnels:
- network: [tcp, udp]
address: 127.0.0.1:7776 #这里也不需要改
target: engage.cloudflareclient.com:2408 #这里改成自建节点的ip和端口号
proxy: BitzNet-URL
proxy-providers:
BitzNet:
type: http
url: https://dlj.tf/xxxxx
path: ./Proxy/BitzNet.yml
interval: 86400
health-check:
enable: true
interval: 600
url: https://www.gstatic.com/generate_204
proxy-groups:
- name: BitzNet-URL
type: url-test
use:
- BitzNet
url: http://www.gstatic.com/generate_204
interval: 86400
rules:
- GEOIP,LAN,DIRECT
- GEOIP,CN,DIRECT
- MATCH,WARP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment