m.tufail
Folks
I have been struggling to setup with my 1st open VPN connection. I have a Ubuntu 14.0.4 server in Azure as my VPN server. I am using a WRT WiFi access-point (in my basement) as my VPN client.
I do see that my VPN client is accessing the VPN server but pings are timing out (pl see below). It is very likely that my server is in Azure and pings are blocked. Is that so?
Fri Nov 6 17:09:29 2015 daemon.notice openvpn[2477]: Inactivity timeout (--ping-restart), restarting
Fri Nov 6 17:09:29 2015 daemon.notice openvpn[2477]: SIGUSR1[soft,ping-restart] received, process restarting
Fri Nov 6 17:09:29 2015 daemon.notice openvpn[2477]: Restart pause, 2 second(s)
Fri Nov 6 17:09:31 2015 daemon.notice openvpn[2477]: Re-using pre-shared static key
Fri Nov 6 17:09:31 2015 daemon.notice openvpn[2477]: Socket Buffers: R=[163840->131072] S=[163840->131072]
Fri Nov 6 17:09:31 2015 daemon.notice openvpn[2477]: Preserving previous TUN/TAP instance: tun0
Fri Nov 6 17:09:31 2015 daemon.notice openvpn[2477]: UDPv4 link local (bound): [undef]
Fri Nov 6 17:09:31 2015 daemon.notice openvpn[2477]: UDPv4 link remote: [AF_INET]xx.xx.xx.xx:1194
Fri Nov 6 17:10:16 2015 daemon.notice openvpn[2477]: Inactivity timeout (--ping-restart), restarting
Fri Nov 6 17:10:16 2015 daemon.notice openvpn[2477]: SIGUSR1[soft,ping-restart] received, process restarting
Fri Nov 6 17:10:16 2015 daemon.notice openvpn[2477]: Restart pause, 2 second(s)
Fri Nov 6 17:10:18 2015 daemon.notice openvpn[2477]: Re-using pre-shared static key
Fri Nov 6 17:10:18 2015 daemon.notice openvpn[2477]: Socket Buffers: R=[163840->131072] S=[163840->131072]
Fri Nov 6 17:10:18 2015 daemon.notice openvpn[2477]: Preserving previous TUN/TAP instance: tun0
Fri Nov 6 17:10:18 2015 daemon.notice openvpn[2477]: UDPv4 link local (bound): [undef]
Fri Nov 6 17:10:18 2015 daemon.notice openvpn[2477]: UDPv4 link remote: [AF_INET]xx.xx.xx.xx:1194
On my VPN server I see the following openvpn is failing due to TCP/UDP socket bind failed on local address (already in-use). I have restated the service, even restarted the server, but in vain.
I am just trying start with a simple set up (static pre-shared keys).
m.tufail
Folks
I figured out the issue:
The local address was in-use by the openvpn server which was running by default, as I installed the openvpn package on the machine. Hence the daemon (based on my openvpn custom config) could not use the same local port.
I stopped the (default) server from UI (https://<host name>:943/admin) and that resolved the issue.
Mudassir