Fedora

從 openvpn –config 命令後由於致命錯誤而退出

  • March 17, 2020

我剛剛在我的 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。我該如何解決?

請閱讀錯誤資訊:

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

它告訴您您的組名配置nogroup無效,因為您的系統上沒有這樣的組。

引用自:https://unix.stackexchange.com/questions/573483