Ubuntu 服务器 22.04 上的 OpenVPN 无法连接客户端

Ubuntu 服务器 22.04 上的 OpenVPN 无法连接客户端

总结一下问题。我遵循了这一点指导在我的远程 VPS Ubuntu 22.04.3 LTS 上安装 OVPN。所述过程非常简单,我可以完成安装。问题是我无法通过互联网将任何客户端连接到 OVPN 服务器,即使它在我的 VPS 上启动并运行。

描述一下您尝试过的操作。我以 root 用户身份进行了安装。我已将 .ovpn 客户端文件下载到我的 mac OSX 10.16(和 iOS 15)并加载到应用程序 OpenVPN Connect v.3.4.3。

提供详细信息。

root@localhost:~# systemctl status openvpn@server[email protected] - OpenVPN connection to server
     Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2024-01-11 15:30:03 CET; 26min ago
       Docs: man:openvpn(8)
             https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
             https://community.openvpn.net/openvpn/wiki/HOWTO
   Main PID: 408660 (openvpn)
     Status: "Initialization Sequence Completed"
      Tasks: 1 (limit: 2249)
     Memory: 1.8M
        CPU: 52ms
     CGroup: /system.slice/system-openvpn.slice/[email protected]
             └─408660 /usr/sbin/openvpn --daemon ovpn-server --status /run/openvpn/server.status 10 --cd /etc/op>

Jan 11 15:30:03 localhost ovpn-server[408660]: Could not determine IPv4/IPv6 protocol. Using AF_INET
Jan 11 15:30:03 localhost ovpn-server[408660]: Socket Buffers: R=[212992->212992] S=[212992->212992]
Jan 11 15:30:03 localhost ovpn-server[408660]: UDPv4 link local (bound): [AF_INET][undef]:1194
Jan 11 15:30:03 localhost ovpn-server[408660]: UDPv4 link remote: [AF_UNSPEC]
Jan 11 15:30:03 localhost ovpn-server[408660]: GID set to nogroup
Jan 11 15:30:03 localhost ovpn-server[408660]: UID set to nobody
Jan 11 15:30:03 localhost ovpn-server[408660]: MULTI: multi_init called, r=256 v=256
Jan 11 15:30:03 localhost ovpn-server[408660]: IFCONFIG POOL IPv4: base=10.8.0.2 size=253
Jan 11 15:30:03 localhost ovpn-server[408660]: IFCONFIG POOL LIST
Jan 11 15:30:03 localhost ovpn-server[408660]: Initialization Sequence Completed


root@localhost:~# ufw status
Status: active

To                         Action      From
--                         ------      ----
OpenSSH                    ALLOW       Anywhere                  
Nginx Full                 ALLOW       Anywhere                  
1194/udp                   ALLOW       Anywhere                  
OpenSSH (v6)               ALLOW       Anywhere (v6)             
Nginx Full (v6)            ALLOW       Anywhere (v6)             
1194/udp (v6)              ALLOW       Anywhere (v6)


root@localhost:~# netstat -anp | grep openvpn
udp        0      0 0.0.0.0:1194            0.0.0.0:*                           408660/openvpn      
unix  2      [ ]         DGRAM      CONNECTED     96452780 408660/openvpn       
unix  3      [ ]         STREAM     CONNECTED     96452775 408660/openvpn 

相关内容