Open 189er opened 3 months ago
使用的是: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 } }
{ "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的包:
这是客户端tcpdump抓取的包,看icmp包里没curl的载荷:
把客户端的nodelay=true选项去掉或在服务端也加上nodelay=true试试。
nodelay=true
使用的是: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的包:
这是客户端tcpdump抓取的包,看icmp包里没curl的载荷: