用Realm做转发 – 非常方便

下载

# 图方便了
cd /root
wget https://github.com/zhboner/realm/releases/download/v1.2-beta.1/realm && chmod +x realm

配置config文件

# 根据自己的情况修改
cat > /root/realm.config <<EOF
{
    "listening_addresses": ["0.0.0.0"],
    "listening_ports": ["22471-22474"],
    "remote_addresses": ["boli.xxx.com",
                         "hkt.xxx.com",
                         "hinet20g.ddns.net",
                         "dallas0620.us-south.cf.appdomain.cloud"],
    "remote_ports": ["443",
                     "443",
                     "20600",
                     "443"]
}
EOF
vi /root/realm.config

开启自启

cat > /etc/systemd/system/realm.service <<EOF
[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=/root/realm -c /root/realm.config
[Install]
WantedBy=multi-user.target
EOF

systemctl daemon-reload
systemctl enable  realm
systemctl restart  realm
systemctl status  realm

修改Trojan/SS/V2的相关配置

结果对比 – GCore老伯力之后和之前

1 thought on “用Realm做转发 – 非常方便”

  1. Pingback: VPS特写-之前买的鞍山联通月付3元机 – 1024 & 4201

Leave a Reply