I installed OpenVPN server on my desktop Arch Linux by following the instruction at: https://wiki.archlinux.org/index.php/OpenVPN
I'm using the default configuration file for both server and client.
I generated all the necessary keys for user "guest" and copied them to my laptop running Arch linux and was able to connect to the server from my local network. Then I tried to connect using the same machine by specifying the public IP of my OpenVPN and got the following error:
Code: Select all
Sat Jan 14 18:50:52 2012 OpenVPN 2.2.2 x86_64-unknown-linux-gnu [SSL] [LZO2] [EPOLL] [eurephia] built on Jan 3 2012
Sat Jan 14 18:50:52 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sat Jan 14 18:50:52 2012 Control Channel Authentication: using '/home/x625/keys/ta.key' as a OpenVPN static key file
Sat Jan 14 18:50:52 2012 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Jan 14 18:50:52 2012 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Jan 14 18:50:52 2012 LZO compression initialized
Sat Jan 14 18:50:52 2012 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Sat Jan 14 18:50:52 2012 Socket Buffers: R=[126976->131072] S=[126976->131072]
Sat Jan 14 18:50:52 2012 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Sat Jan 14 18:50:52 2012 Local Options hash (VER=V4): '504e774e'
Sat Jan 14 18:50:52 2012 Expected Remote Options hash (VER=V4): '14168603'
Sat Jan 14 18:50:52 2012 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Sat Jan 14 18:50:52 2012 UDPv4 link local: [undef]
Sat Jan 14 18:50:52 2012 UDPv4 link remote: 12.142.145.12:8194
Sat Jan 14 18:50:52 2012 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Sat Jan 14 18:50:54 2012 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Sat Jan 14 18:50:58 2012 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Sat Jan 14 18:51:07 2012 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Sat Jan 14 18:51:22 2012 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
^CSat Jan 14 18:51:45 2012 event_wait : Interrupted system call (code=4)
Sat Jan 14 18:51:45 2012 TCP/UDP: Closing socket
Sat Jan 14 18:51:45 2012 SIGINT[hard,] received, process exiting
Any idea how I can connect to my OpenVPN server using the public IP?
EDIT: Please ignore this thread as I found a typo in the local IP address of my server in my router settings.