rathole icon indicating copy to clipboard operation
rathole copied to clipboard

Slow TCP throughput Minecraft server

Open BrammyS opened this issue 8 months ago • 0 comments

Describe the bug

I am experiencing a severe slow down of network traffic when using Rathole for a Minecraft server. The proxy server has a multi Gbit/s connection and our local connection is 1 Gbit/s, so this can not be an issue. I have also tried an iperf3 test with with the same configurations and it showed nothing out of the ordinary. What could be the issue here?

  • Network traffic in Minecraft when connected locally byKkXY2KeLEOv4sMmu9WPaf8Sm4mgzHZTuKNWuv6vblUWrH77LQs6YyfMaKEr3CH
  • Network traffic in Minecraft when connected through Rathole QxZjDp7aqTw8flaoyVL404elKT9bnysOQE2CrLhpM1IJ6uDJvJhJdOvINbYDvQuc

To Reproduce Steps to reproduce the behavior:

  1. Server config
[server]
bind_addr = "0.0.0.0:2333"
default_token = "xxx"

[server.transport]
type = "noise"

[server.transport.noise]
local_private_key = "xxx"

[server.services.mc]
bind_addr = "0.0.0.0:25565"
  1. Client config
[client]
remote_addr = "0.0.0.0:2333"
default_token = "xxx"

[client.transport]
type = "noise"

[client.transport.noise]
remote_public_key = "xxx"

[client.services.mc]
local_addr = "10.0.1.5:25565"
  1. Docker-compose file
services:
  rathole:
    image: 'arm64-rathole'
    container_name: rathole
    restart: unless-stopped
    ports:
      - "2333:2333" # Only present on the server side
      - "25565:25565" # Only present on the server side
    volumes:
      - './config.toml:/app/config.toml'
    command:
      - '/app/config.toml'
    networks:
      tunnel:
        ipv4_address: 10.0.1.2
  mc: # Only present on client side
    ....
    ports:
      - "25565:25565" # Only present on the client side, used to connect directly to it.
    networks:
      tunnel:
        ipv4_address: 10.0.1.5

networks:
  tunnel:
    external: true

Configuration Configuration used to reproduce the behavior:

Logs

Environment:

  • OS: Ubunut-22.04
  • rathole --version: I am using the latest v0.5.0 docker image.
  • CPU architecture: amd64
  • rustc version: -

BrammyS avatar Jun 12 '24 07:06 BrammyS