summarylogtreecommitdiffstats
path: root/config.json
blob: 63afbb92c5cb04f149afe74b3774146ca74500e6 (plain)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
    "servers": [
        {
            "name": "socks5",
            "listen": ":1080",
            "protocol": "socks5",
            "listenerFwmark": 52140,
            "enableTCP": true,
            "listenerTFO": true,
            "enableUDP": true,
            "mtu": 1500
        },
        {
            "name": "http",
            "listen": ":8080",
            "protocol": "http",
            "listenerFwmark": 52140,
            "enableTCP": true,
            "listenerTFO": true
        },
        {
            "name": "tunnel",
            "listen": ":53",
            "protocol": "direct",
            "listenerFwmark": 52140,
            "enableTCP": true,
            "listenerTFO": true,
            "enableUDP": true,
            "mtu": 1500,
            "tunnelRemoteAddress": "[2606:4700:4700::1111]:53",
            "tunnelUDPTargetOnly": false
        },
        {
            "name": "ss-2022",
            "listen": ":20220",
            "protocol": "2022-blake3-aes-128-gcm",
            "listenerFwmark": 52140,
            "enableTCP": true,
            "listenerTFO": true,
            "enableUDP": true,
            "mtu": 1500,
            "psk": "qQln3GlVCZi5iJUObJVNCw==",
            "uPSKs": [
                "oE/s2z9Q8EWORAB8B3UCxw=="
            ],
            "paddingPolicy": "",
            "rejectPolicy": ""
        }
    ],
    "clients": [
        {
            "name": "ss-2022-a",
            "endpoint": "[2001:db8:bd63:362c:2071:a0f6:827:ab6a]:20220",
            "protocol": "2022-blake3-aes-128-gcm",
            "dialerFwmark": 52140,
            "enableTCP": true,
            "dialerTFO": true,
            "enableUDP": true,
            "mtu": 1500,
            "psk": "qQln3GlVCZi5iJUObJVNCw==",
            "iPSKs": [
                "oE/s2z9Q8EWORAB8B3UCxw=="
            ],
            "paddingPolicy": ""
        },
        {
            "name": "ss-2022-b",
            "endpoint": "[2001:db8:a2bf:f3ef:903a:4fd1:f986:5934]:20220",
            "protocol": "2022-blake3-aes-128-gcm",
            "dialerFwmark": 52140,
            "enableTCP": true,
            "dialerTFO": true,
            "enableUDP": true,
            "mtu": 1500,
            "psk": "QzhDwx0lKZ+0Sustgwtjtw==",
            "iPSKs": [
                "McxLxNcqHUb01ZedJfp55g=="
            ],
            "paddingPolicy": ""
        },
        {
            "name": "direct",
            "protocol": "direct",
            "dialerFwmark": 52140,
            "enableTCP": true,
            "dialerTFO": true,
            "enableUDP": true,
            "mtu": 1500
        }
    ],
    "dns": [
        {
            "name": "cf-v6",
            "addrPort": "[2606:4700:4700::1111]:53",
            "tcpClientName": "ss-2022-a",
            "udpClientName": "ss-2022-a"
        }
    ],
    "router": {
        "disableNameResolutionForIPRules": false,
        "defaultTCPClientName": "ss-2022-a",
        "defaultUDPClientName": "ss-2022-a",
        "geoLite2CountryDbPath": "Country.mmdb",
        "domainSets": [
            {
                "name": "example",
                "path": "ss-go-example.txt"
            }
        ],
        "routes": [
            {
                "name": "example",
                "network": "udp",
                "clientName": "ss-2022-b",
                "resolverName": "cf-v6",
                "serverNames": [
                    "socks5",
                    "tunnel"
                ],
                "domains": [
                    "example.com"
                ],
                "domainSets": [
                    "example"
                ],
                "prefixes": [
                    "::/0"
                ],
                "sourcePrefixes": [
                    "127.0.0.1/32",
                    "::1/128"
                ],
                "ports": [
                    "443"
                ],
                "sourcePorts": [
                    12345,
                    54321
                ],
                "geoIPCountries": [
                    "US"
                ],
                "invertDomains": false,
                "invertPrefixes": false,
                "invertPorts": false,
                "invertSourcePrefixes": false,
                "invertSourcePorts": false,
                "invertGeoIPCountries": false
            }
        ]
    },
    "udpBatchMode": "",
    "udpBatchSize": 64,
    "udpPreferIPv6": true
}