我有 Centos 6.我的 openvpn server.conf:
local xxx.xxx.xxxx.xxx
port 1194
proto udp
dev tap
ca /etc/openvpn/keys2/ca.crt
cert /etc/openvpn/keys2/server.crt
key /etc/openvpn/keys2/server.key # This file should be kept secret
dh /etc/openvpn/keys2/dh2048.pem
server 192.168.112.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-to-client
keepalive 10 120
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status /var/log/openvpn-status.log
log-append /var/log/openvpn.log
verb 3
mute 20
我的client1.ovpn:
client
dev tap
proto udp
remote xxx.xxx.xxx.xxx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
comp-lzo
<ca>
-----BEGIN CERTIFICATE-----
MIIExzCCA6+gAwIBAgIJAJRFkusNO0vxMA0GCSqGSIb3DQEBCwUAMIGdMQswCQYD
VQQGEwJVQTELMAkGA1UECBMCS0gxEDAOBgNVBAcTB0toYXJrb3YxEjAQBgNVBAoT
CVRlcm1vbGlmZTELMAkGA1UECxMCSVQxFTATBgNVBAMTDFRlcm1vbGlmZSBDQTET
MBEGA1UEKRMKdGwtZ2F0ZXdheTEiMCAGCSqGSIb3DQEJARYTaXRAdGVybW9saWZl
LmNvbS51YTAeFw0xNjA5MTYxMTA3MjNaFw0yNjA5MTQxMTA3MjNaMIGdMQswCQYD
VQQGEwJVQTELMAkGA1UECBMCS0gxEDAOBgNVBAcTB0toYXJrb3YxEjAQBgNVBAoT
CVRlcm1vbGlmZTELMAkGA1UECxMCSVQxFTATBgNVBAMTDFRlcm1vbGlmZSBDQTET
MBEGA1UEKRMKdGwtZ2F0ZXdheTEiMCAGCSqGSIb3DQEJARYTaXRAdGVybW9saWZl
LmNvbS51YTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANDI4nq1xpLP
BlchWn5aIBAnDIhFGrWKDM/44DwtVrW62ZpgPgWHIReW4hGAJoT0rzOsW2p7QWuf
/KE7HLFDg5qnCdkokZP3n3AdFa+5hY5b8rR3+iY+Akg2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z
y8G/twPN/aPd7g6gtFiIvVrYjNuoGN7kjhxNch00J9W12pzG0TZsn2xk4cTwhKTA
HSpmzdVkLOv/aeZTDXXg+I4qrHwyBwLYCnsd3m2PMDiB10ssO3h6nk9iUF76ipFT
er7cRTUUzuJ9yk+jBb2nWectgg==
-----END PRIVATE KEY-----
</key>
我对我的客户端1有答案:
Fri Sep 16 14:38:14 2016 OpenVPN 2.3.12 i686-w64-mingw32 [SSL (OpenSSL)] [LZO] [
PKCS11] [IPv6] built on Aug 23 2016
Fri Sep 16 14:38:14 2016 Windows version 6.1 (Windows 7) 32bit
Fri Sep 16 14:38:14 2016 library versions: OpenSSL 1.0.1t 3 May 2016, LZO 2.09
Fri Sep 16 14:38:14 2016 WARNING: No server certificate verification method has
been enabled. See http://openvpn.net/howto.html#mitm for more info.
Fri Sep 16 14:38:14 2016 UDPv4 link local: [undef]
Fri Sep 16 14:38:14 2016 UDPv4 link remote: [AF_INET]62.64.104.228:1194
我无法从客户端 1 连接到我们的本地网络。防火墙已禁用。IPv4 转发已启用。我在哪里遇到错误?谢谢。