本站支持「有偿」远程协助!

SSR 游戏节点搭建

SSR 游戏加速节点搭建.

脚本

#!/bin/sh

#bbr
#echo -e "4\n" | bash <(curl -sL https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh)

#bbr
#echo -e "4\n" | bash <(curl -sL https://cdn.jsdelivr.net/gh/chiakge/Linux-NetSpeed@master/tcp.sh)

# SSRN Installation
wget -O /usr/local/bin/ssrn https://cdn.jsdelivr.net/gh/mainians/ssrn@main/ssrn
chmod +x /usr/local/bin/ssrn

cat <<EOF > /etc/systemd/system/ssrn.service
[Unit]
Description=The SSRN Proxy Serve
After=network-online.target

[Service]
ExecStart=/usr/local/bin/ssrn -c /etc/ssrn/serve.json
ExecStop=/bin/kill -s QUIT $MAINPID
Restart=always
RestartSec=15s

[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable ssrn

mkdir -p /etc/ssrn
cat <<EOF > /etc/ssrn/serve.json
{
    "log": NULL,
    "password": "zxvfIXTCnU3VOpn7",
    "method": "rc4-md5",
    "protocol": "auth_aes128_md5",
    "obfs": "tls1.2_ticket_auth",
    "udp": true,
    "server_settings": {
        "listen_address": "0.0.0.0",
        "listen_port": 2324
    }
}
EOF

killall ssrn
systemctl start ssrn
#systemctl status ssrn
Loading ...
无广告!