[SOLVED] Accessing OpenVPN server from its public IP

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Locked
x625
OpenVpn Newbie
Posts: 3
Joined: Sun Jan 15, 2012 2:55 am

[SOLVED] Accessing OpenVPN server from its public IP

Post by x625 » Sun Jan 15, 2012 3:10 am

Hi,

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
I tried to access the server using Windows Vista and Windows 7 machines using the same keys from the public IP, and got the same error.

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.
Last edited by x625 on Wed Jan 18, 2012 6:25 am, edited 1 time in total.

yusufsg
OpenVpn Newbie
Posts: 1
Joined: Wed Jan 18, 2012 6:16 am

Re: [SOLVED] Accessing OpenVPN server from its public IP

Post by yusufsg » Wed Jan 18, 2012 6:20 am

Thank you man now i can open vpn server on public ip.

x625
OpenVpn Newbie
Posts: 3
Joined: Sun Jan 15, 2012 2:55 am

Re: [SOLVED] Accessing OpenVPN server from its public IP

Post by x625 » Wed Jan 18, 2012 6:26 am

Well, I didn't provide any solutions. Not too sure why you're thanking me.

Locked