1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Basic SOCKS5 server examples
# Simple SOCKS5 server (no authentication)
- address: "0.0.0.0:1080"
protocol:
type: socks
# SOCKS5 server with authentication
- address: "0.0.0.0:1081"
protocol:
type: socks
username: "myuser"
password: "mypassword"
# SOCKS5 server with UDP ASSOCIATE enabled (default)
- address: "0.0.0.0:1082"
protocol:
type: socks
udp_enabled: true # This is the default
# SOCKS5 server with UDP disabled (TCP only)
- address: "0.0.0.0:1083"
protocol:
type: socks
udp_enabled: false
# SOCKS5 server with custom routing rules
- address: "0.0.0.0:1084"
protocol:
type: socks
username: "admin"
password: "secure123"
rules:
# Direct connection for local networks
- masks:
action: allow
client_chain:
protocol:
type: direct
# Route everything else through upstream proxy
- masks: "0.0.0.0/0"
action: allow
client_chain:
address: "upstream.proxy.com:8080"
protocol:
type: http
# SOCKS5 chained through another SOCKS5 proxy
- address: "127.0.0.1:1085"
protocol:
type: socks
rules:
- masks: "0.0.0.0/0"
action: allow
client_chain:
address: "127.0.0.1:1080"
protocol:
type: socks