I installed openvpn and followed internet instructions blindly to set it up on my CentOS7 VPS. Then I downloaded Tunnelblick locally in OSX, with configuration located at ~/VPN/host.tblk/server.conf =
client
nobind
dev tun
redirect-gateway def1 bypass-dhcp
remote 23.254.247.78 1194 udp
comp-lzo yes
#duplicate-cn
key /etc/openvpn/client.key
cert /etc/openvpn/client.crt
ca /etc/openvpn/ca.crt
Commented out that one line because it was appearing in an error before.
It will wait for server response forever.
*Tunnelblick: OS X 10.11.6; Tunnelblick 3.7.4b (build 4921)
2018-02-14 15:18:02 *Tunnelblick: Attempting connection with hwinds using shadow copy; Set nameserver = 769; monitoring connection
2018-02-14 15:18:02 *Tunnelblick: openvpnstart start host.tblk 1337 769 0 1 0 1065776 -ptADGNWradsgnw 2.3.18-openssl-1.0.2n
2018-02-14 15:18:02 *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.18-openssl-1.0.2n/openvpn
--daemon
--log
/Library/Application Support/Tunnelblick/Logs/-SUsers-Smacuser-SLibrary-SApplication Support-STunnelblick-SConfigurations-Shwinds.tblk-SContents-SResources-Sconfig.ovpn.769_0_1_0_1065776.1337.openvpn.log
--cd
/Library/Application Support/Tunnelblick/Users/macuser/hwinds.tblk/Contents/Resources
--setenv
IV_GUI_VER
"net.tunnelblick.tunnelblick 4921 3.7.4b (build 4921)"
--verb
3
--config
/Library/Application Support/Tunnelblick/Users/macuser/hwinds.tblk/Contents/Resources/config.ovpn
--verb
3
--cd
/Library/Application Support/Tunnelblick/Users/macuser/hwinds.tblk/Contents/Resources
--management
127.0.0.1
1337
--management-query-passwords
--management-hold
--redirect-gateway
def1
--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
2018-02-14 15:18:02 OpenVPN 2.3.18 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Dec 7 2017
2018-02-14 15:18:02 library versions: OpenSSL 1.0.2n 7 Dec 2017, LZO 2.10
2018-02-14 15:18:02 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:1337
2018-02-14 15:18:02 Need hold release from management interface, waiting...
2018-02-14 15:18:02 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:1337
2018-02-14 15:18:02 *Tunnelblick: openvpnstart starting OpenVPN
2018-02-14 15:18:02 *Tunnelblick: Established communication with OpenVPN
2018-02-14 15:18:02 MANAGEMENT: CMD 'pid'
2018-02-14 15:18:02 MANAGEMENT: CMD 'state on'
2018-02-14 15:18:02 MANAGEMENT: CMD 'state'
2018-02-14 15:18:02 MANAGEMENT: CMD 'bytecount 1'
2018-02-14 15:18:02 MANAGEMENT: CMD 'hold release'
2018-02-14 15:18:02 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
2018-02-14 15:18:02 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2018-02-14 15:18:02 Socket Buffers: R=[196724->196724] S=[9216->9216]
2018-02-14 15:18:02 UDPv4 link local: [undef]
2018-02-14 15:18:02 UDPv4 link remote: [AF_INET]11.222.333.44:1194
2018-02-14 15:18:02 MANAGEMENT: >STATE:1518639482,WAIT,,,
2018-02-14 15:20:39 *Tunnelblick: openvpnstart starting OpenVPN
2018-02-14 15:21:39 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
2018-02-14 15:21:39 TLS Error: TLS handshake failed
2018-02-14 15:21:39 SIGUSR1[soft,tls-error] received, process restarting
2018-02-14 15:21:39 MANAGEMENT: >STATE:1518639699,RECONNECTING,tls-error,,
2018-02-14 15:21:39 MANAGEMENT: CMD 'hold release'
2018-02-14 15:21:39 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
2018-02-14 15:21:39 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2018-02-14 15:21:39 Socket Buffers: R=[196724->196724] S=[9216->9216]
2018-02-14 15:21:39 UDPv4 link local: [undef]
2018-02-14 15:21:39 UDPv4 link remote: [AF_INET]11.222.333.44:1194
2018-02-14 15:21:39 MANAGEMENT: >STATE:1518639699,WAIT,,,
2018-02-14 15:22:39 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
2018-02-14 15:22:39 TLS Error: TLS handshake failed
2018-02-14 15:22:39 SIGUSR1[soft,tls-error] received, process restarting
2018-02-14 15:22:39 MANAGEMENT: >STATE:1518639759,RECONNECTING,tls-error,,
2018-02-14 15:22:39 MANAGEMENT: CMD 'hold release'
2018-02-14 15:22:39 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
2018-02-14 15:22:39 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2018-02-14 15:22:39 Socket Buffers: R=[196724->196724] S=[9216->9216]
2018-02-14 15:22:39 UDPv4 link local: [undef]
2018-02-14 15:22:39 UDPv4 link remote: [AF_INET]23.254.247.78:1194
2018-02-14 15:22:39 MANAGEMENT: >STATE:1518639759,WAIT,,,
How do I troubleshoot this and successfully tunnel my internet traffic? Thanks.