Realm: Traffic forwarding/port forwarding tool under Linux, supporting local BBR (including one-click script)

Realm: Traffic forwarding/port forwarding tool under Linux, supporting local BBR (including one-click script)

1. Features of Realm

Support DDNS. Just input a domain name and the background resolution will be automatically updated.
High efficiency and low consumption. Based on the Rust language, Realm ensures memory safety. In addition, compared with Brook and gost written in Go language, Realm executes faster and occupies fewer resources, making it very suitable for use on low-configuration hosts.
Simple Compared to using iptables which requires several complex commands, Realm can be started with just one command, ensuring easy deployment.
UDP + TCP Realm can forward both UDP and TCP without any extra work.

2. RealM one-click installation script

 wget -N --no-check-certificate https://git.io/realm.sh && chmod +x realm.sh && ./realm.sh

3. Use of Realm

1. Download and set permissions

 wget https://github.com/zhboner/realm/releases/download/v1.2.0/realm
chmod +x realm

Local Realm 1.2: https://zhujiwiki.com/wp-content/uploads/2021/01/realm

2. Use

Let realm listen to port 30000 on the local machine and forward traffic to example.com:12345

 ./realm -l 127.0.0.1:30000 -r example.com:12345

Specifically, starting realm requires two parameters: -l and -r.

-l specifies the local address and port to be listened. The address can be omitted, but the port must be specified. If you do not specify an address, the default address of 127.0.0.1 will be used.
-r specifies the destination address and port for forwarding, neither of which can be omitted

3. Automatic startup and service

 vi /etc/systemd/system/realm.service

Paste (change ExecStart=/usr/bin/realm -l xxxx:port -r xxxx:port to your own forwarding information)

 [Unit]
Description=realm
After=network-online.target
Wants=network-online.target systemd-networkd-wait-online.service

[Service]
Type=simple
User=root
Restart=on-failure
RestartSec=5s
DynamicUser=true
ExecStart=/usr/bin/realm -l xxxx:port -r xxxx:port

[Install]
WantedBy=multi-user.target

Startup

 systemctl enable --now realm

Start/Restart/Stop

 systemctl start/restart/stop realm

Open source: https://github.com/zhboner/realm

<<:  GigsGigsCloud: $88/month/2-core exclusive@AMD EPYC/4GB memory/50GB NVME space/1TB traffic/10Mbps port/Hong Kong CN2/9929/CMI

>>:  NexusBytes: $27.48/year/AMD Ryzen 7 3700X/1GB memory/10GB NVMe space/500GB traffic/1Gbps bandwidth/KVM/Los Angeles

Recommend

VMHaus: $15/year/256MB memory/5GB NVMe space/1TB traffic/10Gbps/KVM/UK

VMHaus, a foreign hosting provider, is a register...

Cyber ​​Host Pro: Reseller VPS, UK

Cyber ​​Host Pro, a long-established hosting prov...

Blog navigation submission and collection dedicated page

1 Chinese independent blog navigation site has be...

Treudler: €5.99/month/1GB RAM/500GB storage/unlimited traffic/KVM/Germany

Treudler, a foreign hosting company, was founded ...

Beyotta Network 512MB RAM KVM VPS Singapore M1 Simple Review

Details: Beyotta Network: $3.7/month/512MB memory...

One-click installation package for Nginx/MariaDB/HHVM under CentOS 6 64-bit

1. Installation requirements : 1. This script is ...

HiFormance: 25% off all VPS, including special packages

HiFormance, an American hosting company, has been...