Hi,
I followed this tutorial to set up a vpn server :
https://www.comparitech.com/blog/vpn-privacy/how-to-make-your-own-free-vpn-using-amazon-web-services/#comment-8623
all thing seem to be ok, but when I try to connect to the VPN, the connection fails while showing the following output (in openVPN):
Wed Oct 05 18:17:28 2016 OpenVPN 2.3.12 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Oct 3 2016
Wed Oct 05 18:17:28 2016 Windows version 6.2 (Windows 8 or greater) 64bit
Wed Oct 05 18:17:28 2016 library versions: OpenSSL 1.0.1u 22 Sep 2016, LZO 2.09
Wed Oct 05 18:17:28 2016 WARNING: this cipher's block size is less than 128 bit (64 bit). Consider using a --cipher with a larger block size.
Wed Oct 05 18:17:28 2016 WARNING: this cipher's block size is less than 128 bit (64 bit). Consider using a --cipher with a larger block size.
Wed Oct 05 18:17:28 2016 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Wed Oct 05 18:17:28 2016 open_tun, tt->ipv6=0
Wed Oct 05 18:17:29 2016 TAP-WIN32 device [Ethernet 3] opened: \\.\Global\{EEFEB5E2-A895-4BAC-B4C6-134D5936BE0C}.tap
Wed Oct 05 18:17:29 2016 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.4.0.2/255.255.255.252 on interface {EEFEB5E2-A895-4BAC-B4C6-134D5936BE0C} [DHCP-serv: 10.4.0.1, lease-time: 31536000]
Wed Oct 05 18:17:29 2016 Successful ARP Flush on interface [18] {EEFEB5E2-A895-4BAC-B4C6-134D5936BE0C}
Wed Oct 05 18:17:29 2016 Attempting to establish TCP connection with [AF_INET]x.x.x.185:5050 [nonblock]
Wed Oct 05 18:17:39 2016 TCP: connect to [AF_INET]x.x.x.185:5050 failed, will try again in 5 seconds: Connection timed out (WSAETIMEDOUT)
Wed Oct 05 18:17:54 2016 TCP: connect to [AF_INET]x.x.x.185:5050 failed, will try again in 5 seconds: Connection timed out (WSAETIMEDOUT)
Wed Oct 05 18:18:09 2016 TCP: connect to [AF_INET]x.x.x.185:5050 failed, will try again in 5 seconds: Connection timed out (WSAETIMEDOUT)
Wed Oct 05 18:18:24 2016 TCP: connect to [AF_INET]x.x.x.185:5050 failed, will try again in 5 seconds: Connection timed out (WSAETIMEDOUT)
Wed Oct 05 18:18:39 2016 TCP: connect to [AF_INET]x.x.x.185:5050 failed, will try again in 5 seconds: Connection timed out (WSAETIMEDOUT)
Wed Oct 05 18:18:54 2016 TCP: connect to [AF_INET]x.x.x.185:5050 failed, will try again in 5 seconds: Connection timed out (WSAETIMEDOUT)
Wed Oct 05 18:19:09 2016 TCP: connect to [AF_INET]x.x.x.185:5050 failed, will try again in 5 seconds: Connection timed out (WSAETIMEDOUT)
Wed Oct 05 18:19:24 2016 TCP: connect to [AF_INET]x.x.x.185:5050 failed, will try again in 5 seconds: Connection timed out (WSAETIMEDOUT)
Wed Oct 05 18:19:39 2016 TCP: connect to [AF_INET]x.x.x.185:5050 failed, will try again in 5 seconds: Connection timed out (WSAETIMEDOUT)
Could you please assist me to resolve my problem knowing that I use the following configuration in client side:
proto tcp-client
remote x.x.x.185
port 5050
dev tun
secret "C:\\Program Files\\OpenVPN\\config\\ovpn.key"
redirect-gateway def1
ifconfig 10.4.0.2 10.4.0.1
and the following config in server side:
port 5050
proto tcp-server
dev tun1
ifconfig 10.4.0.1 10.4.0.2
status server-tcp.log
verb 3
secret ovpn.key