服务器日志
Options error: Unrecognized option or missing or extra parameter(s) in server.ovpn:4: cert (2.4.9) Use --help for more information.
服务器配置
server 192.168.1.0 255.255.255.0
ifconfig-pool-persist ipp.txt
ca ca.crt
cert serverport 1194
proto udp
任何人都可以帮助解决这个问题吗?
dev tun
server 192.168.1.0 255.255.255.0
ifconfig-pool-persist ipp.txt
ca ca.crt
cert serverVPN.crt
key serverVPN.key
dh dh1024.pem
push "route 192.168.1.0 255.255.255.0"
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
client-to-client
log-append /var/log/openvpn
group daemon
daemon
verb 3.crt
key server.key
dh dh1024.pem
push "route 192.168.1.0 255.255.255.0"
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
client-to-client
log-append /var/log/openvpn
group daemon
daemon
verb 3
问题恰好在错误消息中指定的行上。
您应该在指令中提供证书的文件名
cert
,并且serverport
指令应该在下一行。正确的服务器配置是:
端口 1194 proto udp dev tun server 192.168.1.0 255.255.255.0 ifconfig-pool-persist ipp.txt ca ca.crt cert serverVPN.crt key serverVPN.key dh dh1024.pem push "route 192.168.1.0 255.255.255.0" push "redirect -gateway def1" push "dhcp-option DNS 8.8.8.8" push "dhcp-option DNS 8.8.4.4" comp-lzo keepalive 10 60 ping-timer-rem persist-tun persist-key client-to-client log-append / var/log/openvpn group daemon daemon verb 3.crt key server.key dh dh1024.pem push "route 192.168.1.0 255.255.255.0" push "redirect-gateway def1" push "dhcp-option DNS 8.8.8.8" push "dhcp -option DNS 8.8.4.4" comp-lzo keepalive 10 60 ping-timer-rem persist-tun persist-key client-to-client log-append /var/log/openvpn group daemon daemon verb 3