lvye62
有公网ip的话可以试下openvpn安装脚本,目前我在盒子上使用,非常完美,可以访问家里路由器的内网设备.
1.下载脚本
wget -O openvpn.sh https://get.vpnsetup.net/ovpn
2.设置权限
chmod 777 openvpn.sh
3.运行脚本,使用自动安装方式。
bash openvpn.sh --auto
4.等待一会把生成的 client.ovpn复制出来,手机或PCopenvpn客户端导入就行了。
github:https://github.com/hwdsl2/openvpn-install
内存占用低
root@hi3798mv100:/# systemctl status openvpn-server@server.service
● openvpn-server@server.service - OpenVPN service for server
Loaded: loaded (/lib/systemd/system/openvpn-server@.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2024-06-15 12:40:48 CST; 4h 40min ago
Docs: man:openvpn(8)
https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
https://community.openvpn.net/openvpn/wiki/HOWTO
Main PID: 6288 (openvpn)
Status: "Initialization Sequence Completed"
Tasks: 1 (limit: 2234)
Memory: 1.6M
CGroup: /system.slice/system-openvpn\x2dserver.slice/openvpn-server@server.service
└─6288 /usr/sbin/openvpn --status /run/openvpn-server/status-server.log --status-version 2 --suppress-timestamps --config server.conf
Jun 15 16:34:03 hi3798mv100 openvpn[6288]: client/115.230.232.75:32141 peer info: IV_LZ4v2=1
Jun 15 16:34:03 hi3798mv100 openvpn[6288]: client/115.230.232.75:32141 peer info: IV_LZO=1
Jun 15 16:34:03 hi3798mv100 openvpn[6288]: client/115.230.232.75:32141 peer info: IV_COMP_STUB=1
Jun 15 16:34:03 hi3798mv100 openvpn[6288]: client/115.230.232.75:32141 peer info: IV_COMP_STUBv2=1
Jun 15 16:34:03 hi3798mv100 openvpn[6288]: client/115.230.232.75:32141 peer info: IV_TCPNL=1
Jun 15 16:34:03 hi3798mv100 openvpn[6288]: client/115.230.232.75:32141 peer info: IV_GUI_VER=OpenVPN_GUI_11
Jun 15 16:34:03 hi3798mv100 openvpn[6288]: client/115.230.232.75:32141 peer info: IV_SSO=openurl,crtext
Jun 15 16:34:03 hi3798mv100 openvpn[6288]: client/115.230.232.75:32141 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Jun 15 16:34:03 hi3798mv100 openvpn[6288]: client/115.230.232.75:32141 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Jun 15 16:34:03 hi3798mv100 openvpn[6288]: client/115.230.232.75:32141 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, 2048 bit RSA