由于 openvpn --config 命令后发生致命错误而退出

由于 openvpn --config 命令后发生致命错误而退出

我刚刚在我的 Fedora 系统上安装了 openvpn 并配置了它。但我的问题是,输入 openvpn --config 命令后,出现以下错误。顺便说一下配置文件的名称:client.ovpn

Wed Mar 18 01:49:16 2020 OpenVPN 2.4.8 x86_64-redhat-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] 
[EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Nov  1 2019
Wed Mar 18 01:49:16 2020 WARNING: No server certificate verification method has been enabled.  See http://openvpn.net/howto.html#mitm for more info.
Wed Mar 18 01:49:16 2020 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Wed Mar 18 01:49:16 2020 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Wed Mar 18 01:49:16 2020 failed to find GID for group nogroup
Wed Mar 18 01:49:16 2020 Exiting due to fatal error

client.ovpn 文件的内容:

client
tls-client
pull
dev tun
proto udp
remote 192.168.1.1 1194
resolv-retry infinite
nobind
dhcp-option DNS 8.8.8.8
user nobody
group nogroup
persist-key
persist-tun
key-direction 1
tls-auth ta.key 1
comp-lzo
verb 3
ca ca.crt
cert client.crt
key client.key
auth SHA512

我使用的是Fedora 31。我该如何解决这个问题?

答案1

请阅读错误消息:

Wed Mar 18 01:49:16 2020 failed to find GID for group nogroup

它告诉您,您的组名称配置nogroup无效,因为您的系统上没有这样的组。

相关内容