I've set up openvon a couple of days ago. I made a ovpn file for myself that worked just fine. I created this file by just copy pasting the values.
This is what I get when I connect:
2016-12-20 10:22:45 *Tunnelblick: openvpnstart starting OpenVPN
2016-12-20 10:22:45 *Tunnelblick: Established communication with OpenVPN
2016-12-20 10:22:45 OpenVPN 2.3.10 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Mar 19 2016
2016-12-20 10:22:45 library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.09
2016-12-20 10:22:45 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2016-12-20 10:22:45 Control Channel Authentication: tls-auth using INLINE static key file
2016-12-20 10:22:45 Attempting to establish TCP connection with [AF_INET]54.159.123.176:1194 [nonblock]
2016-12-20 10:22:46 TCP connection established with [AF_INET]54.159.123.176:1194
2016-12-20 10:22:46 TCPv4_CLIENT link local: [undef]
2016-12-20 10:22:46 TCPv4_CLIENT link remote: [AF_INET]54.159.123.176:1194
2016-12-20 10:22:47 [server] Peer Connection Initiated with [AF_INET]54.159.123.176:1194
2016-12-20 10:22:50 Opening utun (connect(AF_SYS_CONTROL)): Resource busy
2016-12-20 10:22:50 Opened utun device utun1
2016-12-20 10:22:50 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
2016-12-20 10:22:50 /sbin/ifconfig utun1 delete
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
2016-12-20 10:22:50 NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure
2016-12-20 10:22:50 /sbin/ifconfig utun1 10.8.0.3 10.8.0.3 netmask 255.255.255.0 mtu 1500 up
add net 10.8.0.0: gateway 10.8.0.3
2016-12-20 10:22:50 /Applications/Tunnelblick.app/Contents/Resources/client.up.tunnelblick.sh -9 -d -f -m -w -ptADGNWradsgnw utun1 1500 1544 10.8.0.3 255.255.255.0 init
**********************************************
Start of output from client.up.tunnelblick.sh
NOTE: No network configuration changes need to be made.
WARNING: Will NOT monitor for other network configuration changes.
WARNING: Will NOT disable IPv6 settings.
DNS servers '192.168.50.1 172.30.1.1' will be used for DNS queries when the VPN is active
NOTE: The DNS servers do not include any free public DNS servers known to Tunnelblick. This may cause DNS queries to fail or be intercepted or falsified even if they are directed through the VPN. Specify only known public DNS servers or DNS servers located on the VPN network to avoid such problems.
Flushed the DNS cache via dscacheutil
/usr/sbin/discoveryutil not present. Not flushing the DNS cache via discoveryutil
Notified mDNSResponder that the DNS cache was flushed
End of output from client.up.tunnelblick.sh
**********************************************
add net 10.0.0.0: gateway 10.8.0.1
add net 172.27.224.0: gateway 10.8.0.1
add net 172.27.232.0: gateway 10.8.0.1
add net 172.27.232.28: gateway 10.8.0.1
2016-12-20 10:22:52 *Tunnelblick: No 'connected.sh' script to execute
2016-12-20 10:22:52 Initialization Sequence Completed
but then I created a couple more files (with a simple script) and connection constantly gets rested. the logs are almost the same:
2016-12-20 09:48:43 *Tunnelblick: OS X 10.11.4; Tunnelblick 3.6.0a (build 4543.4546)
2016-12-20 09:48:44 *Tunnelblick: Attempting connection with margaret using shadow copy; Set nameserver = 1; monitoring connection
2016-12-20 09:48:44 *Tunnelblick: openvpnstart start margaret.tblk 1337 1 0 1 0 1065264 -ptADGNWradsgnw 2.3.10
2016-12-20 09:48:44 *Tunnelblick: openvpnstart log:
OpenVPN started successfully. Command used to start OpenVPN (one argument per displayed line):
/Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.3.10/openvpn
--daemon
--log
/Library/Application Support/Tunnelblick/Logs/-SUsers-Sdorrin--eltoro-SLibrary-SApplication Support-STunnelblick-SConfigurations-Smargaret.tblk-SContents-SResources-Sconfig.ovpn.1_0_1_0_1065264.1337.openvpn.log
--cd
/Library/Application Support/Tunnelblick/Users/dorrin-eltoro/margaret.tblk/Contents/Resources
--verb
3
--config
/Library/Application Support/Tunnelblick/Users/dorrin-eltoro/margaret.tblk/Contents/Resources/config.ovpn
--cd
/Library/Application Support/Tunnelblick/Users/dorrin-eltoro/margaret.tblk/Contents/Resources
--management
127.0.0.1
1337
--management-query-passwords
--management-hold
--script-security
2
--up
/Applications/Tunnelblick.app/Contents/Resources/client.up.tunnelblick.sh -9 -d -f -m -w -ptADGNWradsgnw
--down
/Applications/Tunnelblick.app/Contents/Resources/client.down.tunnelblick.sh -9 -d -f -m -w -ptADGNWradsgnw
2016-12-20 09:48:44 *Tunnelblick: Established communication with OpenVPN
2016-12-20 09:48:44 OpenVPN 2.3.10 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Mar 19 2016
2016-12-20 09:48:44 library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.09
2016-12-20 09:48:44 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2016-12-20 09:48:44 Control Channel Authentication: tls-auth using INLINE static key file
2016-12-20 09:48:44 Attempting to establish TCP connection with [AF_INET]54.159.123.176:1194 [nonblock]
2016-12-20 09:48:44 *Tunnelblick: openvpnstart starting OpenVPN
2016-12-20 09:48:45 TCP connection established with [AF_INET]54.159.123.176:1194
2016-12-20 09:48:45 TCPv4_CLIENT link local: [undef]
2016-12-20 09:48:45 TCPv4_CLIENT link remote: [AF_INET]54.159.123.176:1194
2016-12-20 09:48:49 [server] Peer Connection Initiated with [AF_INET]54.159.123.176:1194
2016-12-20 09:48:52 Opening utun (connect(AF_SYS_CONTROL)): Resource busy
2016-12-20 09:48:52 Opened utun device utun1
2016-12-20 09:48:52 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
2016-12-20 09:48:52 /sbin/ifconfig utun1 delete
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
2016-12-20 09:48:52 NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure
2016-12-20 09:48:52 /sbin/ifconfig utun1 10.8.0.2 10.8.0.2 netmask 255.255.255.0 mtu 1500 up
add net 10.8.0.0: gateway 10.8.0.2
2016-12-20 09:48:52 /Applications/Tunnelblick.app/Contents/Resources/client.up.tunnelblick.sh -9 -d -f -m -w -ptADGNWradsgnw utun1 1500 1544 10.8.0.2 255.255.255.0 init
**********************************************
Start of output from client.up.tunnelblick.sh
NOTE: No network configuration changes need to be made.
WARNING: Will NOT monitor for other network configuration changes.
WARNING: Will NOT disable IPv6 settings.
DNS servers '192.168.50.1 172.30.1.1' will be used for DNS queries when the VPN is active
NOTE: The DNS servers do not include any free public DNS servers known to Tunnelblick. This may cause DNS queries to fail or be intercepted or falsified even if they are directed through the VPN. Specify only known public DNS servers or DNS servers located on the VPN network to avoid such problems.
Flushed the DNS cache via dscacheutil
/usr/sbin/discoveryutil not present. Not flushing the DNS cache via discoveryutil
Notified mDNSResponder that the DNS cache was flushed
End of output from client.up.tunnelblick.sh
**********************************************
add net 10.0.0.0: gateway 10.8.0.1
add net 172.27.224.0: gateway 10.8.0.1
add net 172.27.232.0: gateway 10.8.0.1
add net 172.27.232.28: gateway 10.8.0.1
2016-12-20 09:48:54 *Tunnelblick: No 'connected.sh' script to execute
2016-12-20 09:48:54 Initialization Sequence Completed
2016-12-20 09:48:59 Connection reset, restarting [0]
2016-12-20 09:48:59 SIGUSR1[soft,connection-reset] received, process restarting
2016-12-20 09:48:59 *Tunnelblick: No 'reconnecting.sh' script to execute
2016-12-20 09:48:59 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2016-12-20 09:48:59 Attempting to establish TCP connection with [AF_INET]54.159.123.176:1194 [nonblock]
2016-12-20 09:49:00 TCP connection established with [AF_INET]54.159.123.176:1194
2016-12-20 09:49:00 TCPv4_CLIENT link local: [undef]
2016-12-20 09:49:00 TCPv4_CLIENT link remote: [AF_INET]54.159.123.176:1194
2016-12-20 09:49:01 [server] Peer Connection Initiated with [AF_INET]54.159.123.176:1194
2016-12-20 09:49:03 Preserving previous TUN/TAP instance: utun1
2016-12-20 09:49:03 Initialization Sequence Completed
2016-12-20 09:49:04 *Tunnelblick: No 'connected.sh' script to execute
2016-12-20 09:49:10 Connection reset, restarting [0]
2016-12-20 09:49:10 SIGUSR1[soft,connection-reset] received, process restarting
2016-12-20 09:49:10 *Tunnelblick: No 'reconnecting.sh' script to execute
2016-12-20 09:49:10 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2016-12-20 09:49:10 Attempting to establish TCP connection with [AF_INET]54.159.123.176:1194 [nonblock]
2016-12-20 09:49:11 TCP connection established with [AF_INET]54.159.123.176:1194
2016-12-20 09:49:11 TCPv4_CLIENT link local: [undef]
2016-12-20 09:49:11 TCPv4_CLIENT link remote: [AF_INET]54.159.123.176:1194
2016-12-20 09:49:12 [server] Peer Connection Initiated with [AF_INET]54.159.123.176:1194
2016-12-20 09:49:15 *Tunnelblick: Disconnecting; VPN Details… window disconnect button pressed
2016-12-20 09:49:15 *Tunnelblick: No 'pre-disconnect.sh' script to execute
2016-12-20 09:49:15 *Tunnelblick: Disconnecting using 'kill'
2016-12-20 09:49:15 Preserving previous TUN/TAP instance: utun1
2016-12-20 09:49:15 Initialization Sequence Completed
2016-12-20 09:49:15 event_wait : Interrupted system call (code=4)
delete net 172.27.232.28: gateway 10.8.0.1
delete net 172.27.232.0: gateway 10.8.0.1
delete net 172.27.224.0: gateway 10.8.0.1
delete net 10.0.0.0: gateway 10.8.0.1
2016-12-20 09:49:15 /Applications/Tunnelblick.app/Contents/Resources/client.down.tunnelblick.sh -9 -d -f -m -w -ptADGNWradsgnw utun1 1500 1544 10.8.0.2 255.255.255.0 init
**********************************************
Start of output from client.down.tunnelblick.sh
2016-12-20 09:49:15 *Tunnelblick: No 'connected.sh' script to execute
WARNING: Not restoring DNS settings because no saved Tunnelblick DNS information was found.
Flushed the DNS cache via dscacheutil
/usr/sbin/discoveryutil not present. Not flushing the DNS cache via discoveryutil
Notified mDNSResponder that the DNS cache was flushed
End of output from client.down.tunnelblick.sh
**********************************************
2016-12-20 09:49:16 SIGTERM[hard,] received, process exiting
2016-12-20 09:49:16 *Tunnelblick: No 'post-disconnect.sh' script to execute
2016-12-20 09:49:16 *Tunnelblick: Expected disconnection occurred.
Is there a problem with the way configuration files are made? The files would be almost identical but only my first ovpn file works?