I've got a computer with openvpn server behind the NAT. When I try to connect to it from client - I get this error:
read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
I've configured forwarding for 1194 port in my router for both TCP and UDP. Here is config file for server:
port 1194 proto udp dev tun ca /etc/openvpn/easy-rsa/keys/ca.crt cert /etc/openvpn/easy-rsa/keys/server.crt key /etc/openvpn/easy-rsa/keys/server.key # This file should be kept secret dh dh2048.pem server 10.8.0.0 255.255.255.0 ifconfig-pool-persist ipp.txt keepalive 10 120 comp-lzo persist-key persist-tun status openvpn-status.log verb 3
And here are my client's configuration:
client dev tun proto udp remote XXX.XXX.XXX.XXX 1194 resolv-retry infinite nobind persist-key persist-tun ca ca.crt cert my-laptop.crt key my-laptop.key ns-cert-type server comp-lzo verb 3
I've tried to follow this Quick Start tutorial but for some reason it didn't help me to start quickly.