Updated Configuring example (markdown)
parent
b8451d15bc
commit
129fcf3ce7
@ -10,14 +10,16 @@
|
|||||||
- [tunnels](#tunnels)
|
- [tunnels](#tunnels)
|
||||||
- [DNS 配置](#dns-配置)
|
- [DNS 配置](#dns-配置)
|
||||||
- [Proxies](#proxies)
|
- [Proxies](#proxies)
|
||||||
|
- [Shadowsocks](#shadowsocks)
|
||||||
|
- [ShadowsocksR](#shadowsocksr)
|
||||||
- [vmess](#vmess)
|
- [vmess](#vmess)
|
||||||
- [Socks \& HTTP](#socks--http)
|
- [Socks](#socks)
|
||||||
|
- [HTTP](#http)
|
||||||
- [VLESS](#vless)
|
- [VLESS](#vless)
|
||||||
- [Snell](#snell)
|
- [Snell](#snell)
|
||||||
- [Trojan](#trojan)
|
- [Trojan](#trojan)
|
||||||
- [Hysteria](#hysteria)
|
- [Hysteria](#hysteria)
|
||||||
- [Tuic](#tuic)
|
- [Tuic](#tuic)
|
||||||
- [ShadowsocksR](#shadowsocksr)
|
|
||||||
- [Wireguard](#wireguard)
|
- [Wireguard](#wireguard)
|
||||||
- [Proxy-groups](#proxy-groups)
|
- [Proxy-groups](#proxy-groups)
|
||||||
- [Providers](#providers)
|
- [Providers](#providers)
|
||||||
@ -26,8 +28,8 @@
|
|||||||
- [Rules](#rules)
|
- [Rules](#rules)
|
||||||
- [Listeners](#listeners)
|
- [Listeners](#listeners)
|
||||||
- [入口配置](#入口配置)
|
- [入口配置](#入口配置)
|
||||||
- [ss-config:](#ss-config)
|
- [ss-config](#ss-config)
|
||||||
- [vmess-config:](#vmess-config)
|
- [vmess-config](#vmess-config)
|
||||||
- [tuic 服务器入口](#tuic-服务器入口)
|
- [tuic 服务器入口](#tuic-服务器入口)
|
||||||
|
|
||||||
## General
|
## General
|
||||||
@ -317,9 +319,10 @@ dns:
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Proxies
|
## Proxies
|
||||||
|
|
||||||
|
### Shadowsocks
|
||||||
```yaml
|
```yaml
|
||||||
proxies:
|
proxies:
|
||||||
# Shadowsocks
|
|
||||||
# cipher 支持:
|
# cipher 支持:
|
||||||
# aes-128-gcm aes-192-gcm aes-256-gcm
|
# aes-128-gcm aes-192-gcm aes-256-gcm
|
||||||
# aes-128-cfb aes-192-cfb aes-256-cfb
|
# aes-128-cfb aes-192-cfb aes-256-cfb
|
||||||
@ -337,7 +340,7 @@ proxies:
|
|||||||
# udp-over-tcp: false
|
# udp-over-tcp: false
|
||||||
# ip-version: ipv4 # 设置节点使用 IP 版本,可选:dual,ipv4,ipv6,ipv4-prefer,ipv6-prefer。默认使用 dual
|
# ip-version: ipv4 # 设置节点使用 IP 版本,可选:dual,ipv4,ipv6,ipv4-prefer,ipv6-prefer。默认使用 dual
|
||||||
# ipv4:仅使用 IPv4 ipv6:仅使用 IPv6
|
# ipv4:仅使用 IPv4 ipv6:仅使用 IPv6
|
||||||
# ipv4-prefer:优先使用 IPv4 对于 TCP 会进行双栈解析,并发链接但是优先使用 IPv4 链接,
|
# ipv4-prefer:优先使用 IPv4 对于 TCP 会进行双栈解析,并发链接但是优先使用 IPv4 链接,
|
||||||
# UDP 则为双栈解析,获取结果中的第一个 IPv4
|
# UDP 则为双栈解析,获取结果中的第一个 IPv4
|
||||||
# ipv6-prefer 同 ipv4-prefer
|
# ipv6-prefer 同 ipv4-prefer
|
||||||
# 现有协议都支持此参数,TCP 效果仅在开启 tcp-concurrent 生效
|
# 现有协议都支持此参数,TCP 效果仅在开启 tcp-concurrent 生效
|
||||||
@ -383,6 +386,27 @@ proxies:
|
|||||||
host: "cloud.tencent.com"
|
host: "cloud.tencent.com"
|
||||||
password: "shadow_tls_password"
|
password: "shadow_tls_password"
|
||||||
```
|
```
|
||||||
|
### ShadowsocksR
|
||||||
|
```yaml
|
||||||
|
# The supported ciphers (encryption methods): all stream ciphers in ss
|
||||||
|
# The supported obfses:
|
||||||
|
# plain http_simple http_post
|
||||||
|
# random_head tls1.2_ticket_auth tls1.2_ticket_fastauth
|
||||||
|
# The supported supported protocols:
|
||||||
|
# origin auth_sha1_v4 auth_aes128_md5
|
||||||
|
# auth_aes128_sha1 auth_chain_a auth_chain_b
|
||||||
|
- name: "ssr"
|
||||||
|
type: ssr
|
||||||
|
server: server
|
||||||
|
port: 443
|
||||||
|
cipher: chacha20-ietf
|
||||||
|
password: "password"
|
||||||
|
obfs: tls1.2_ticket_auth
|
||||||
|
protocol: auth_sha1_v4
|
||||||
|
# obfs-param: domain.tld
|
||||||
|
# protocol-param: "#"
|
||||||
|
# udp: true
|
||||||
|
```
|
||||||
|
|
||||||
### vmess
|
### vmess
|
||||||
```yaml
|
```yaml
|
||||||
@ -459,9 +483,8 @@ proxies:
|
|||||||
grpc-service-name: "example"
|
grpc-service-name: "example"
|
||||||
# ip-version: ipv4
|
# ip-version: ipv4
|
||||||
```
|
```
|
||||||
### Socks & HTTP
|
### Socks
|
||||||
```
|
```
|
||||||
# socks5
|
|
||||||
- name: "socks"
|
- name: "socks"
|
||||||
type: socks5
|
type: socks5
|
||||||
server: server
|
server: server
|
||||||
@ -473,8 +496,10 @@ proxies:
|
|||||||
# skip-cert-verify: true
|
# skip-cert-verify: true
|
||||||
# udp: true
|
# udp: true
|
||||||
# ip-version: ipv6
|
# ip-version: ipv6
|
||||||
|
```
|
||||||
|
|
||||||
# http
|
### HTTP
|
||||||
|
```yaml
|
||||||
- name: "http"
|
- name: "http"
|
||||||
type: http
|
type: http
|
||||||
server: server
|
server: server
|
||||||
@ -499,7 +524,7 @@ proxies:
|
|||||||
# flow: xtls-rprx-direct # xtls-rprx-origin # enable XTLS
|
# flow: xtls-rprx-direct # xtls-rprx-origin # enable XTLS
|
||||||
# skip-cert-verify: true
|
# skip-cert-verify: true
|
||||||
# fingerprint: xxxx
|
# fingerprint: xxxx
|
||||||
# client-fingerprint: random # Available: "chrome","firefox","safari","random"
|
# client-fingerprint: random # Available: "chrome","firefox","safari","random","none"
|
||||||
|
|
||||||
- name: "vless-ws"
|
- name: "vless-ws"
|
||||||
type: vless
|
type: vless
|
||||||
@ -509,7 +534,7 @@ proxies:
|
|||||||
udp: true
|
udp: true
|
||||||
tls: true
|
tls: true
|
||||||
network: ws
|
network: ws
|
||||||
# client-fingerprint: random # Available: "chrome","firefox","safari","random"
|
# client-fingerprint: random # Available: "chrome","firefox","safari","random","none"
|
||||||
servername: example.com # priority over wss host
|
servername: example.com # priority over wss host
|
||||||
# skip-cert-verify: true
|
# skip-cert-verify: true
|
||||||
# fingerprint: xxxx
|
# fingerprint: xxxx
|
||||||
@ -517,6 +542,7 @@ proxies:
|
|||||||
path: "/"
|
path: "/"
|
||||||
headers:
|
headers:
|
||||||
Host: example.com
|
Host: example.com
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Snell
|
### Snell
|
||||||
@ -639,27 +665,7 @@ proxies:
|
|||||||
# max-open-streams: 20 # default 100, too many open streams may hurt performance
|
# max-open-streams: 20 # default 100, too many open streams may hurt performance
|
||||||
```
|
```
|
||||||
|
|
||||||
### ShadowsocksR
|
|
||||||
```
|
|
||||||
# The supported ciphers (encryption methods): all stream ciphers in ss
|
|
||||||
# The supported obfses:
|
|
||||||
# plain http_simple http_post
|
|
||||||
# random_head tls1.2_ticket_auth tls1.2_ticket_fastauth
|
|
||||||
# The supported supported protocols:
|
|
||||||
# origin auth_sha1_v4 auth_aes128_md5
|
|
||||||
# auth_aes128_sha1 auth_chain_a auth_chain_b
|
|
||||||
- name: "ssr"
|
|
||||||
type: ssr
|
|
||||||
server: server
|
|
||||||
port: 443
|
|
||||||
cipher: chacha20-ietf
|
|
||||||
password: "password"
|
|
||||||
obfs: tls1.2_ticket_auth
|
|
||||||
protocol: auth_sha1_v4
|
|
||||||
# obfs-param: domain.tld
|
|
||||||
# protocol-param: "#"
|
|
||||||
# udp: true
|
|
||||||
```
|
|
||||||
|
|
||||||
### Wireguard
|
### Wireguard
|
||||||
```yaml
|
```yaml
|
||||||
@ -849,14 +855,14 @@ listeners:
|
|||||||
port: 10809
|
port: 10809
|
||||||
listen: 0.0.0.0
|
listen: 0.0.0.0
|
||||||
# rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
|
# rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
|
||||||
# proxy: proxy # 如果不为空则直接将该入站流量交由指定 proxy 处理(当 proxy 不为空时,这里的 proxy 名称必须合法,否则会出错)
|
# proxy: proxy # 如果不为空则直接将该入站流量交由指定proxy处理(当proxy不为空时,这里的proxy名称必须合法,否则会出错)
|
||||||
|
|
||||||
- name: mixed-in-1
|
- name: mixed-in-1
|
||||||
type: mixed # HTTP(S) 和 SOCKS 代理混合
|
type: mixed # HTTP(S) 和 SOCKS 代理混合
|
||||||
port: 10810
|
port: 10810
|
||||||
listen: 0.0.0.0
|
listen: 0.0.0.0
|
||||||
# rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
|
# rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
|
||||||
# proxy: proxy # 如果不为空则直接将该入站流量交由指定 proxy 处理(当 proxy 不为空时,这里的 proxy 名称必须合法,否则会出错)
|
# proxy: proxy # 如果不为空则直接将该入站流量交由指定proxy处理(当proxy不为空时,这里的proxy名称必须合法,否则会出错)
|
||||||
# udp: false # 默认 true
|
# udp: false # 默认 true
|
||||||
|
|
||||||
- name: reidr-in-1
|
- name: reidr-in-1
|
||||||
@ -864,14 +870,14 @@ listeners:
|
|||||||
port: 10811
|
port: 10811
|
||||||
listen: 0.0.0.0
|
listen: 0.0.0.0
|
||||||
# rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
|
# rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
|
||||||
# proxy: proxy # 如果不为空则直接将该入站流量交由指定 proxy 处理(当 proxy 不为空时,这里的 proxy 名称必须合法,否则会出错)
|
# proxy: proxy # 如果不为空则直接将该入站流量交由指定proxy处理(当proxy不为空时,这里的proxy名称必须合法,否则会出错)
|
||||||
|
|
||||||
- name: tproxy-in-1
|
- name: tproxy-in-1
|
||||||
type: tproxy
|
type: tproxy
|
||||||
port: 10812
|
port: 10812
|
||||||
listen: 0.0.0.0
|
listen: 0.0.0.0
|
||||||
# rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
|
# rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
|
||||||
# proxy: proxy # 如果不为空则直接将该入站流量交由指定 proxy 处理(当 proxy 不为空时,这里的 proxy 名称必须合法,否则会出错)
|
# proxy: proxy # 如果不为空则直接将该入站流量交由指定proxy处理(当proxy不为空时,这里的proxy名称必须合法,否则会出错)
|
||||||
# udp: false # 默认 true
|
# udp: false # 默认 true
|
||||||
|
|
||||||
- name: shadowsocks-in-1
|
- name: shadowsocks-in-1
|
||||||
@ -879,7 +885,7 @@ listeners:
|
|||||||
port: 10813
|
port: 10813
|
||||||
listen: 0.0.0.0
|
listen: 0.0.0.0
|
||||||
# rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
|
# rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
|
||||||
# proxy: proxy # 如果不为空则直接将该入站流量交由指定 proxy 处理(当 proxy 不为空时,这里的 proxy 名称必须合法,否则会出错)
|
# proxy: proxy # 如果不为空则直接将该入站流量交由指定proxy处理(当proxy不为空时,这里的proxy名称必须合法,否则会出错)
|
||||||
password: vlmpIPSyHH6f4S8WVPdRIHIlzmB+GIRfoH3aNJ/t9Gg=
|
password: vlmpIPSyHH6f4S8WVPdRIHIlzmB+GIRfoH3aNJ/t9Gg=
|
||||||
cipher: 2022-blake3-aes-256-gcm
|
cipher: 2022-blake3-aes-256-gcm
|
||||||
|
|
||||||
@ -888,7 +894,7 @@ listeners:
|
|||||||
port: 10814
|
port: 10814
|
||||||
listen: 0.0.0.0
|
listen: 0.0.0.0
|
||||||
# rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
|
# rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
|
||||||
# proxy: proxy # 如果不为空则直接将该入站流量交由指定 proxy 处理(当 proxy 不为空时,这里的 proxy 名称必须合法,否则会出错)
|
# proxy: proxy # 如果不为空则直接将该入站流量交由指定proxy处理(当proxy不为空时,这里的proxy名称必须合法,否则会出错)
|
||||||
users:
|
users:
|
||||||
- username: 1
|
- username: 1
|
||||||
uuid: 9d0cb9d0-964f-4ef6-897d-6c6b3ccf9e68
|
uuid: 9d0cb9d0-964f-4ef6-897d-6c6b3ccf9e68
|
||||||
@ -899,7 +905,7 @@ listeners:
|
|||||||
port: 10815
|
port: 10815
|
||||||
listen: 0.0.0.0
|
listen: 0.0.0.0
|
||||||
# rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
|
# rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
|
||||||
# proxy: proxy # 如果不为空则直接将该入站流量交由指定 proxy 处理(当 proxy 不为空时,这里的 proxy 名称必须合法,否则会出错)
|
# proxy: proxy # 如果不为空则直接将该入站流量交由指定proxy处理(当proxy不为空时,这里的proxy名称必须合法,否则会出错)
|
||||||
# token:
|
# token:
|
||||||
# - TOKEN
|
# - TOKEN
|
||||||
# certificate: ./server.crt
|
# certificate: ./server.crt
|
||||||
@ -916,14 +922,14 @@ listeners:
|
|||||||
port: 10816
|
port: 10816
|
||||||
listen: 0.0.0.0
|
listen: 0.0.0.0
|
||||||
# rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
|
# rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
|
||||||
# proxy: proxy # 如果不为空则直接将该入站流量交由指定 proxy 处理(当 proxy 不为空时,这里的 proxy 名称必须合法,否则会出错)
|
# proxy: proxy # 如果不为空则直接将该入站流量交由指定proxy处理(当proxy不为空时,这里的proxy名称必须合法,否则会出错)
|
||||||
network: [tcp, udp]
|
network: [tcp, udp]
|
||||||
target: target.com
|
target: target.com
|
||||||
|
|
||||||
- name: tun-in-1
|
- name: tun-in-1
|
||||||
type: tun
|
type: tun
|
||||||
# rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
|
# rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
|
||||||
# proxy: proxy # 如果不为空则直接将该入站流量交由指定 proxy 处理(当 proxy 不为空时,这里的 proxy 名称必须合法,否则会出错)
|
# proxy: proxy # 如果不为空则直接将该入站流量交由指定proxy处理(当proxy不为空时,这里的proxy名称必须合法,否则会出错)
|
||||||
stack: system # gvisor / lwip
|
stack: system # gvisor / lwip
|
||||||
dns-hijack:
|
dns-hijack:
|
||||||
- 0.0.0.0:53 # 需要劫持的 DNS
|
- 0.0.0.0:53 # 需要劫持的 DNS
|
||||||
@ -966,13 +972,13 @@ listeners:
|
|||||||
## 入口配置
|
## 入口配置
|
||||||
入口配置与 Listener 等价,传入流量将和 socks,mixed 等入口一样按照 mode 所指定的方式进行匹配处理
|
入口配置与 Listener 等价,传入流量将和 socks,mixed 等入口一样按照 mode 所指定的方式进行匹配处理
|
||||||
|
|
||||||
### ss-config:
|
### ss-config
|
||||||
```yaml
|
```yaml
|
||||||
ss: //2022-blake3-aes-256-gcm: vlmpIPSyHH6f4S8WVPdRIHIlzmB+GIRfoH3aNJ/t9Gg=@: 23456
|
ss-config: ss://2022-blake3-aes-256-gcm:vlmpIPSyHH6f4S8WVPdRIHIlzmB+GIRfoH3aNJ/t9Gg=@:23456
|
||||||
```
|
```
|
||||||
### vmess-config:
|
### vmess-config
|
||||||
```yaml
|
```yaml
|
||||||
vmess: //1: 9d0cb9d0-964f-4ef6-897d-6c6b3ccf9e68@: 12345
|
vmess-config: vmess://1:9d0cb9d0-964f-4ef6-897d-6c6b3ccf9e68@:12345
|
||||||
```
|
```
|
||||||
|
|
||||||
### tuic 服务器入口
|
### tuic 服务器入口
|
||||||
|
Reference in New Issue
Block a user