2024年4月30日

HYEOS

随事而为

openvpn一键安装+端口转发

1 min read

刚开始配置 root 是用户名 回车以后输入密码

操作系统Debian10

#apt update -y && apt upgrade -y

#apt install nano git curl wget rinetd 

#wget https://git.io/vpn -O openvpn-install.sh

#chmod +x openvpn-install.sh && ./openvpn-install.sh

#nano  /etc/rinetd.conf

Pi-Node节点端口转发
0.0.0.0     31400       10.8.0.2     31400
0.0.0.0     31401       10.8.0.2      31401
0.0.0.0     31402       10.8.0.2      31402
0.0.0.0     31403       10.8.0.2      31403
0.0.0.0     31404       10.8.0.2      31404
0.0.0.0     31405       10.8.0.2      31405
0.0.0.0     31406       10.8.0.2      31406
0.0.0.0     31407       10.8.0.2      31407
0.0.0.0     31408       10.8.0.2      31408
0.0.0.0     31409       10.8.0.2      31409

#/etc/init.d/rinetd restart && /etc/init.d/openvpn restart
#systemctl enable rinetd &&  systemctl enable rinetd

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注