@@ -29,6 +29,7 @@ Features
29
29
* [ Routing control] ( https://docs.ginuerzh.xyz/gost/en/bypass/ )
30
30
* DNS [ resolver] ( https://docs.ginuerzh.xyz/gost/resolver/ ) and [ proxy] ( https://docs.ginuerzh.xyz/gost/dns/ )
31
31
* [ TUN/TAP device] ( https://docs.ginuerzh.xyz/gost/en/tuntap/ )
32
+ * [ Multi-Instance] ( #Multi-Instance )
32
33
33
34
Wiki: < https://docs.ginuerzh.xyz/gost/en/ >
34
35
@@ -419,3 +420,47 @@ gost -L=:8080 -F="http2://:443?ca=ca.pem"
419
420
```
420
421
421
422
Certificate Pinning is contributed by [ @sheerun ] ( https://github.com/sheerun ) .
423
+
424
+ Multi-Instance
425
+ ------
426
+
427
+ Run multiple gost instances with different rules and configuration files by separating each with ` -- `
428
+
429
+ #### Reverse SOCKS5 over SSH tunnel
430
+ ``` bash
431
+ # Server
432
+ gost -L forward+ssh://:2222
433
+
434
+ # Client
435
+ gost -L socks5://127.0.0.1:1111 -- -L rtcp://127.0.0.1:3333/127.0.0.1:1111 -F forward+ssh://< server-ip> :2222
436
+
437
+ # Test from Server
438
+ curl -s -L -x socks5://127.0.0.1:3333 https://example.com
439
+ ```
440
+
441
+ #### Multiple port-forwarding through different proxies
442
+ ``` bash
443
+ gost -- -L tcp://:2222/192.168.1.9:22 -F forward+ssh://172.25.10.3:22 -F forward+ssh://70.9.17.2:22 \
444
+ -- -L tcp://:8080/10.10.10.10:80 -F forward+tls://90.33.2.11:443 \
445
+ -- -L udp://:5353/192.10.16.8:53 -F socks5://189.155.221.25:1080
446
+ ```
447
+
448
+ #### Multiple configuration files
449
+ ``` bash
450
+ gost -C tls.json -- -C hyper-proxy.json -- -C reverse-nc.json -- -C happy-vpn.json
451
+ ```
452
+
453
+ #### A mix of everything
454
+ ``` bash
455
+ gost -L rudp://:5353/192.168.1.1:53? ttl=60s -F socks5://172.24.10.1:1080 -- \
456
+ -C my-proxy.json -- \
457
+ -L redirect://:1234 -F 1.2.3.4:1080 -- \
458
+ -L udp://:5353 -C forward-servers.json -- \
459
+ -L :8080 -F http://localhost:8080? ip=192.168.1.2:8081,192.168.1.3:8082 \
460
+ -F socks5://localhost:1080? ip=172.20.1.1:1080,172.20.1.2:1081 -- \
461
+ -L socks5://localhost:1080 -- \
462
+ -L :2020 -F kcp://10.16.1.10:8388? peer=peer1.txt \
463
+ -F http2://12.20.1.3:443? peer=peer2.txt
464
+ ```
465
+
466
+ Multi-Instance was contributed by [ @caribpa ] ( https://github.com/caribpa ) .
0 commit comments