Hello,
I've setup OpenVPN on my home server Ubuntu (14.04). But I'm having trouble connecting to it, my server config file is as follows:
port 1194
proto udp
dev tun
ca ca.crt
cert xxxxx.crt
key xxxxx.key # This file should be kept secret
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
and my client config file is as follows:
client
dev tun
proto udp
remote xxx.xxx.xxx.xxx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert xxxxx.crt
key xxxxx.key
comp-lzo
verb 3
The log file from Tunnelblick is:
2014-07-17 22:04:56 *Tunnelblick: OS X 10.9.4; Tunnelblick 3.4beta30 (build 3893)
2014-07-17 22:04:56 *Tunnelblick: Attempting connection with ubuntu using shadow copy; Set nameserver = 1; monitoring connection
2014-07-17 22:04:56 *Tunnelblick: openvpnstart start ubuntu.tblk 1337 1 0 1 0 16689 -ptADGNWradsgnw 2.2.1
2014-07-17 22:04:56 *Tunnelblick: openvpnstart starting OpenVPN
2014-07-17 22:04:56 *Tunnelblick: openvpnstart log:
Tunnelblick: Loading tun-signed.kext
Tunnelblick:
OpenVPN started successfully. Command used to start OpenVPN (one argument per displayed line):
/Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.2.1/openvpn
--daemon
--log
/Library/Application Support/Tunnelblick/Logs/-SUsers-Sxxx-SLibrary-SApplication Support-STunnelblick-SConfigurations-Subuntu.tblk-SContents-SResources-Sconfig.ovpn.1_0_1_0_16689.1337.openvpn.log
--cd
/Library/Application Support/Tunnelblick/Users/xxx/ubuntu.tblk/Contents/Resources
--config
/Library/Application Support/Tunnelblick/Users/xxx/ubuntu.tblk/Contents/Resources/config.ovpn
--cd
/Library/Application Support/Tunnelblick/Users/xxx/ubuntu.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 -m -w -d -f -ptADGNWradsgnw
--down
/Applications/Tunnelblick.app/Contents/Resources/client.down.tunnelblick.sh -m -w -d -f -ptADGNWradsgnw
2014-07-17 22:04:56 *Tunnelblick: Established communication with OpenVPN
2014-07-17 22:04:56 OpenVPN 2.2.1 i386-apple-darwin [SSL] [LZO2] [PKCS11] [eurephia] built on Jul 8 2014
2014-07-17 22:04:56 MANAGEMENT: TCP Socket listening on 127.0.0.1:1337
2014-07-17 22:04:56 Need hold release from management interface, waiting...
2014-07-17 22:04:56 MANAGEMENT: Client connected from 127.0.0.1:1337
2014-07-17 22:04:56 MANAGEMENT: CMD 'pid'
2014-07-17 22:04:56 MANAGEMENT: CMD 'state on'
2014-07-17 22:04:56 MANAGEMENT: CMD 'state'
2014-07-17 22:04:56 MANAGEMENT: CMD 'bytecount 1'
2014-07-17 22:04:56 MANAGEMENT: CMD 'hold release'
2014-07-17 22:04:56 WARNING: No server certificate verification method has been enabled. See
http://openvpn.net/howto.html#mitm for more info.
2014-07-17 22:04:56 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2014-07-17 22:04:56 MANAGEMENT: Client disconnected
2014-07-17 22:04:56 Cannot load certificate file client1.crt: error:0906D06C:PEM routines:PEM_read_bio:no start line: error:140AD009:SSL routines:SSL_CTX_use_certificate_file:PEM lib
2014-07-17 22:04:56 Exiting
2014-07-17 22:04:57 *Tunnelblick: No 'post-disconnect.sh' script to execute
2014-07-17 22:04:57 *Tunnelblick: Expected disconnection occurred.
I ultimately want to use the VPN to connect to my work computer at the moment I'm just using my laptop to test access.
Any help appreciated...