Skip to content

Relays (realm)

A relay puts another server between the client and the node: the client connects to the relay, which forwards the traffic unchanged to the exit server (the VPS that actually runs the node). Typical uses: an entry point with a better route, or one entry for several exit servers. PSM forwards ports with realm.

On the relay, open main menu 12 (Relay (realm)); the first time, it offers to install realm:

Relay menu

Adding a relay rule

Choose Add a relay rule and fill in:

PromptExample
Rule namehk-reality
Local listening port5000
Exit server address (IP or domain)1.2.3.4
Exit server port443 (the port of the REALITY node on the exit server)
Also forward UDP?yes, when the node is a UDP protocol such as Hysteria2 or TUIC

Then point the client at the relay's IP and the local listening port (in the example, RELAY_IP:5000) and leave everything else as it was.

More

  • Modify / delete / list relay rules.
  • Status report: the relay's resource use, speed and latency to the exit server, which can be pushed to Telegram.
  • Service status, restart, logs, uninstall.

Allow the listening port in the relay's firewall and in your cloud provider's security group (UDP too for UDP rules).

Released under the AGPL-3.0 license · For lawful use only; follow the laws where you live