Sorry if my questions are trivial, but I'm not an expert and I need your help.
I need to run an openvpn server for personal usage based on a VPS.
I've manage to install openvpn remotly on the VPS mounting Ubuntu 15.04 , following step by step this guide, it seemed with success.
http://vpnpick.com/setup-openvpn-server-ubuntu-15-04/
Service openvpn status says "active", and ufw status says ALLOW, like the guide above said, as I've done exactly what it is required.
When I try to connect from a windows client I've got the error below:
read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Thank you very much for the help you could give me to understand what's wrong and how I could fix it.
Alessandro
Below the configurations file, let me know if you need other informations, thanks again.
This is the server configuration file:
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh 2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
This is the client.conf:
client
dev tun
proto udp
remote xxxxxxxxxxxxxxx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
ns-cert-type server
comp-lzo
verb 3
The log file
Thu Mar 10 20:00:24 2016 OpenVPN 2.3.10 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Feb 1 2016
Thu Mar 10 20:00:24 2016 Windows version 6.2 (Windows 8 or greater)
Thu Mar 10 20:00:24 2016 library versions: OpenSSL 1.0.1r 28 Jan 2016, LZO 2.09
Enter Management Password:
Thu Mar 10 20:00:24 2016 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Thu Mar 10 20:00:24 2016 Need hold release from management interface, waiting...
Thu Mar 10 20:00:24 2016 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Thu Mar 10 20:00:24 2016 MANAGEMENT: CMD 'state on'
Thu Mar 10 20:00:24 2016 MANAGEMENT: CMD 'log all on'
Thu Mar 10 20:00:24 2016 MANAGEMENT: CMD 'hold off'
Thu Mar 10 20:00:24 2016 MANAGEMENT: CMD 'hold release'
Thu Mar 10 20:00:25 2016 Socket Buffers: R=[65536->65536] S=[65536->65536]
Thu Mar 10 20:00:25 2016 UDPv4 link local: [undef]
Thu Mar 10 20:00:25 2016 UDPv4 link remote: [AF_INET]208.XX.XXX.XX:1194
Thu Mar 10 20:00:25 2016 MANAGEMENT: >STATE:1457636425,WAIT,,,
Thu Mar 10 20:00:25 2016 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Thu Mar 10 20:00:27 2016 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Thu Mar 10 20:00:32 2016 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Thu Mar 10 20:00:39 2016 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Thu Mar 10 20:00:44 2016 SIGTERM[hard,] received, process exiting
Thu Mar 10 20:00:44 2016 MANAGEMENT: >STATE:1457636444,EXITING,SIGTERM,,