OpenVPN 无法打开(Kali)

OpenVPN 无法打开(Kali)

我在 Kali 上设置 OpenVPN 服务器。启动服务时,出现以下错误: Job for [email protected] failed because the control process exited with error code. See "systemctl status [email protected]" and "journalctl -xeu [email protected]" for details.

运行 journalctl,没有太多关于错误的信息:

Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ An ExecStart= process belonging to unit [email protected] has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
Nov 28 15:14:46 hubbles systemd[1]: [email protected]: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit [email protected] has entered the 'failed' state with result 'exit-code'.
Nov 28 15:14:46 hubbles systemd[1]: Failed to start [email protected] - OpenVPN service for server.
░░ Subject: A start job for unit [email protected] has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit [email protected] has finished with a failure.
░░ 
░░ The job identifier is 164596 and the job result is failed.

让我展示一下配置文件:

port 1194
proto udp
dev tun
persist-key
persist-tun
keepalive 10 120
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "dchp-option DNS 8.8.8.8"
push "dchp-option DNS 8.8.4.4"
push "redirect-gateway def1 bypass-dhcp"
dh /etc/openvpn/server/dh.pem
ecdh-curve prime256v1
ca /etc/openvpn/server/ca.crt
cert /etc/openvpn/server/hubbles.crt
key /etc/openvpn/server/ca.key
auth SHA256
cipher AES-128-GCM
tls-server
tls-version-min 1.2
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
status /var/log/openvpn/status.log
verb 3

这个配置在朋友的电脑上可以运行,而我无法运行。我运行restorecon -Rv /etc/openvpn/并重新启动了服务,但仍然不行。我做错了什么?

我一次又一次地启动整个过程,检查密钥是否存储在指定的目录中,然后停止/启动该服务。

相关内容