安装

wget https://vip.123pan.cn/1815238395/download/rinetd/rinetd -O /usr/local/bin/rinetd
wget https://vip.123pan.cn/1815238395/download/rinetd/rinetd.service -O /etc/systemd/system/rinetd.service
chmod a+x /bin/rinetd
systemctl daemon-reload
systemctl restart rinetd

配置

echo '0.0.0.0 46781 127.0.0.1 7891' >> /etc/rinetd.conf

其他

rinetd.conf配置文件

[Unit]
Description=RINETD Service
After=network.target

[Service]
Type=forking
ExecStart=/bin/rinetd -c /etc/rinetd.conf
ExecReload=/usr/bin/kill -1 $MAINPID
ExecStop=/usr/bin/kill -2 $MAINPID
Restart=always
StartLimitInterval=0
RestartSec=5
[Install]
WantedBy=multi-user.target
最后修改:2024 年 05 月 11 日
如果觉得我的文章对你有用,请随意赞赏