Openvpn - stuck on Connecting

Posted by user224277 on Server Fault See other posts from Server Fault or by user224277
Published on 2014-06-07T17:19:47Z Indexed on 2014/06/08 3:27 UTC
Read the original article Hit count: 247

Filed under:
|
|

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

© Server Fault or respective owner

Related posts about debian

Related posts about vpn