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

无穷无尽的错误输出 #419

Open
SamuNatsu opened this issue Feb 28, 2024 · 1 comment
Open

无穷无尽的错误输出 #419

SamuNatsu opened this issue Feb 28, 2024 · 1 comment

Comments

@SamuNatsu
Copy link

场景

服务器处于 A 网络,客户端处于 B 网络,两个网络之间有协议过滤器,仅允许通过 Web 相关的协议(HTTP、WS 等)

现在客户端需要访问服务器上的远程桌面端口 3389

服务器配置文件

在服务器上开启 65000 端口用于接受 WSS 隧道连接,使用了验证功能

services:
- name: wss-tunnel
  addr: :65000
  handler:
    type: auto
    auth:
      username: *****
      password: *****
  listener:
    type: wss
    metadata:
      enableCompression: true
      tls:
        options:
          minVersion: VersionTLS12
          maxVersion: VersionTLS13

客户端配置文件

在客户端上开启 65000 端口用于接受远程桌面程序的连接,使用转发链将请求最终发送到服务器的 3389 端口

路径为:客户端 65000 --wss--> 服务器 65000 --tcp--> 服务器 3389

services:
- name: wss-tunnel
  addr: :65000
  handler:
    type: tcp
    chain: chain-0
  listener:
    type: tcp
  forwarder:
    nodes:
    - name: target-0
      addr: **服务器IP**:3389

chains:
- name: chain-0
  hops:
  - name: hop-0
    nodes:
    - name: node-0
      addr: **服务器IP**:65000
      connector:
        type: socks5
        auth:
          username: *****
          password: *****
      dialer:
        type: wss
        metadata:
          enableCompression: true
        tls:
          options:
            minVersion: VersionTLS12
            maxVersion: VersionTLS13

结果

客户端可以通过 65000 端口连接到服务器的远程桌面

但是 gost 在运行的过程中会无穷无尽地循环输出 websocket 错误信息:

image

虽然可以正常工作,但是不知道这种东西究竟是如何产生的,是否可能导致某一天服务挂掉

@ginuerzh
Copy link
Member

可以开启Debug模式,再看看log

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