|
1 | 1 | // Configs here can not contain "bypassing sanctions" contents (inappropriate on US GitHub)
|
2 | 2 | // Please join the official Xray Iranian group https://t.me/projectXhttp to get the whole working configs
|
3 | 3 |
|
4 |
| -// Serverless for Iran v4 |
5 |
| -// Xray-core v25.2.21+ |
6 |
| - |
7 |
| -// Bypass censorship using TCP/TLS fragment and UDP noises. |
8 |
| -// It doesn't change your local IP, so it is not suitable for anonymity. |
9 | 4 |
|
10 | 5 | {
|
| 6 | + "remarks": "Serverless-v5", |
| 7 | + |
| 8 | + "version": { |
| 9 | + "min": "25.9.5" |
| 10 | + }, |
| 11 | + |
11 | 12 | "log": {
|
12 | 13 | "loglevel": "warning", "dnsLog": false, "access": "none"
|
13 | 14 | },
|
14 | 15 |
|
| 16 | + "policy": { |
| 17 | + "levels": { |
| 18 | + "0": { |
| 19 | + "uplinkOnly": 0, |
| 20 | + "downlinkOnly": 0 |
| 21 | + } |
| 22 | + } |
| 23 | + }, |
| 24 | + |
15 | 25 | "dns":{
|
16 | 26 | "hosts": {
|
17 |
| - "geosite:category-ads-all": ["10.10.34.36", "2001:4188:2:600:10:10:34:36"], |
18 |
| - "dns.cloudflare.com": "cloudflare.com" |
| 27 | + "geosite:category-ads-all": "#3", |
| 28 | + "one.one.one.one": ["1.1.1.1", "1.0.0.1", "2606:4700:4700::1111", "2606:4700:4700::1001"], |
| 29 | + "cloudflare-dns.com": "www.cloudflare.com" |
19 | 30 | },
|
20 | 31 | "servers": [
|
21 |
| - "https://dns.cloudflare.com/dns-query", |
22 |
| - {"address": "localhost", "domains": ["geosite:private", "geosite:category-ir", "full:cloudflare.com"]} |
| 32 | + { |
| 33 | + "address": "fakedns", |
| 34 | + "domains": ["domain:ir", "geosite:private", "geosite:category-ir", "full:www.cloudflare.com"], |
| 35 | + "finalQuery": true |
| 36 | + }, |
| 37 | + { |
| 38 | + "tag": "no-filter-dns", |
| 39 | + "address": "https://cloudflare-dns.com/dns-query", |
| 40 | + "timeoutMs": 5000, |
| 41 | + "finalQuery": true |
| 42 | + }, |
| 43 | + { |
| 44 | + "address": "localhost", |
| 45 | + "domains": ["domain:ir", "geosite:private", "geosite:category-ir", "full:www.cloudflare.com"], |
| 46 | + "finalQuery": true |
| 47 | + } |
23 | 48 | ],
|
24 |
| - "tag": "dns-query", |
25 |
| - "disableFallback": true |
| 49 | + "queryStrategy": "UseSystem", |
| 50 | + "useSystemHosts": true |
26 | 51 | },
|
27 |
| - |
| 52 | + |
28 | 53 | "inbounds": [
|
29 | 54 | {
|
30 | 55 | "tag": "dns-in",
|
| 56 | + "listen": "127.0.0.1", |
31 | 57 | "port": 10853,
|
32 |
| - "protocol": "dokodemo-door", |
| 58 | + "protocol": "tunnel", |
33 | 59 | "settings": {
|
34 |
| - "address": "1.1.1.1", |
| 60 | + "address": "one.one.one.one", |
35 | 61 | "port": 53,
|
36 |
| - "network": "tcp,udp" |
37 |
| - } |
| 62 | + "network": "tcp,udp" |
| 63 | + }, |
| 64 | + "streamSettings": { |
| 65 | + "sockopt": { |
| 66 | + "tcpKeepAliveInterval": 1, |
| 67 | + "tcpKeepAliveIdle": 46 |
| 68 | + } |
| 69 | + } |
38 | 70 | },
|
39 | 71 | {
|
40 | 72 | "tag": "socks-in",
|
| 73 | + "listen": "127.0.0.1", |
41 | 74 | "port": 10808,
|
42 |
| - "protocol": "socks", |
| 75 | + "protocol": "mixed", |
43 | 76 | "sniffing": {
|
44 | 77 | "enabled": true,
|
45 |
| - "destOverride": ["http", "tls"], |
| 78 | + "destOverride": ["fakedns"], |
46 | 79 | "routeOnly": false
|
47 | 80 | },
|
48 |
| - "settings": {"udp": true} |
49 |
| - } |
| 81 | + "settings": { |
| 82 | + "udp": true, |
| 83 | + "ip": "127.0.0.1" |
| 84 | + }, |
| 85 | + "streamSettings": { |
| 86 | + "sockopt": { |
| 87 | + "tcpKeepAliveInterval": 1, |
| 88 | + "tcpKeepAliveIdle": 46 |
| 89 | + } |
| 90 | + } |
| 91 | + } |
50 | 92 | ],
|
51 | 93 |
|
52 |
| - "outbounds": [ |
| 94 | + "outbounds": [ |
53 | 95 | {
|
54 |
| - "tag": "block", |
55 |
| - "protocol": "blackhole" |
| 96 | + "tag": "block-out", |
| 97 | + "protocol": "block" |
56 | 98 | },
|
57 | 99 | {
|
58 |
| - "tag": "direct", |
59 |
| - "protocol": "freedom", |
60 |
| - "settings": {"domainStrategy": "ForceIP"} |
61 |
| - }, |
| 100 | + "tag": "direct-out", |
| 101 | + "protocol": "direct", |
| 102 | + "streamSettings": { |
| 103 | + "sockopt": { |
| 104 | + "domainStrategy": "ForceIP", |
| 105 | + "happyEyeballs": { |
| 106 | + "tryDelayMs": 100, |
| 107 | + "prioritizeIPv6": true, |
| 108 | + "interleave": 2, |
| 109 | + "maxConcurrentTry": 16 |
| 110 | + } |
| 111 | + } |
| 112 | + } |
| 113 | + }, |
62 | 114 | {
|
63 | 115 | "tag": "dns-out",
|
64 |
| - "protocol": "dns", |
65 |
| - "settings": {"nonIPQuery": "skip", "network": "tcp", "address": "1.1.1.1", "port": 53}, |
| 116 | + "protocol": "dns", |
| 117 | + "settings": {"nonIPQuery": "skip", "network": "tcp", "address": "one.one.one.one", "port": 53}, |
66 | 118 | "streamSettings": {
|
67 | 119 | "sockopt": {
|
68 |
| - "dialerProxy": "chain1-fragment" |
| 120 | + "dialerProxy": "full-fragment" |
69 | 121 | }
|
70 | 122 | }
|
71 | 123 | },
|
72 | 124 | {
|
73 |
| - "tag": "super-fragment", |
74 |
| - "protocol": "freedom", |
| 125 | + "tag": "skip-fragment", |
| 126 | + "protocol": "direct", |
75 | 127 | "settings": {
|
76 | 128 | "fragment": {
|
77 |
| - "packets": "tlshello", |
78 |
| - "length": "6", |
79 |
| - "interval": "0" |
| 129 | + "packets": "1-1", |
| 130 | + "length": "130", |
| 131 | + "interval": "260", |
| 132 | + "maxSplit": "4" |
80 | 133 | }
|
81 | 134 | },
|
82 | 135 | "streamSettings": {
|
83 | 136 | "sockopt": {
|
84 |
| - "dialerProxy": "chain1-fragment" |
| 137 | + "dialerProxy": "_chain-skip" |
85 | 138 | }
|
86 |
| - } |
| 139 | + } |
87 | 140 | },
|
88 | 141 | {
|
89 |
| - "tag": "chain1-fragment", |
90 |
| - "protocol": "freedom", |
| 142 | + "tag": "_chain-skip", |
| 143 | + "protocol": "direct", |
91 | 144 | "settings": {
|
92 | 145 | "fragment": {
|
93 |
| - "packets": "1-3", |
94 |
| - "length": "517", |
95 |
| - "interval": "1" |
| 146 | + "packets": "2-4", |
| 147 | + "length": "1", |
| 148 | + "interval": "2", |
| 149 | + "maxSplit": "130" |
96 | 150 | }
|
97 | 151 | },
|
98 | 152 | "streamSettings": {
|
99 | 153 | "sockopt": {
|
100 |
| - "dialerProxy": "chain2-fragment" |
| 154 | + "domainStrategy": "ForceIP", |
| 155 | + "happyEyeballs": { |
| 156 | + "tryDelayMs": 300, |
| 157 | + "prioritizeIPv6": true, |
| 158 | + "interleave": 2, |
| 159 | + "maxConcurrentTry": 16 |
| 160 | + } |
101 | 161 | }
|
102 |
| - } |
103 |
| - }, |
| 162 | + } |
| 163 | + }, |
104 | 164 | {
|
105 |
| - "tag": "chain2-fragment", |
106 |
| - "protocol": "freedom", |
| 165 | + "tag": "full-fragment", |
| 166 | + "protocol": "direct", |
107 | 167 | "settings": {
|
108 |
| - "domainStrategy": "ForceIP", |
109 | 168 | "fragment": {
|
110 | 169 | "packets": "1-1",
|
111 | 170 | "length": "1",
|
112 |
| - "interval": "2" |
| 171 | + "interval": "2", |
| 172 | + "maxSplit": "517" |
| 173 | + } |
| 174 | + }, |
| 175 | + "streamSettings": { |
| 176 | + "sockopt": { |
| 177 | + "domainStrategy": "ForceIP", |
| 178 | + "happyEyeballs": { |
| 179 | + "tryDelayMs": 300, |
| 180 | + "prioritizeIPv6": true, |
| 181 | + "interleave": 2, |
| 182 | + "maxConcurrentTry": 16 |
| 183 | + } |
113 | 184 | }
|
114 | 185 | }
|
115 | 186 | },
|
116 | 187 | {
|
117 |
| - "tag": "udp-noisesv4", |
118 |
| - "protocol": "freedom", |
| 188 | + "tag": "udp-noises", |
| 189 | + "protocol": "direct", |
119 | 190 | "settings": {
|
120 |
| - "domainStrategy": "ForceIPv4", |
| 191 | + "targetStrategy": "ForceIP", // or "ForceIPv6v4" to prefer IPv6 |
121 | 192 | "noises": [
|
122 |
| - {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, |
123 |
| - {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, |
124 |
| - {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, |
125 |
| - {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, |
126 |
| - {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, |
127 |
| - {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, |
128 |
| - {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, |
129 |
| - {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, |
130 |
| - {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, |
131 |
| - {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, |
132 |
| - {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, |
133 |
| - {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"} |
| 193 | + {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, |
| 194 | + {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, |
| 195 | + {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, |
| 196 | + {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, |
| 197 | + {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, |
| 198 | + {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, |
| 199 | + {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, |
| 200 | + {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, |
| 201 | + {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, |
| 202 | + {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, |
| 203 | + {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, |
| 204 | + {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, {"type": "rand", "packet": "1250", "delay": "10", "applyTo": "ipv4"}, |
| 205 | + {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, |
| 206 | + {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, |
| 207 | + {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, |
| 208 | + {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, |
| 209 | + {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, |
| 210 | + {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, |
| 211 | + {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, |
| 212 | + {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, |
| 213 | + {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, |
| 214 | + {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, |
| 215 | + {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, |
| 216 | + {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"}, {"type": "rand", "packet": "1230", "delay": "10", "applyTo": "ipv6"} |
134 | 217 | ]
|
135 |
| - } |
136 |
| - }, |
137 |
| - { |
138 |
| - "tag": "udp-noisesv6", |
139 |
| - "protocol": "freedom", |
140 |
| - "settings": { |
141 |
| - "domainStrategy": "ForceIPv6", |
142 |
| - "noises": [ |
143 |
| - {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, |
144 |
| - {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, |
145 |
| - {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, |
146 |
| - {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, |
147 |
| - {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, |
148 |
| - {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, |
149 |
| - {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, |
150 |
| - {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, |
151 |
| - {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, |
152 |
| - {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, |
153 |
| - {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, |
154 |
| - {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"} |
155 |
| - ] |
156 |
| - } |
157 |
| - } |
| 218 | + } |
| 219 | + } |
158 | 220 | ],
|
159 | 221 |
|
160 | 222 | "routing": {
|
161 | 223 | "domainStrategy": "IPOnDemand",
|
162 |
| - "rules": [ |
| 224 | + "rules": [ |
| 225 | + {"outboundTag": "block-out", |
| 226 | + "domain": ["geosite:category-ads-all"] |
| 227 | + }, |
163 | 228 | {"outboundTag": "dns-out",
|
164 |
| - "inboundTag": ["dns-in"] |
| 229 | + "inboundTag": ["dns-in"] |
165 | 230 | },
|
166 | 231 | {"outboundTag": "dns-out",
|
167 |
| - "inboundTag": ["socks-in"], "port": 53 |
168 |
| - }, |
169 |
| - {"outboundTag": "chain1-fragment", // or "super-fragment" |
170 |
| - "inboundTag": ["dns-query"] |
171 |
| - }, |
172 |
| - {"outboundTag": "block", |
173 |
| - "domain": ["geosite:category-ads-all"] |
174 |
| - }, |
175 |
| - {"outboundTag": "block", |
176 |
| - "ip": ["10.10.34.0/24", "2001:4188:2:600:10:10:34:36", "2001:4188:2:600:10:10:34:35", "2001:4188:2:600:10:10:34:34"] |
177 |
| - }, |
178 |
| - {"outboundTag": "direct", |
179 |
| - "domain": ["geosite:private", "geosite:category-ir"] |
180 |
| - }, |
181 |
| - {"outboundTag": "direct", |
182 |
| - "ip": ["geoip:private", "geoip:ir"] |
183 |
| - }, |
184 |
| - {"outboundTag": "udp-noisesv4", |
185 |
| - "network": "udp", "ip": ["0.0.0.0/0"], "port": 443 |
186 |
| - }, |
187 |
| - {"outboundTag": "udp-noisesv6", |
188 |
| - "network": "udp", "ip": ["::/0"], "port": 443 |
189 |
| - }, |
190 |
| - {"outboundTag": "direct", |
191 |
| - "network": "udp" |
192 |
| - }, |
193 |
| - {"outboundTag": "chain1-fragment", // or "super-fragment" |
194 |
| - "network": "tcp" |
| 232 | + "inboundTag": ["socks-in"], "port": 53 |
| 233 | + }, |
| 234 | + {"outboundTag": "full-fragment", // or "skip-fragment" |
| 235 | + "inboundTag": ["no-filter-dns"] |
| 236 | + }, |
| 237 | + {"outboundTag": "block-out", |
| 238 | + "ip": ["0.0.0.0", "::"] |
| 239 | + }, |
| 240 | + {"outboundTag": "direct-out", |
| 241 | + "domain": ["domain:ir", "geosite:private", "geosite:category-ir"] |
| 242 | + }, |
| 243 | + {"outboundTag": "direct-out", |
| 244 | + "ip": ["geoip:private", "geoip:ir"] |
| 245 | + }, |
| 246 | + {"outboundTag": "udp-noises", |
| 247 | + "network": "udp", "protocol": ["quic"] |
| 248 | + }, |
| 249 | + {"outboundTag": "udp-noises", |
| 250 | + "network": "udp", "port": "443,2053,2083,2087,2096,8443" |
| 251 | + }, |
| 252 | + {"outboundTag": "direct-out", |
| 253 | + "network": "udp" |
| 254 | + }, |
| 255 | + {"outboundTag": "full-fragment", // or "skip-fragment" |
| 256 | + "network": "tcp", "protocol": ["tls"] |
| 257 | + }, |
| 258 | + {"outboundTag": "full-fragment", // or "skip-fragment" |
| 259 | + "network": "tcp", "port": "443,2053,2083,2087,2096,8443" |
| 260 | + }, |
| 261 | + {"outboundTag": "full-fragment", |
| 262 | + "network": "tcp", "protocol": ["http"] |
| 263 | + }, |
| 264 | + {"outboundTag": "full-fragment", |
| 265 | + "network": "tcp", "port": "80,8080,8880,2052,2082,2086,2095" |
| 266 | + }, |
| 267 | + {"outboundTag": "full-fragment", |
| 268 | + "network": "tcp" |
195 | 269 | }
|
196 | 270 | ]
|
197 | 271 | }
|
|
0 commit comments