@@ -23,12 +23,12 @@ time="2023-04-26T21:49:33+08:00" level=info msg="initializing acl file acl.json"
23
23
" keys" : [
24
24
{
25
25
" name" : " default" ,
26
- " key" : " 5868a941-3025-4c6d-ad3a-41e29bb42e5f "
26
+ " key" : " 5CCQAoN905PdIejsal55Am3z2mXY6ueLrtdSA8OCpVc "
27
27
}
28
28
]
29
29
}
30
30
time=" 2023-04-26T21:49:33+08:00" level=info msg=" acl: load 1 keys"
31
- time=" 2023-04-26T21:49:33+08:00" level=info msg=" server listen on localhost :9986 now"
31
+ time=" 2023-04-26T21:49:33+08:00" level=info msg=" server listen on 127.0.0.1 :9986 now"
32
32
```
33
33
> the ` key ` here will using by ` pf ` and ` s5 ` commands
34
34
@@ -61,11 +61,12 @@ server {
61
61
### Port forward tool ` pf ` act as ToH client
62
62
- SSH over HTTP
63
63
```
64
- $ ssh -o ProxyCommand="./toh pf -s https://fill-in-your-server-here.toh.sh/ws -k 5868a941-3025-4c6d-ad3a-41e29bb42e5f -f tcp/%h:%p" root@127.0.0.1
64
+ $ # get a chatgpt robot
65
+ $ ssh -o ProxyCommand="./toh pf -s https://fill-in-your-server-here.toh.sh/ws -k 5CCQAoN905PdIejsal55Am3z2mXY6ueLrtdSA8OCpVc -f tcp/%h:%p" chat@127.0.0.1
65
66
```
66
67
- Common use case
67
68
``` sh
68
- $ ./toh pf -s https://fill-in-your-server-here.toh.sh/ws -k 5868a941-3025-4c6d-ad3a-41e29bb42e5f -f udp/127.0.0.53:53/8.8.8.8:53 -f tcp/0.0.0.0:1080/google.com:80
69
+ $ ./toh pf -s https://fill-in-your-server-here.toh.sh/ws -k 5CCQAoN905PdIejsal55Am3z2mXY6ueLrtdSA8OCpVc -f udp/127.0.0.53:53/8.8.8.8:53 -f tcp/0.0.0.0:1080/google.com:80
69
70
time=" 2023-04-28T13:52:31+08:00" level=info msg=" listen on 127.0.0.53:53 for udp://8.8.8.8:53 now"
70
71
time=" 2023-04-28T13:52:31+08:00" level=info msg=" listen on 0.0.0.0:1080 for tcp://google.com:80 now"
71
72
@@ -86,15 +87,13 @@ The document has moved
86
87
``` sh
87
88
$ ./toh s5
88
89
time=" 2023-05-12T15:02:11Z" level=info msg=" initializing config file /root/.config/toh/socks5.yml"
89
- geoip2: country.mmdb
90
90
listen: localhost:2080
91
91
servers:
92
92
- name: us1
93
93
api: https://fill-in-your-server-here.toh.sh/ws
94
- key: 5868a941-3025-4c6d-ad3a-41e29bb42e5f
94
+ key: 5CCQAoN905PdIejsal55Am3z2mXY6ueLrtdSA8OCpVc
95
95
ruleset:
96
96
- https://raw.githubusercontent.com/rkonfj/toh/main/ruleset.txt
97
- healthcheck: https://www.google.com/generate_204
98
97
time=" 2023-05-12T15:02:11Z" level=info msg=" downloading https://raw.githubusercontent.com/rkonfj/toh/main/ruleset.txt"
99
98
time=" 2023-05-12T15:02:14Z" level=info msg=" ruleset us1: special 0, direct 0, wildcard 21"
100
99
time=" 2023-05-12T15:02:14Z" level=info msg=" total loaded 1 proxy servers and 0 groups"
@@ -107,6 +106,7 @@ $ https_proxy=socks5://127.0.0.1:2080 curl https://api64.ipify.org
107
106
$ # wow, great! the `104.207.152.45` is your proxy ip
108
107
```
109
108
- full configuration can be viewed [ here] ( https://github.com/rkonfj/toh/blob/main/cmd/s5/server/config.go )
109
+ - socks5 support ` CONNECT ` and ` UDP ASSOCIATE `
110
110
- the server ` us1 ` is the test server, will stopped in the future
111
111
112
112
### Android project ` tohdroid ` act as ToH client
0 commit comments