rathole icon indicating copy to clipboard operation
rathole copied to clipboard

rathole::server: Failed to deserialize hello: invalid value: integer `66326`, expected variant index 0 <= i < 2

Open passwa11 opened this issue 2 years ago • 15 comments

rathole::server: Failed to deserialize hello: invalid value: integer 66326, expected variant index 0 <= i < 2

passwa11 avatar Nov 20 '23 07:11 passwa11

Hi, could you please provide your configuration file?

fernvenue avatar Nov 20 '23 11:11 fernvenue

i got same prob.

SakaZhang avatar Nov 22 '23 07:11 SakaZhang

Could anyone provide configuration? I don't think we can reproduce this issue without any useful information.

fernvenue avatar Nov 22 '23 10:11 fernvenue

You guys just keep saying that you all experiencing this, but no one provide any configuration example or useful information, what a joke.

fernvenue avatar Jan 08 '24 06:01 fernvenue

This message is produced on my server when a port scan is received. If I scan the ports of my server with nmap, this message shows up.

bfshires avatar Jan 16 '24 18:01 bfshires

You guys just keep saying that you all experiencing this, but no one provide any configuration example or useful information, what a joke.

sry about that. I turn to use frp and no more pay attention to this issue. Here is some info: os: 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

version: rathole v0.4.8

client config:

[client]
remote_addr = "MY_DOMAIN:28888"

[client.services.outgoing]
token = "isGaDvTQBHYdXPr6"
local_addr = "192.168.50.252:80"

server config is lost, but it looked like the example, then ran and got error.

SakaZhang avatar Jan 18 '24 03:01 SakaZhang

@SakaZhang You may need to reproduce this issue then provide the configuration file.

fernvenue avatar Jan 18 '24 03:01 fernvenue

You guys just keep saying that you all experiencing this, but no one provide any configuration example or useful information, what a joke.

Don't be so rude. I am able to reproduce issue with the default configuration. Configuration file is the least important thing here.


The cause is simple and clear.

Just as the message itself indicated, someone else is sending invalid bytes into that port. It is an error that should be ignored.

sunmy2019 avatar Feb 15 '24 19:02 sunmy2019

In my case this error happens when I use cloudflare proxied domain

[server]
bind_addr = "0.0.0.0:2053"

[server.services.my_custom]
token = "use_a_secret_that_only_you_know"
bind_addr = "0.0.0.0:443"

[server.transport]
type = "tls"

[server.transport.tls]
pkcs12 = "file.pfx"
pkcs12_password = "passwd"

[client]
remote_addr = "my.domain.com:2053"

[client.transport]
type = "tls"

[client.transport.tls]
trusted_root = "/etc/ssl/certs/ca-certificates.crt"

[client.services.my_custom]
token = "use_a_secret_that_only_you_know"
local_addr = "127.0.0.1:443"

my.domain.com is behind cloudflare proxy

engAmirEng avatar May 25 '24 08:05 engAmirEng