Server config:
Code: Select all
port 1194
proto udp
dev tap0
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/keyserver.crt
key /etc/openvpn/easy-rsa/keys/keyserver.key # This file should be kept secret
dh /etc/openvpn/easy-rsa/keys/dh2048.pem
ifconfig-pool-persist ipp.txt
server-bridge 192.168.1.19 255.255.255.0 192.168.1.240 192.168.1.254
push "route 192.168.1.0 255.255.255.0 192.168.1.1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.8.4"
client-to-client
keepalive 10 120
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0 # This file is secret
cipher AES-256-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log 20
log /var/log/openvpn.log
verb 4
mute 10
Client config:
Code: Select all
client
dev tap0
proto udp
remote x.x.x.x 1194
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ns-cert-type server
key-direction 1
cipher AES-256-CBC
comp-lzo
verb 4
mute 20
Server log:
Code: Select all
Sat Jan 17 16:07:21 2015 us=182256 MULTI: multi_create_instance called
Sat Jan 17 16:07:21 2015 us=182823 1.2.3.4:52655 Re-using SSL/TLS context
Sat Jan 17 16:07:21 2015 us=183314 1.2.3.4:52655 LZO compression initialized
Sat Jan 17 16:07:21 2015 us=185141 1.2.3.4:52655 Control Channel MTU parms [ L:1590 D:166 EF:66 EB:0 ET:0 EL:0 ]
Sat Jan 17 16:07:21 2015 us=185408 1.2.3.4:52655 Data Channel MTU parms [ L:1590 D:1450 EF:58 EB:135 ET:32 EL:0 AF
:3/1 ]
Sat Jan 17 16:07:21 2015 us=185921 1.2.3.4:52655 Local Options String: 'V4,dev-type tap,link-mtu 1590,tun-mtu 1532
,proto UDPv4,comp-lzo,keydir 0,cipher AES-256-CBC,auth SHA1,keysize 256,tls-auth,key-method 2,tls-server'
Sat Jan 17 16:07:21 2015 us=186268 1.2.3.4:52655 Expected Remote Options String: 'V4,dev-type tap,link-mtu 1590,tu
n-mtu 1532,proto UDPv4,comp-lzo,keydir 1,cipher AES-256-CBC,auth SHA1,keysize 256,tls-auth,key-method 2,tls-client'
Sat Jan 17 16:07:21 2015 us=186709 1.2.3.4:52655 Local Options hash (VER=V4): '44bd8b5e'
Sat Jan 17 16:07:21 2015 us=186959 1.2.3.4:52655 Expected Remote Options hash (VER=V4): '48527533'
Sat Jan 17 16:07:21 2015 us=187485 1.2.3.4:52655 TLS: Initial packet from [AF_INET]1.2.3.4:52655, sid=d72723
6e 447fce72
Sat Jan 17 16:07:22 2015 us=339935 1.2.3.4:52655 Replay-window backtrack occurred [1]
Sat Jan 17 16:07:22 2015 us=417102 1.2.3.4:52655 VERIFY OK: depth=1, /C=US/ST=NY/L=NewYork/O=X/OU=changeme/CN=c
hangeme/name=changeme/emailAddress=Y@Z.com
Sat Jan 17 16:07:22 2015 us=421079 1.2.3.4:52655 VERIFY OK: depth=0, /C=US/ST=NY/L=NewYork/O=X/OU=changeme/CN=CLIENT/name=changeme/emailAddress=Y@Z.com
Sat Jan 17 16:07:25 2015 us=457006 1.2.3.4:52655 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 b
it key
Sat Jan 17 16:07:25 2015 us=457366 1.2.3.4:52655 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC
authentication
Sat Jan 17 16:07:25 2015 us=457570 1.2.3.4:52655 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 b
it key
Sat Jan 17 16:07:25 2015 us=457778 1.2.3.4:52655 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC
authentication
Sat Jan 17 16:07:25 2015 us=532495 1.2.3.4:52655 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 20
48 bit RSA
Sat Jan 17 16:07:25 2015 us=532908 1.2.3.4:52655 [CLIENT] Peer Connection Initiated with [AF_INET]1.2.3.4:52655
Sat Jan 17 16:07:25 2015 us=533360 CLIENT/1.2.3.4:52655 MULTI_sva: pool returned IPv4=192.168.1.241, IPv6
=48e1:bbbe:804e:f1b6:347b:f6b6:c1d:d1b7
Sat Jan 17 16:07:27 2015 us=631480 CLIENT/1.2.3.4:52655 PUSH: Received control message: 'PUSH_REQUEST'
Sat Jan 17 16:07:27 2015 us=631782 CLIENT/1.2.3.4:52655 send_push_reply(): safe_cap=960
Sat Jan 17 16:07:27 2015 us=632555 CLIENT/1.2.3.4:52655 SENT CONTROL [CLIENT]: 'PUSH_REPLY,route
192.168.1.0 255.255.255.0 192.168.1.1,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.8.4,route-gateway 192.168.1.19,ping 1
0,ping-restart 120,ifconfig 192.168.1.241 255.255.255.0' (status=1)
Sat Jan 17 16:07:31 2015 us=14749 CLIENT/1.2.3.4:52655 MULTI: Learn: 7a:c7:f8:52:94:47 -> CLIENT
/1.2.3.4:52655
Sat Jan 17 16:07:32 2015 us=157231 CLIENT/1.2.3.4:52655 Replay-window backtrack occurred [7]
Sat Jan 17 16:08:42 2015 us=753480 read UDPv4 [ECONNREFUSED|ECONNREFUSED]: Connection refused (code=111)
Sat Jan 17 16:08:43 2015 us=196478 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Sat Jan 17 16:08:43 2015 us=230807 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Sat Jan 17 16:08:43 2015 us=430694 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Sat Jan 17 16:08:43 2015 us=439961 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Sat Jan 17 16:08:43 2015 us=506400 read UDPv4 [ECONNREFUSED|ECONNREFUSED]: Connection refused (code=111)
Sat Jan 17 16:08:43 2015 us=588829 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Sat Jan 17 16:08:43 2015 us=741358 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Sat Jan 17 16:08:43 2015 us=935385 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Sat Jan 17 16:08:44 2015 us=222903 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Sat Jan 17 16:08:44 2015 us=411791 NOTE: --mute triggered...
Client log:
Code: Select all
2015-01-17 16:07:14 *Tunnelblick: OS X 10.10.1; Tunnelblick 3.4.3 (build 4055.4198); prior version 3.4.2 (build 4055.4161)
2015-01-17 16:07:14 *Tunnelblick: Attempting connection with CLIENT using shadow copy; Set nameserver = 1; monitoring connection
2015-01-17 16:07:14 *Tunnelblick: openvpnstart start CLIENT.tblk 1337 1 0 1 0 17266 -ptADGNWradsgnw 2.3.6
2015-01-17 16:07:15 *Tunnelblick: openvpnstart log:
Tunnelblick: Loading tap-signed.kext
Tunnelblick:
OpenVPN started successfully. Command used to start OpenVPN (one argument per displayed line):
/Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.3.6/openvpn
--daemon
--log
/Library/Application Support/Tunnelblick/Logs/-SUsers-SX-SLibrary-SApplication Support-STunnelblick-SConfigurations-SCLIENT.tblk-SContents-SResources-Sconfig.ovpn.1_0_1_0_17266.1337.openvpn.log
--cd
/Library/Application Support/Tunnelblick/Users/X/CLIENT.tblk/Contents/Resources
--config
/Library/Application Support/Tunnelblick/Users/X/CLIENT.tblk/Contents/Resources/config.ovpn
--cd
/Library/Application Support/Tunnelblick/Users/X/CLIENT.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 -m -w -d -a -f -ptADGNWradsgnw
--down
/Applications/Tunnelblick.app/Contents/Resources/client.down.tunnelblick.sh -m -w -d -a -f -ptADGNWradsgnw
--route-pre-down
/Applications/Tunnelblick.app/Contents/Resources/client.route-pre-down.tunnelblick.sh -m -w -d -a -f -ptADGNWradsgnw
2015-01-17 16:07:14 *Tunnelblick: openvpnstart starting OpenVPN
2015-01-17 16:07:15 *Tunnelblick: Established communication with OpenVPN
2015-01-17 16:07:15 us=491941 Current Parameter Settings:
2015-01-17 16:07:15 us=492077 config = '/Library/Application Support/Tunnelblick/Users/X/CLIENT.tblk/Contents/Resources/config.ovpn'
2015-01-17 16:07:15 us=492085 mode = 0
2015-01-17 16:07:15 us=492089 show_ciphers = DISABLED
2015-01-17 16:07:15 us=492093 show_digests = DISABLED
2015-01-17 16:07:15 us=492097 show_engines = DISABLED
2015-01-17 16:07:15 us=492101 genkey = DISABLED
2015-01-17 16:07:15 us=492105 key_pass_file = '[UNDEF]'
2015-01-17 16:07:15 us=492109 show_tls_ciphers = DISABLED
2015-01-17 16:07:15 us=492113 Connection profiles [default]:
2015-01-17 16:07:15 us=492117 proto = udp
2015-01-17 16:07:15 us=492121 local = '[UNDEF]'
2015-01-17 16:07:15 us=492125 local_port = 0
2015-01-17 16:07:15 us=492128 remote = '4.3.2.1'
2015-01-17 16:07:15 us=492132 remote_port = 1194
2015-01-17 16:07:15 us=492136 remote_float = DISABLED
2015-01-17 16:07:15 us=492140 bind_defined = DISABLED
2015-01-17 16:07:15 us=492144 bind_local = DISABLED
2015-01-17 16:07:15 us=492148 connect_retry_seconds = 5
2015-01-17 16:07:15 us=492151 connect_timeout = 10
2015-01-17 16:07:15 us=492155 NOTE: --mute triggered...
2015-01-17 16:07:15 us=492169 252 variation(s) on previous 20 message(s) suppressed by --mute
2015-01-17 16:07:15 us=492177 OpenVPN 2.3.6 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Jan 8 2015
2015-01-17 16:07:15 us=492187 library versions: OpenSSL 1.0.1k 8 Jan 2015, LZO 2.08
2015-01-17 16:07:15 us=493033 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:1337
2015-01-17 16:07:15 us=493639 Need hold release from management interface, waiting...
2015-01-17 16:07:15 us=699843 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:1337
2015-01-17 16:07:15 us=762777 MANAGEMENT: CMD 'pid'
2015-01-17 16:07:15 us=762948 MANAGEMENT: CMD 'state on'
2015-01-17 16:07:15 us=763032 MANAGEMENT: CMD 'state'
2015-01-17 16:07:15 us=763148 MANAGEMENT: CMD 'bytecount 1'
2015-01-17 16:07:15 us=763221 MANAGEMENT: CMD 'hold release'
2015-01-17 16:07:15 us=763465 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2015-01-17 16:07:20 us=525460 MANAGEMENT: CMD 'password [...]'
2015-01-17 16:07:20 us=525780 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
2015-01-17 16:07:20 us=526383 Control Channel Authentication: tls-auth using INLINE static key file
2015-01-17 16:07:20 us=526731 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2015-01-17 16:07:20 us=526900 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2015-01-17 16:07:20 us=527046 LZO compression initialized
2015-01-17 16:07:20 us=527231 Control Channel MTU parms [ L:1590 D:166 EF:66 EB:0 ET:0 EL:0 ]
2015-01-17 16:07:20 us=527379 Socket Buffers: R=[196724->65536] S=[9216->65536]
2015-01-17 16:07:20 us=527723 MANAGEMENT: >STATE:1421528840,RESOLVE,,,
2015-01-17 16:07:21 us=12940 Data Channel MTU parms [ L:1590 D:1450 EF:58 EB:135 ET:32 EL:0 AF:3/1 ]
2015-01-17 16:07:21 us=13157 Local Options String: 'V4,dev-type tap,link-mtu 1590,tun-mtu 1532,proto UDPv4,comp-lzo,keydir 1,cipher AES-256-CBC,auth SHA1,keysize 256,tls-auth,key-method 2,tls-client'
2015-01-17 16:07:21 us=13260 Expected Remote Options String: 'V4,dev-type tap,link-mtu 1590,tun-mtu 1532,proto UDPv4,comp-lzo,keydir 0,cipher AES-256-CBC,auth SHA1,keysize 256,tls-auth,key-method 2,tls-server'
2015-01-17 16:07:21 us=13369 Local Options hash (VER=V4): '48527533'
2015-01-17 16:07:21 us=13497 Expected Remote Options hash (VER=V4): '44bd8b5e'
2015-01-17 16:07:21 us=13604 UDPv4 link local: [undef]
2015-01-17 16:07:21 us=13798 UDPv4 link remote: [AF_INET]4.3.2.1:1194
2015-01-17 16:07:21 us=13968 MANAGEMENT: >STATE:1421528841,WAIT,,,
2015-01-17 16:07:21 us=108834 MANAGEMENT: >STATE:1421528841,AUTH,,,
2015-01-17 16:07:21 us=109012 TLS: Initial packet from [AF_INET]4.3.2.1:1194, sid=494d1b03 f4d0a11d
2015-01-17 16:07:21 us=815852 VERIFY OK: depth=1, C=US, ST=NY, L=NewYork, O=X, OU=changeme, CN=changeme, name=changeme, emailAddress=Y@Z.com
2015-01-17 16:07:21 us=816711 VERIFY OK: nsCertType=SERVER
2015-01-17 16:07:21 us=816827 VERIFY OK: depth=0, C=US, ST=NY, L=NewYork, O=X, OU=changeme, CN=keyserver, name=changeme, emailAddress=Y@Z.com
2015-01-17 16:07:25 us=411380 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
2015-01-17 16:07:25 us=411593 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
2015-01-17 16:07:25 us=411719 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
2015-01-17 16:07:25 us=411992 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
2015-01-17 16:07:25 us=412296 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
2015-01-17 16:07:25 us=412483 [keyserver] Peer Connection Initiated with [AF_INET]4.3.2.1:1194
2015-01-17 16:07:26 us=251964 MANAGEMENT: >STATE:1421528846,GET_CONFIG,,,
2015-01-17 16:07:27 us=480674 SENT CONTROL [keyserver]: 'PUSH_REQUEST' (status=1)
2015-01-17 16:07:27 us=558223 PUSH: Received control message: 'PUSH_REPLY,route 192.168.1.0 255.255.255.0 192.168.1.1,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.8.4,route-gateway 192.168.1.19,ping 10,ping-restart 120,ifconfig 192.168.1.241 255.255.255.0'
2015-01-17 16:07:27 us=558527 OPTIONS IMPORT: timers and/or timeouts modified
2015-01-17 16:07:27 us=558668 OPTIONS IMPORT: --ifconfig/up options modified
2015-01-17 16:07:27 us=558761 OPTIONS IMPORT: route options modified
2015-01-17 16:07:27 us=558845 OPTIONS IMPORT: route-related options modified
2015-01-17 16:07:27 us=558924 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
2015-01-17 16:07:27 us=559533 TUN/TAP device /dev/tap0 opened
2015-01-17 16:07:27 us=559702 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
2015-01-17 16:07:27 us=559860 MANAGEMENT: >STATE:1421528847,ASSIGN_IP,,192.168.1.241,
2015-01-17 16:07:27 us=559978 /sbin/ifconfig tap0 delete
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
2015-01-17 16:07:27 us=567244 NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure
2015-01-17 16:07:27 us=567406 /sbin/ifconfig tap0 192.168.1.241 netmask 255.255.255.0 mtu 1500 up
2015-01-17 16:07:27 us=569901 /Applications/Tunnelblick.app/Contents/Resources/client.up.tunnelblick.sh -m -w -d -a -f -ptADGNWradsgnw tap0 1500 1590 192.168.1.241 255.255.255.0 init
**********************************************
Start of output from client.up.tunnelblick.sh
Configuring tap DNS via OpenVPN
Retrieved from OpenVPN: name server(s) [ 8.8.8.8 8.8.8.4 ], search domain(s) [ ] and SMB server(s) [ ] and using default domain name [ openvpn ]
ServerAddresses '8.8.8.8 8.8.8.4' ignored because ServerAddresses was set manually
Setting search domains to 'openvpn' because running under OS X 10.6 or higher and the search domains were not set manually and 'Prepend domain name to search domains' was not selected
Saved the DNS and SMB configurations so they can be restored
Set ServerAddresses to 8.8.8.8
Set SearchDomains to openvpn
Set DomainName to openvpn
Flushed the DNS cache via dscacheutil
No matching processes were found
mDNSResponder not running. Not notifying it that the DNS cache was flushed
Setting up to monitor system configuration with process-network-changes
End of output from client.up.tunnelblick.sh
**********************************************
2015-01-17 16:07:30 us=854206 /sbin/route add -net 4.3.2.1 4.20.10.1 255.255.255.255
add net 4.3.2.1: gateway 4.20.10.1
2015-01-17 16:07:30 us=858052 /sbin/route add -net 0.0.0.0 192.168.1.19 128.0.0.0
add net 0.0.0.0: gateway 192.168.1.19
2015-01-17 16:07:30 us=860031 /sbin/route add -net 128.0.0.0 192.168.1.19 128.0.0.0
add net 128.0.0.0: gateway 192.168.1.19
2015-01-17 16:07:30 us=861833 MANAGEMENT: >STATE:1421528850,ADD_ROUTES,,,
2015-01-17 16:07:30 us=861944 /sbin/route add -net 192.168.1.0 192.168.1.1 255.255.255.0
route: writing to routing socket: File exists
add net 192.168.1.0: gateway 192.168.1.1: File exists
2015-01-17 16:07:30 us=863755 Initialization Sequence Completed
2015-01-17 16:07:30 us=863882 MANAGEMENT: >STATE:1421528850,CONNECTED,SUCCESS,192.168.1.241,4.3.2.1
2015-01-17 16:07:31 *Tunnelblick: No 'connected.sh' script to execute
2015-01-17 16:07:35 *Tunnelblick process-network-changes: A system configuration change was ignored
2015-01-17 16:08:06 *Tunnelblick: After 30.0 seconds, gave up trying to fetch IP address information using the ipInfo host's name after connecting.
2015-01-17 16:08:36 *Tunnelblick: After 30.0 seconds, gave up trying to fetch IP address information using the ipInfo host's IP address after connecting.
2015-01-17 16:08:42 *Tunnelblick: Disconnecting; VPN Details… window disconnect button pressed
2015-01-17 16:08:42 *Tunnelblick: Disconnecting using 'kill'
2015-01-17 16:08:42 us=193109 event_wait : Interrupted system call (code=4)
2015-01-17 16:08:42 us=193626 TCP/UDP: Closing socket
2015-01-17 16:08:42 us=193754 /Applications/Tunnelblick.app/Contents/Resources/client.route-pre-down.tunnelblick.sh -m -w -d -a -f -ptADGNWradsgnw tap0 1500 1590 192.168.1.241 255.255.255.0 init
**********************************************
Start of output from client.route-pre-down.tunnelblick.sh
No action by client.route-pre-down.tunnelblick.sh is needed because this TAP connection does not use DHCP via the TAP device.
End of output from client.route-pre-down.tunnelblick.sh
**********************************************
2015-01-17 16:08:42 us=241425 /sbin/route delete -net 192.168.1.0 192.168.1.1 255.255.255.0
delete net 192.168.1.0: gateway 192.168.1.1
2015-01-17 16:08:42 us=243296 /sbin/route delete -net 4.3.2.1 4.20.10.1 255.255.255.255
delete net 4.3.2.1: gateway 4.20.10.1
2015-01-17 16:08:42 us=245736 /sbin/route delete -net 0.0.0.0 192.168.1.19 128.0.0.0
delete net 0.0.0.0: gateway 192.168.1.19
2015-01-17 16:08:42 us=247692 /sbin/route delete -net 128.0.0.0 192.168.1.19 128.0.0.0
delete net 128.0.0.0: gateway 192.168.1.19
2015-01-17 16:08:42 us=249407 Closing TUN/TAP interface
2015-01-17 16:08:42 us=249717 /Applications/Tunnelblick.app/Contents/Resources/client.down.tunnelblick.sh -m -w -d -a -f -ptADGNWradsgnw tap0 1500 1590 192.168.1.241 255.255.255.0 init
**********************************************
Start of output from client.down.tunnelblick.sh
Cancelled monitoring of system configuration changes
Restored the DNS and SMB configurations
Flushed the DNS cache via dscacheutil
No matching processes were found
mDNSResponder not running. Not notifying it that the DNS cache was flushed
End of output from client.down.tunnelblick.sh
**********************************************
2015-01-17 16:08:42 us=460441 SIGTERM[hard,] received, process exiting
2015-01-17 16:08:42 us=460603 MANAGEMENT: >STATE:1421528922,EXITING,SIGTERM,,
2015-01-17 16:08:43 *Tunnelblick: No 'post-disconnect.sh' script to execute
2015-01-17 16:08:43 *Tunnelblick: Expected disconnection occurred.