Openvpn - stuck on Connecting
- by user224277
I've got a problem with openvpn server... every time when I trying to connect to the VPN , I am getting a window with login and password box, so I typed my login and password (login = Common Name (user1) and password is from a challenge password from the client certificate.
Logs :
Jun 7 17:03:05 test ovpn-openvpn[5618]: Authenticate/Decrypt packet error: packet HMAC authentication failed
Jun 7 17:03:05 test ovpn-openvpn[5618]: TLS Error: incoming packet authentication failed from [AF_INET]80.**.**.***:54179
Client.ovpn :
client
#dev tap
dev tun
#proto tcp
proto udp
remote [Server IP] 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert user1.crt
key user1.key
<tls-auth>
-----BEGIN OpenVPN Static key V1-----
d1e0...
-----END OpenVPN Static key V1-----
</tls-auth>
ns-cert-type server
cipher AES-256-CBC
comp-lzo yes
verb 0
mute 20
My openvpn.conf :
port 1194
#proto tcp
proto udp
#dev tap
dev tun
#dev-node MyTap
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/VPN.crt
key /etc/openvpn/keys/VPN.key
dh /etc/openvpn/keys/dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
#push „route 192.168.5.0 255.255.255.0?
#push „route 192.168.10.0 255.255.255.0?
keepalive 10 120
tls-auth /etc/openvpn/keys/ta.key 0
#cipher BF-CBC # Blowfish
#cipher AES-128-CBC # AES
#cipher DES-EDE3-CBC # Triple-DES
comp-lzo
#max-clients 100
#user nobody
#group nogroup
persist-key
persist-tun
status openvpn-status.log
#log openvpn.log
#log-append openvpn.log
verb 3
sysctl :
net.ipv4.ip_forward=1