gost
gost copied to clipboard
路由BUG
服务端 gost -L "tun://:8421?net=192.168.123.1/24&gw=192.168.123.2&route=192.168.1.0/24" -L "relay+ws://123:123@:40257?bind=true&path=/"
客户端 gost -L "tun://:0/:8421?net=192.168.123.2/24&gw=192.168.123.1&route=10.0.12.0/24" -F "relay+wss://123:123@SERVERIP:19443?path=/"
两端连通后,服务端如果想访问 192.168.1.2 IP时,无法直接能访问,仅当客户端需要PING一下服务端内网10.0.12.7,然后服务端才能PING通 192.168.1.2. 这个是什么原因呢
用的哪个版本?
gost 2.11.5 (go1.20 linux/amd64)
换成v3版本吧,v2版本客户端不会主动连接服务端。
服务端 gost -L "tun://:8421?net=192.168.123.1/24&gw=192.168.123.2&route=192.168.1.0/24" -L "relay+ws://123:123@:40257?bind=true&path=/"
客户端 gost -L "tun://:0/:8421?net=192.168.123.2/24&gw=192.168.123.1&route=10.0.12.0/24" -F "relay+wss://123:123@SERVERIP:19443?path=/"
换成V3版本后,不稳定。如果服务器中止服务,客户端都再也连接不上了 。再连接时,服务器经常报 {"handler":"tun","kind":"handler","level":"warning","listener":"tun","local":":8421","msg":"unknown packet, discarded","remote":"192.168.123.1","service":"service-0","time":"2023-11-14T19:50:55.939+08:00"} 重试好多次,也没有作用了
I have same issue.
SERVER:
# gost -L "tun://:5555?net=192.168.25.1/24 -L "relay+dtls://login:pass@:9674?bind=true"
$ iperf3 -s
CLIENT:
# gost -L "tun://:0/:5555/?net=192.168.25.2/24" -F "relay+dtls://login:pass@SERVER:9674"
$ iperf3 -c 192.168.25.1
seccond attempt of iperf3 -c ... output:
`
Connecting to host 192.168.25.1, port 5201
[ 5] local 192.168.25.2 port 37484 connected to 192.168.25.1 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 11.3 MBytes 94.6 Mbits/sec 0 510 KBytes
[ 5] 1.00-2.00 sec 4.54 MBytes 38.0 Mbits/sec 13 1.41 KBytes
[ 5] 2.00-3.00 sec 0.00 Bytes 0.00 bits/sec 1 1.41 KBytes
[ 5] 3.00-4.00 sec 0.00 Bytes 0.00 bits/sec 1 1.41 KBytes
[ 5] 4.00-5.00 sec 0.00 Bytes 0.00 bits/sec 0 1.41 KBytes
[ 5] 5.00-6.00 sec 0.00 Bytes 0.00 bits/sec 1 1.41 KBytes
[ 5] 6.00-7.00 sec 0.00 Bytes 0.00 bits/sec 0 1.41 KBytes
[ 5] 7.00-8.00 sec 0.00 Bytes 0.00 bits/sec 0 1.41 KBytes
[ 5] 8.00-9.00 sec 0.00 Bytes 0.00 bits/sec 0 1.41 KBytes
^C[ 5] 10.00-12.88 sec 0.00 Bytes 0.00 bits/sec 0 1.41 KBytes
[ ID] Interval Transfer Bitrate Retr [ 5] 0.00-12.88 sec 15.8 MBytes 10.3 Mbits/sec 17 sender [ 5] 0.00-12.88 sec 0.00 Bytes 0.00 bits/sec receiver iperf3: interrupt - the client has terminated `
gost server output:
{"handler":"tun","kind":"handler","level":"warning","listener":"tun","local":":5555","msg":"unknown packet, discarded(4096): 05 dc f8 f5 40 00 40 06 88 d2 c0 a8 19 02 c0 a8 19 01 92 6c 14 51 eb 82 cb 23 c9 a3 a5 28 80 10 01 f6 17 b4 00 00 01 01 08 0a a9 75 19 e2 5a 8b 67 61 d8 c7 6f 1b 27 f2 00 da 9b cf 1b 51 a3 72 e0 39 05 0a 11 2e 02 e4 .......
最新版本中应该已经修复。