-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy-new-idea-config-sing-box.txt
332 lines (332 loc) · 8.2 KB
/
my-new-idea-config-sing-box.txt
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
{
"dns": {
"servers": [
{
//Creating your own dns server.
//If there are parameters “IN CDNSKEY”,“IN CDS”,“IN CERT”,“IN DANE”,
//“IN DLV”,“IN DNSKEY”,“IN DS”,“IN HIP”,“IN KEY”,‘IN KX’,‘IN NSEC3’,
//‘IN NSEC3PARAM’,‘IN NXT’,‘IN RRSIG’,‘IN SIG’,‘IN SSHFP’,‘IN TA’,
//‘IN TKEY’,‘IN TLSA’,‘IN TSIG’,“IPSECKEY” then ignore any change
//in the current dns response to avoid getting the dns response
//ignored due to checking the dns response for changes
"address_create": "",
"tcp_support": 1
}
],
"rules": [
{
//add a dns response to the received dns response from the dns server
"add_dns_response": [
"10.254.0.1"
],
//Remove the specified ip from the dns response from the
//received dns response from the dns server
"del_dns_response": [
]
},
{
"dns_response_rules": [
{
//We specify the action when a specific
//DNS response is available
"if_dns_respose": "",
"set_rcode": "",
"add_dns_response": [
"10.254.0.1"
],
"del_dns_response": [
]
}
]
},
{
//Actions in case of unavailability of DNS servers
"unavailability_rules": [
{
"domain": [
"test.com"
],
"domain_suffix": [
".cn"
],
"domain_keyword": [
"test"
],
"set_rcode": "",
"check_status_code": [
"ip": "",
"port": ""
],
"if_status_code": [
],
"other_status_code: [
"set_rcode": "",
"address": "",
"dns_response": [
"10.254.0.1",
"dns_cache"
]
]
"address": "",
"dns_response": [
"10.254.0.1",
"dns_cache"
]
}
]
},
{
//Actions in case of a certain rcode value
"rcode_rules": [
{
"if_rcode": [
],
"domain": [
"test.com"
],
"domain_suffix": [
".cn"
],
"domain_keyword": [
"test"
],
"geosite": [
],
"geoip": [
],
//changing the rcode value
"new_rcode": "",
//We request the response header from
//the specified server for the domain
//to find out the status code and based
//on the status code, further decisions
//will be made about which DNS
//response to issue
"check_status_code": [
"ip": "",
"port": ""
],
//Action for certain status codes
"if_status_code": [
],
//Actions for other status codes
"other_status_code: [
"rcode": "no_change",
"address": "",
"dns_response": [
"10.254.0.1",
"dns_cache"
]
]
"address": "",
"dns_response": [
"10.254.0.1",
"dns_cache"
]
}
]
}
},
"inbounds": [
{
"type": "wifi",
"tag": "wifi",
"ssid": "My Network",
"password": [
"password1","password2"
],
"type_security": "wpa2",
//The IP range in which devices will be assigned
"ip_cidr": [
192.168.1.1/24","10.0.0.1/24"
],
"bind_interface": "en0",
"max_clients": "",
"timeout_connection": "",
"set_domain_clients": "",
//https://en.wikipedia.org/wiki/Captive_portal
"captive_portal": [
"server_ip": "",
"server_port": "",
"server_domain": "",
"captive_portal_ip": "",
"captive_portal_port": "",
"captive_portal_domain": ""
],
"allow protocols": [
"tcp","udp","igmp","dns","bittorrent","ssh","rdp","ftp","https","http","quic"
],
"block_protocols": [
]
},
{
"type": "tun",
//Virtual adapter driver "windscribe" or "wiregward"
//or "tap_openvpn" or "sing_tun" or "vmware" or "virtualbox"
"driver": "Windscribe"
"allow protocols": [
"tcp","udp","igmp"
],
"block_protocols": [
]
}
],
"outbounds": [
{
"type": "teredo",
"tag": "teredo",
"server": [
"teredo.iks-jena.de","teredo.remlab.net"
],
"bind_interface": "en0"
},
{
"type": "l2tp",
"tag": "l2tp",
"server": "public-vpn-119.opengw.net",
"username": "vpn",
"password": "vpn",
"static_route": [
{
"ip": "",
"netmask": "",
"gateway": "",
}
],
"allow protocols": [
"tcp","udp","igmp"
],
"block_protocols": [
],
"bind_interface": "en0"
},
{
"type": "pptp",
},
{
"type": "sstp",
},
{
"type": "ikev2",
},
{
"type": "ms-sstp",
"tag": "ms-sstp",
"server": "public-vpn-119.opengw.net",
"username": "vpn",
"password": "vpn",
"bind_interface": "en0"
},
{
"type": "openvpn",
"tag": "openvpn",
"path": "D:\myconfig.ovpn",
"download_url": "",
"bind_interface": "en0"
},
{
"type": "subscriptions",
"tag": "v2ray-configs-proxy-list",
"path": "D:\mylist.txt",
"download_url": [
"",""
],
"update_frequency": "86400
",
//Search for available ports in case of blocked access
//to the Internet by government/provider whitelisting of ports.
"check_ports": 1,
//Redirect all internet traffic to a proxy running on an unblocked port
"proxy_port": 1,
"bind_interface": "en0"
},
{
"type": "warp",
"tag": "warp"
},
{
"type": "direct",
//Attempt to prevent blocking of Internet connection
//using GoodByeDPI application technology
"goodbyedpi": 1,
//Mini-antivirus to scan Internet traffic for viruses
//in real time without slowing down the Internet connection
"antivirus": 1,
//https://en.wikipedia.org/wiki/Intrusion_detection_system
"ips_protection": 1
"speed_download_limit": "",
"speed_upload_limit": "",
"latency": ""
},
{
"type": "juicity"
"tag": "juicity"
"uuid": "",
"password": "",
"ip": "",
"port": "",
"congestion_control": "bbr",
"sni": "",
"allow_insecure": 0,
"pinned_certchain_sha256": ""
},
{
//DNS proxy tunnel
"type": "dnstt"
},
{
"type": "multiwan",
"tag": "multiwan",
"bind_interface": [
"en0","en1"
"allow protocols": [
"tcp","udp","igmp"
],
"block_protocols": [
]
},
{
"type": "pac_file",
"tag": "pac_file",
"path": "",
"download_url": "",
"update_frequency": "86400",
}
],
"route": {
"static_route": [
{
"ip": "",
"netmask": "",
"gateway": "",
"bind_interface": ""
}
]
},
//Modification of http connection to sites
"http_mod": [
{
"tag": "",
"if_status_code": "",
"new_status_code": "",
//analog function replace
"path_file": "",
//redirect via response headers
"location": "",
//Immediately getting the content from
//the link with the location (redirect)
//value from the response header without
//getting the response header with the
//location parameter for the client
"hide_redirect": "",
//The same as in Nginx, but only the
//links in html and css that are
//specified in proxy_pass will be
//replaced with the requested site page
"proxy_pass": "",
"replace": [
],
"outbound": ""
}
]
}