Skip to content

Commit a7f9bbe

Browse files
author
Carlos Ibáñez
committed
[README_en] Add Multi-Instance (-- flag) explanation and examples
1 parent 7e5358b commit a7f9bbe

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

README_en.md

+45
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Features
2828
* [Routing control](https://v2.gost.run/en/bypass/)
2929
* DNS [resolver](https://v2.gost.run/resolver/) and [proxy](https://v2.gost.run/dns/)
3030
* [TUN/TAP device](https://v2.gost.run/en/tuntap/)
31+
* [Multi-Instance](#Multi-Instance)
3132

3233
Wiki: [v2.gost.run](https://v2.gost.run/en/)
3334

@@ -418,3 +419,47 @@ gost -L=:8080 -F="http2://:443?ca=ca.pem"
418419
```
419420

420421
Certificate Pinning is contributed by [@sheerun](https://github.com/sheerun).
422+
423+
Multi-Instance
424+
------
425+
426+
Run multiple gost instances with different rules and configuration files by separating each with `--`
427+
428+
#### Reverse SOCKS5 over SSH tunnel
429+
```bash
430+
# Server
431+
gost -L forward+ssh://:2222
432+
433+
# Client
434+
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
435+
436+
# Test from Server
437+
curl -s -L -x socks5://127.0.0.1:3333 https://example.com
438+
```
439+
440+
#### Multiple port-forwarding through different proxies
441+
```bash
442+
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 \
443+
-- -L tcp://:8080/10.10.10.10:80 -F forward+tls://90.33.2.11:443 \
444+
-- -L udp://:5353/192.10.16.8:53 -F socks5://189.155.221.25:1080
445+
```
446+
447+
#### Multiple configuration files
448+
```bash
449+
gost -C tls.json -- -C hyper-proxy.json -- -C reverse-nc.json -- -C happy-vpn.json
450+
```
451+
452+
#### A mix of everything
453+
```bash
454+
gost -L rudp://:5353/192.168.1.1:53?ttl=60s -F socks5://172.24.10.1:1080 -- \
455+
-C my-proxy.json -- \
456+
-L redirect://:1234 -F 1.2.3.4:1080 -- \
457+
-L udp://:5353 -C forward-servers.json -- \
458+
-L :8080 -F http://localhost:8080?ip=192.168.1.2:8081,192.168.1.3:8082 \
459+
-F socks5://localhost:1080?ip=172.20.1.1:1080,172.20.1.2:1081 -- \
460+
-L socks5://localhost:1080 -- \
461+
-L :2020 -F kcp://10.16.1.10:8388?peer=peer1.txt \
462+
-F http2://12.20.1.3:443?peer=peer2.txt
463+
```
464+
465+
Multi-Instance was contributed by [@caribpa](https://github.com/caribpa).

0 commit comments

Comments
 (0)