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

ERROR rathole::server: Failed to do transport handshake #366

Open
okxlin opened this issue Jun 6, 2024 · 0 comments
Open

ERROR rathole::server: Failed to do transport handshake #366

okxlin opened this issue Jun 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@okxlin
Copy link

okxlin commented Jun 6, 2024

Describe the bug

To Reproduce
Steps to reproduce the behavior:

  1. run create_self_signed_cert.sh create tls files
  2. docker run

Configuration

[client]
remote_addr = "1.2.3.4:40000"
#default_token = "xlswochestisw0xlwujifros6lfobu"

[client.transport]
#type = "tcp"
type = "tls"
[client.transport.tls]
trusted_root = "tls/rootCA.crt"
hostname = "localhost"

[client.services.my_nas_ssh]
token = "xlswochestisw0xlwujifros6lfobu"
local_addr = "127.0.0.1:40189"
[server]
bind_addr = "0.0.0.0:40000"
#default_token = "xlswochestisw0xlwujifros6lfobu"

[server.transport]
#type = "tcp"
type = "tls"
[server.transport.tls]
pkcs12 = "tls/identity.pfx"
pkcs12_password = "1234"

[server.services.my_nas_ssh]
token = "xlswochestisw0xlwujifros6lfobu"
bind_addr = "0.0.0.0:26000"
services:
  rathole:
    image: "rapiz1/rathole:latest"
    container_name: ${CONTAINER_NAME}
    restart: always
    network_mode: "host"
    volumes:
      - "${CONFIG_PATH}:/app/config.toml"
      - "./data/tls/:/app/tls/"
    command: --${SERVICE_MODE} /app/config.toml
    labels:
      createdBy: "Apps"

Logs

rathole  | 2024-06-06T09:29:14.123180Z ERROR rathole::server: Failed to do transport handshake: Connection reset by peer (os error 104): Connection reset by peer (os error 104)

Environment:

  • OS: debian 12 Docker version 26.1.3
  • rathole --version output: rapiz1/rathole:v0.5.0
  • CPU architecture: amd64
  • rustc version:

ChatGPT:

It looks like there was an error in the transport handshake of the "rathole" server due to a wrong version number in the SSL handshake. This could be caused by various factors such as incompatible SSL/TLS versions between the client and server or misconfiguration of SSL/TLS settings. Troubleshooting this would involve checking the SSL/TLS configuration on both the client and server side to ensure compatibility and correctness.
@okxlin okxlin added the bug Something isn't working label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant