在家办公 SOHO
在家轻松访问学校、办公室网络!
说明:
1A:内网设备比如padavan路由器、可以是在公司的或者是在学校的
2B:vps建议使用国内的 国外慢(vmess mkcp)
3C:一切想要用A网络的设备(安装好v2ray客户端 )
提供两套配置方案 vmess 或者 mkcp
下面一套使用的是vmess协议
内网配置 A.json
1{
2 "reverse": {
3 "bridges": [
4 {
5 "tag": "bridge",
6 "domain": "lll.lll.com"
7 }
8 ]
9 },
10 "outbounds": [
11 {
12 "tag": "tunnel",
13 "protocol": "vmess",
14 "settings": {
15 "vnext": [
16 {
17 "address": "8.9.30.228", // 反向代理 vps ip地址
18 "port": 16823,
19 "users": [
20 {
21 "id": "b831381d-6324-4d53-ad4f-8cda48b30811",
22 "alterId": 64
23 }
24 ]
25 }
26 ]
27 }
28 },
29 {
30 "protocol": "freedom",
31 "settings": {},
32 "tag": "out"
33 }
34 ],
35 "routing": {
36 "rules": [
37 {
38 "type": "field",
39 "inboundTag": [
40 "bridge"
41 ],
42 "domain": [
43 "full:lll.lll.com"
44 ],
45 "outboundTag": "tunnel"
46 },
47 {
48 "type": "field",
49 "inboundTag": [
50 "bridge"
51 ],
52 "outboundTag": "out"
53 }
54 ]
55 }
56}
57
配置B.json
1{
2 "reverse": {
3 "portals": [
4 {
5 "tag": "portal",
6 "domain": "lll.lll.com"
7 }
8 ]
9 },
10 "inbounds": [
11 {
12 "tag": "tunnel",
13 "port": 11872,
14 "protocol": "vmess",
15 "settings": {
16 "clients": [
17 {
18 "id": "a26efdb8-ef34-4278-a4e6-2af32cc010aa",
19 "alterId": 64
20 }
21 ]
22 }
23 },
24 {
25 "tag": "interconn", // 反向代理 vps vmess tcp协议 配置
26 "port": 16823,
27 "protocol": "vmess",
28 "settings": {
29 "clients": [
30 {
31 "id": "b831381d-6324-4d53-ad4f-8cda48b30811",
32 "alterId": 64
33 }
34 ]
35 }
36 }
37 ],
38 "routing": {
39 "rules": [
40 {
41 "type": "field",
42 "inboundTag": [
43 "external"
44 ],
45 "outboundTag": "portal"
46 },
47 {
48 "type": "field",
49 "inboundTag": [
50 "tunnel"
51 ],
52 "domain": [
53 "full:lll.lll.com"
54 ],
55 "outboundTag": "portal"
56 }
57 ]
58 }
59}
60
配置C.json
1直接上客户端
2注意 选择 全局代理 模式
3vmess
4tcp
5"port": 11872,
6"id": "a26efdb8-ef34-4278-a4e6-2af32cc010aa",
下面一套是 mkcp
配置A.json
1{
2 "reverse": {
3 "bridges": [
4 {
5 "tag": "bridge",
6 "domain": "lll.lll.com"
7 }
8 ]
9 },
10 "outbounds": [
11 {
12 "tag": "tunnel",
13 "protocol": "vmess",
14 "settings": {
15 "vnext": [
16 {
17 "address": "8.9.30.228", // 反向代理 vps ip地址
18 "port": 16823,
19 "users": [
20 {
21 "id": "b831381d-6324-4d53-ad4f-8cda48b30811",
22 "alterId": 64
23 }
24 ]
25 }
26 ]
27 },
28 "streamSettings": {
29 "network": "mkcp",
30 "kcpSettings": {
31 "uplinkCapacity": 5,
32 "downlinkCapacity": 100,
33 "congestion": true,
34 "header": {
35 "type": "none"
36 }
37 }
38 }
39 },
40 {
41 "protocol": "freedom",
42 "settings": {},
43 "tag": "out"
44 }
45 ],
46 "routing": {
47 "rules": [
48 {
49 "type": "field",
50 "inboundTag": [
51 "bridge"
52 ],
53 "domain": [
54 "full:lll.lll.com"
55 ],
56 "outboundTag": "tunnel"
57 },
58 {
59 "type": "field",
60 "inboundTag": [
61 "bridge"
62 ],
63 "outboundTag": "out"
64 }
65 ]
66 }
67}
68
69
配置B.json
1{
2 "reverse": {
3 "portals": [
4 {
5 "tag": "portal",
6 "domain": "lll.lll.com"
7 }
8 ]
9 },
10 "inbounds": [
11 {
12 "tag": "tunnel",
13 "port": 11872,
14 "protocol": "vmess",
15 "settings": {
16 "clients": [
17 {
18 "id": "a26efdb8-ef34-4278-a4e6-2af32cc010aa",
19 "alterId": 64
20 }
21 ]
22 },
23 "streamSettings": {
24 "network": "mkcp",
25 "kcpSettings": {
26 "uplinkCapacity": 5,
27 "downlinkCapacity": 100,
28 "congestion": true,
29 "header": {
30 "type": "none"
31 }
32 }
33 }
34 },
35 {
36 "tag": "interconn", // 反向代理 vps mkcp协议 配置
37 "protocol": "vmess",
38 "port": 16823,
39 "settings": {
40 "clients": [
41 {
42 "id": "b831381d-6324-4d53-ad4f-8cda48b30811",
43 "alterId": 64
44 }
45 ]
46 },
47 "streamSettings": {
48 "network": "mkcp",
49 "kcpSettings": {
50 "uplinkCapacity": 5,
51 "downlinkCapacity": 100,
52 "congestion": true,
53 "header": {
54 "type": "none"
55 }
56 }
57 }
58 }
59 ],
60 "routing": {
61 "rules": [
62 {
63 "type": "field",
64 "inboundTag": [
65 "external"
66 ],
67 "outboundTag": "portal"
68 },
69 {
70 "type": "field",
71 "inboundTag": [
72 "tunnel"
73 ],
74 "domain": [
75 "full:lll.lll.com"
76 ],
77 "outboundTag": "portal"
78 }
79 ]
80 }
81}
82
83
配置C
1v2ray 客户端 全局模式
2iOS kitsunebi 代理 (删除 exceluded route)
3
4vmess
5mkcp
6"port": 11872,
7"id": "a26efdb8-ef34-4278-a4e6-2af32cc010aa",
8
9
方案三 A+bridge+padavan+kcp透明代理 A.json
1{
2 "reverse": {
3 "bridges": [
4 {
5 "tag": "bridge",
6 "domain": "lll.lll.com"
7 }
8 ]
9 },
10 "inbounds": [
11 {
12 "port": "1099",
13 "protocol": "dokodemo-door",
14 "settings": {
15 "network": "tcp,udp",
16 "timeout": 0,
17 "followRedirect": true
18 }
19 },
20 {
21 "port": 10808,
22 "listen": "127.0.0.1",
23 "protocol": "socks",
24 "sniffing": {
25 "enabled": true,
26 "destOverride": [
27 "http",
28 "tls"
29 ]
30 },
31 "settings": {
32 "auth": "noauth",
33 "udp": false,
34 "ip": null,
35 "clients": null
36 },
37 "streamSettings": null
38 }
39 ],
40 "outbounds": [
41 {
42 "tag": "proxy",
43 "protocol": "vmess",
44 "settings": {
45 "vnext": [
46 {
47 "address": "107.191.40.187", //ip地址 一台mkcp的
48 "port": 14609,
49 "users": [
50 {
51 "id": "bf77d969-9235-5157-8b58-39863ec10255",// 一台mkcp的uuid
52 "alterId": 888,
53 "email": "t@t.tt",
54 "security": "auto"
55 }
56 ]
57 }
58 ],
59 "servers": null,
60 "response": null
61 },
62 "streamSettings": {
63 "network": "kcp",
64 "kcpSettings": {
65 "mtu": 1350,
66 "tti": 50,
67 "uplinkCapacity": 100,
68 "downlinkCapacity": 100,
69 "congestion": false,
70 "readBufferSize": 2,
71 "writeBufferSize": 2,
72 "header": {
73 "type": "none"
74 }
75 }
76 }
77 },
78 {
79 "tag": "direct",
80 "protocol": "freedom"
81 },
82 {
83 "tag": "tunnel",
84 "protocol": "vmess",
85 "settings": {
86 "vnext": [
87 {
88 "address": "8.9.30.228", // 反向代理 vps ip地址
89 "port": 16823,
90 "users": [
91 {
92 "id": "b831381d-6324-4d53-ad4f-8cda48b30811",
93 "alterId": 64
94 }
95 ]
96 }
97 ]
98 },
99 "streamSettings": {
100 "network": "mkcp",
101 "kcpSettings": {
102 "uplinkCapacity": 5,
103 "downlinkCapacity": 100,
104 "congestion": true,
105 "header": {
106 "type": "none"
107 }
108 }
109 }
110 },
111 {
112 "protocol": "freedom",
113 "settings": {},
114 "tag": "out"
115 }
116 ],
117 "routing": {
118 "rules": [
119 {
120 "type": "field",
121 "port": null,
122 "outboundTag": "proxy",
123 "ip": null,
124 "domain": [
125 "geosite:google",
126 "geosite:github",
127 "geosite:netflix",
128 "geosite:steam",
129 "geosite:telegram",
130 "geosite:tumblr",
131 "geosite:speedtest",
132 "geosite:bbc",
133 "domain:gvt1.com",
134 "domain:textnow.com",
135 "domain:twitch.tv",
136 "domain:wikileaks.org",
137 "domain:naver.com"
138 ]
139 },
140 {
141 "type": "field",
142 "port": null,
143 "outboundTag": "proxy",
144 "ip": [
145 "91.108.4.0/22",
146 "91.108.8.0/22",
147 "91.108.12.0/22",
148 "91.108.20.0/22",
149 "91.108.36.0/23",
150 "91.108.38.0/23",
151 "91.108.56.0/22",
152 "149.154.160.0/20",
153 "149.154.164.0/22",
154 "149.154.172.0/22",
155 "74.125.0.0/16",
156 "173.194.0.0/16",
157 "172.217.0.0/16",
158 "216.58.200.0/24",
159 "216.58.220.0/24"
160 ],
161 "domain": null
162 },
163 {
164 "type": "field",
165 "port": null,
166 "outboundTag": "direct",
167 "ip": null,
168 "domain": [
169 "domain:12306.com",
170 "domain:51ym.me",
171 "domain:52pojie.cn",
172 "domain:8686c.com",
173 "domain:abercrombie.com",
174 "domain:adobesc.com",
175 "domain:air-matters.com",
176 "domain:air-matters.io",
177 "domain:airtable.com",
178 "domain:akadns.net",
179 "domain:apache.org",
180 "domain:api.crisp.chat",
181 "domain:api.termius.com",
182 "domain:appshike.com",
183 "domain:appstore.com",
184 "domain:aweme.snssdk.com",
185 "domain:bababian.com",
186 "domain:battle.net",
187 "domain:beatsbydre.com",
188 "domain:bet365.com",
189 "domain:bilibili.cn",
190 "domain:ccgslb.com",
191 "domain:ccgslb.net",
192 "domain:chunbo.com",
193 "domain:chunboimg.com",
194 "domain:clashroyaleapp.com",
195 "domain:cloudsigma.com",
196 "domain:cloudxns.net",
197 "domain:cmfu.com",
198 "domain:culturedcode.com",
199 "domain:dct-cloud.com",
200 "domain:didialift.com",
201 "domain:douyutv.com",
202 "domain:duokan.com",
203 "domain:dytt8.net",
204 "domain:easou.com",
205 "domain:ecitic.net",
206 "domain:eclipse.org",
207 "domain:eudic.net",
208 "domain:ewqcxz.com",
209 "domain:fir.im",
210 "domain:frdic.com",
211 "domain:fresh-ideas.cc",
212 "domain:godic.net",
213 "domain:goodread.com",
214 "domain:haibian.com",
215 "domain:hdslb.net",
216 "domain:hollisterco.com",
217 "domain:hongxiu.com",
218 "domain:hxcdn.net",
219 "domain:images.unsplash.com",
220 "domain:img4me.com",
221 "domain:ipify.org",
222 "domain:ixdzs.com",
223 "domain:jd.hk",
224 "domain:jianshuapi.com",
225 "domain:jomodns.com",
226 "domain:jsboxbbs.com",
227 "domain:knewone.com",
228 "domain:kuaidi100.com",
229 "domain:lemicp.com",
230 "domain:letvcloud.com",
231 "domain:lizhi.io",
232 "domain:localizecdn.com",
233 "domain:lucifr.com",
234 "domain:luoo.net",
235 "domain:mai.tn",
236 "domain:maven.org",
237 "domain:miwifi.com",
238 "domain:moji.com",
239 "domain:moke.com",
240 "domain:mtalk.google.com",
241 "domain:mxhichina.com",
242 "domain:myqcloud.com",
243 "domain:myunlu.com",
244 "domain:netease.com",
245 "domain:nfoservers.com",
246 "domain:nssurge.com",
247 "domain:nuomi.com",
248 "domain:ourdvs.com",
249 "domain:overcast.fm",
250 "domain:paypal.com",
251 "domain:paypalobjects.com",
252 "domain:pgyer.com",
253 "domain:qdaily.com",
254 "domain:qdmm.com",
255 "domain:qin.io",
256 "domain:qingmang.me",
257 "domain:qingmang.mobi",
258 "domain:qqurl.com",
259 "domain:rarbg.to",
260 "domain:rrmj.tv",
261 "domain:ruguoapp.com",
262 "domain:sm.ms",
263 "domain:snwx.com",
264 "domain:soku.com",
265 "domain:startssl.com",
266 "domain:store.steampowered.com",
267 "domain:symcd.com",
268 "domain:teamviewer.com",
269 "domain:tmzvps.com",
270 "domain:trello.com",
271 "domain:trellocdn.com",
272 "domain:ttmeiju.com",
273 "domain:udache.com",
274 "domain:uxengine.net",
275 "domain:weather.bjango.com",
276 "domain:weather.com",
277 "domain:webqxs.com",
278 "domain:weico.cc",
279 "domain:wenku8.net",
280 "domain:werewolf.53site.com",
281 "domain:windowsupdate.com",
282 "domain:wkcdn.com",
283 "domain:workflowy.com",
284 "domain:xdrig.com",
285 "domain:xiaojukeji.com",
286 "domain:xiaomi.net",
287 "domain:xiaomicp.com",
288 "domain:ximalaya.com",
289 "domain:xitek.com",
290 "domain:xmcdn.com",
291 "domain:xslb.net",
292 "domain:xteko.com",
293 "domain:yach.me",
294 "domain:yixia.com",
295 "domain:yunjiasu-cdn.net",
296 "domain:zealer.com",
297 "domain:zgslb.net",
298 "domain:zimuzu.tv",
299 "domain:zmz002.com",
300 "domain:samsungdm.com"
301 ]
302 },
303 {
304 "type": "field",
305 "port": null,
306 "outboundTag": "direct",
307 "ip": [
308 "geoip:private"
309 ],
310 "domain": null
311 },
312 {
313 "type": "field",
314 "port": null,
315 "outboundTag": "direct",
316 "ip": [
317 "geoip:cn"
318 ],
319 "domain": null
320 },
321 {
322 "type": "field",
323 "port": null,
324 "outboundTag": "direct",
325 "ip": null,
326 "domain": [
327 "geosite:cn"
328 ]
329 },
330 {
331 "type": "field",
332 "inboundTag": [
333 "bridge"
334 ],
335 "domain": [
336 "full:lll.lll.com"
337 ],
338 "outboundTag": "tunnel"
339 },
340 {
341 "type": "field",
342 "inboundTag": [
343 "bridge"
344 ],
345 "outboundTag": "out"
346 }
347 ]
348 }
349}
350