Sign inSign up

chenhw2/realm

By chenhw2

Updated about 5 years ago

a simple, high performance relay server written in rust.

Image
0

545

chenhw2/realm repository overview

realm

Introduction

realm is a simple, high performance relay server written in rust.

Features

  • Zero configuration. Setup and run in one command.
  • Concurrency. Bidirectional concurrent traffic leads to high performance.
  • Low resources cost.

Usage

This executable takes 1 arguments:

  • -L [--listen] listen config, can be configured multi times. scheme://[listening_address]:listening_port/[remote_address]:remote_port

An example to listen on port 30000 and forwarding traffic to example.com:12345 is as follows.

./realm -L=127.0.0.1:30000/example.com:12345

An example to listen on port 30000/tcp-only and forwarding traffic/tcp to example.com:12345 is as follows.

./realm -L=tcp://127.0.0.1:30000/example.com:12345

An example to listen on port 30000 and forwarding traffic/tcp to example.com:12345 is as follows, forwarding traffic/udp to example.com:23456.

./realm -L=tcp://127.0.0.1:30000/example.com:12345 -L=udp://127.0.0.1:30000/example.com:23456

An example to listen on port 30000 and forwarding traffic to example.com:12345 is as follows, to listen on port 40000 and forwarding traffic to example.com:23456 is as follows at the same time.

./realm -L=127.0.0.1:30000/example.com:12345 -L=127.0.0.1:40000/example.com:23456

Docker

docker run -p 6666:6666 -p 6666:6666/udp -e ARGS='-L=:6666/8.8.8.8:53' chenhw2/realm

Tag summary

Content type

Image

Digest

Size

7 MB

Last updated

about 5 years ago

docker pull chenhw2/realm