Docs/Others/hysteria2/clash-meta配置.md

47 lines
No EOL
1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 与hysteria2相关部分
```yaml
# 主要部分proxy配置
proxies:
- {"name":"access","type":"hysteria2","server":"vpn.example.com","port":443,"password":"87G9MoaEyqlNGzIzkiy3eMKk","skip-cert-verify":true}
```
## 简略完整版
```yaml
port: 7890
socks-port: 1080
proxies:
- name: "hysteria"
type: hysteria
server: example.com
port: 36712
password: 87G9MoaEyqlNGzIzkiy3eMKk
obfs: fuck me till the daylight
skip-cert-verify: true
proxy-groups:
- name: PROXY
type: select
proxies:
- hysteria
rules:
- DOMAIN-SUFFIX,bilibili.com,DIRECT,tcp
- DOMAIN,google.com,PROXY
- DOMAIN-KEYWORD,baidu,DIRECT
- IP-CIDR,127.0.0.0/8,DIRECT
- SRC-IP-CIDR,192.168.0.0/16,DIRECT
- DST-PORT,3389/445,DIRECT
- GEOSITE,category-ads-all,REJECT
- GEOSITE,icloud@cn,DIRECT
- GEOSITE,apple@cn,DIRECT
- GEOSITE,apple-cn,DIRECT
- GEOSITE,microsoft@cn,DIRECT
- GEOSITE,geolocation-cn,DIRECT
- GEOSITE,geolocation-!cn,PROXY
- GEOIP,private,DIRECT,no-resolve
- GEOIP,cn,DIRECT
- MATCH,PROXY
```