OpenVPN - Viscosity Mac - Dropping Connection
-
I've had OpenVPN up and running for about a month and I've been able to connect to it using Viscosity on my Macbook. It works great.
I downloaded Viscosity to a second computer and was also able to connect to my pfsense by VPN.
I haven't changed anything in the config and now it's dropping the connection roughly every minute. I tried rebooting the pfsense box with no avail. This is the log when it drops:
Any ideas?
May 29 15:32:56: Viscosity Mac 1.6.4 (1348)
May 29 15:32:56: Viscosity OpenVPN Engine Started
May 29 15:32:56: Running on Mac OS X 10.11.3
May 29 15:32:56: –-------
May 29 15:32:56: Checking reachability status of connection...
May 29 15:32:56: Connection is reachable. Starting connection attempt.
May 29 15:32:56: OpenVPN 2.3.11 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on May 10 2016
May 29 15:32:56: library versions: OpenSSL 1.0.2h 3 May 2016, LZO 2.09
May 29 15:32:59: Control Channel Authentication: using '/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/connection.fR99vk/ta.key' as a OpenVPN static key file
May 29 15:32:59: UDPv4 link local (bound): [undef]
May 29 15:32:59: UDPv4 link remote: [AF_INET]69.246.196.102:1194
May 29 15:33:00: WARNING: this configuration may cache passwords in memory – use the auth-nocache option to prevent this
May 29 15:33:00: [InterWeb-Server] Peer Connection Initiated with [AF_INET]69.246.196.102:1194
May 29 15:33:02: Opening utun (connect(AF_SYS_CONTROL)): Resource busy
May 29 15:33:02: Opened utun device utun1
May 29 15:33:02: do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
May 29 15:33:02: /sbin/ifconfig utun1 delete
May 29 15:33:02: NOTE: Tried to delete pre-existing tun/tap instance – No Problem if failure
May 29 15:33:02: /sbin/ifconfig utun1 192.168.2.2 192.168.2.2 netmask 255.255.255.0 mtu 1500 up
May 29 15:33:03: Initialization Sequence Completed
May 29 15:33:03: DNS mode set to: Full
May 29 15:34:05: SIGTERM[hard,] received, process exiting
May 29 15:34:45: Viscosity Mac 1.6.4 (1348)
May 29 15:34:45: Viscosity OpenVPN Engine Started
May 29 15:34:45: Running on Mac OS X 10.11.3
May 29 15:34:45: –-------
May 29 15:34:45: Checking reachability status of connection...
May 29 15:34:45: Connection is reachable. Starting connection attempt.
May 29 15:34:46: OpenVPN 2.3.11 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on May 10 2016
May 29 15:34:46: library versions: OpenSSL 1.0.2h 3 May 2016, LZO 2.09
May 29 15:34:49: Control Channel Authentication: using '/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/connection.e0Ol2S/ta.key' as a OpenVPN static key file
May 29 15:34:49: UDPv4 link local (bound): [undef]
May 29 15:34:49: UDPv4 link remote: [AF_INET]69.246.196.102:1194
May 29 15:34:49: WARNING: this configuration may cache passwords in memory – use the auth-nocache option to prevent this
May 29 15:34:49: [InterWeb-Server] Peer Connection Initiated with [AF_INET]69.246.196.102:1194
May 29 15:34:51: Opening utun (connect(AF_SYS_CONTROL)): Resource busy
May 29 15:34:51: Opened utun device utun1
May 29 15:34:51: do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
May 29 15:34:51: /sbin/ifconfig utun1 delete
May 29 15:34:51: NOTE: Tried to delete pre-existing tun/tap instance – No Problem if failure
May 29 15:34:51: /sbin/ifconfig utun1 192.168.2.2 192.168.2.2 netmask 255.255.255.0 mtu 1500 up
May 29 15:34:51: Initialization Sequence Completed
May 29 15:34:51: DNS mode set to: Full
May 29 15:36:42: [InterWeb-Server] Inactivity timeout (–ping-restart), restarting
May 29 15:36:42: SIGUSR1[soft,ping-restart] received, process restarting
May 29 15:36:43: UDPv4 link local (bound): [undef]
May 29 15:36:43: UDPv4 link remote: [AF_INET]69.246.196.102:1194
May 29 15:36:44: [InterWeb-Server] Peer Connection Initiated with [AF_INET]69.246.196.102:1194
May 29 15:36:46: Preserving previous TUN/TAP instance: utun1
May 29 15:36:46: Initialization Sequence Completed
May 29 15:38:43: [InterWeb-Server] Inactivity timeout (–ping-restart), restarting
May 29 15:38:43: SIGUSR1[soft,ping-restart] received, process restarting
May 29 15:38:44: UDPv4 link local (bound): [undef]
May 29 15:38:44: UDPv4 link remote: [AF_INET]69.246.196.102:1194
May 29 15:38:45: [InterWeb-Server] Peer Connection Initiated with [AF_INET]69.246.196.102:1194
May 29 15:38:47: Preserving previous TUN/TAP instance: utun1
May 29 15:38:47: Initialization Sequence Completed -
What mode is the OpenVPN server set to on pfSense?
What do the OpenVPN logs show on pfSense?
-
Dropping connections every minute usually means you are connecting from two different clients and have not configured the server to accept connections from multiple clients with the same credentials.