Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icmpv4隧道同时正向,反向tcp端口映射有BUG #538

Open
189er opened this issue Jul 26, 2024 · 1 comment
Open

icmpv4隧道同时正向,反向tcp端口映射有BUG #538

189er opened this issue Jul 26, 2024 · 1 comment

Comments

@189er
Copy link

189er commented Jul 26, 2024

使用的是:gost_3.0.0-nightly.20240719_linux_amd64v3.tar.gz
服务器端:./gost -C icmp.json ,命令是:./gost -D -L "relay+icmp://:343?bind=true" -api ":18080?accesslog=true"
{ "services": [ { "name": "service-123", "addr": ":343", "handler": { "type": "relay", "metadata": { "bind": "true" } }, "listener": { "type": "icmp", "metadata": { "bind": "true" } }, "metadata": { "bind": "true" } } ], "log": { "level": "trace" }, "api": { "addr": ":18080", "accesslog": true } }

客户端:
export GOST_LOGGER_LEVEL=trace ;
/tmp/gost -L tcp://:888/127.1.2.3:50088 -F "relay+icmp://10.8.3.1:22345?keepalive=true&ttl=10s&nodelay=true&bind=true" -api ":18080?accesslog=true"

使用命令curl -v http://127.0.0.1:888/,没有数据回来,把服务器的icmp://:343?bind=true ,中bind=true参数去了,就可以通。

但是我想一条命令同时建立正向,反向tcp端口映射:
/tmp/gost -L rtcp://:38443/127.7.7.7:8834 -L tcp://:888/127.0.0.3:80 -F "relay+icmp://10.8.3.1:12345?keepalive=true&ttl=10s&nodelay=true";

这是服务器tcpdump抓取的包,没发现TCP PUSH的包:
fwq

这是客户端tcpdump抓取的包,看icmp包里没curl的载荷:
cli

@ginuerzh
Copy link
Member

把客户端的nodelay=true选项去掉或在服务端也加上nodelay=true试试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants