Routes on 192.168.0.2 before starting OpenVPN client:
Code: Select all
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 br0
0.0.0.0 192.168.0.254 0.0.0.0 UG 0 0 0 br0
Routes after starting the OpenVPN client:
Code: Select all
172.31.73.1 172.31.73.5 255.255.255.255 UGH 0 0 0 tun0
172.31.73.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
172.31.0.0 172.31.73.5 255.255.255.0 UG 0 0 0 tun0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br0
0.0.0.0 192.168.0.254 0.0.0.0 UG 0 0 0 br0
OpenVPN client log when starting:
Code: Select all
Tue Aug 9 19:30:08 2011 OpenVPN 2.1.4 x86_64-redhat-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on Apr 24 2011
Tue Aug 9 19:30:08 2011 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Aug 9 19:30:08 2011 LZO compression initialized
Tue Aug 9 19:30:08 2011 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ]
Tue Aug 9 19:30:08 2011 Socket Buffers: R=[124928->131072] S=[124928->131072]
Tue Aug 9 19:30:08 2011 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Aug 9 19:30:08 2011 Local Options hash (VER=V4): '22188c5b'
Tue Aug 9 19:30:08 2011 Expected Remote Options hash (VER=V4): 'a8f55717'
Tue Aug 9 19:30:08 2011 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Tue Aug 9 19:30:08 2011 UDPv4 link local: [undef]
Tue Aug 9 19:30:08 2011 UDPv4 link remote: 227.175.80.136:1194
Tue Aug 9 19:30:08 2011 TLS: Initial packet from 227.175.80.136:1194, sid=20ccf063 85cc7bce
Tue Aug 9 19:30:09 2011 VERIFY OK: depth=1, /C=US/ST=CA/L=SanFrancisco/O=Organized_Operations/CN=OpenVPN_CA/emailAddress=openvpn-admin@example.com
Tue Aug 9 19:30:09 2011 VERIFY OK: nsCertType=SERVER
Tue Aug 9 19:30:09 2011 VERIFY OK: depth=0, /C=US/ST=CA/L=SanFrancisco/O=Organized_Operations/OU=Home/CN=server.example.com/emailAddress=openvpn-admin@example.com
Tue Aug 9 19:30:10 2011 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Tue Aug 9 19:30:10 2011 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Aug 9 19:30:10 2011 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Tue Aug 9 19:30:10 2011 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Aug 9 19:30:10 2011 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Tue Aug 9 19:30:10 2011 [server.example.com] Peer Connection Initiated with 227.175.80.136:1194
Tue Aug 9 19:30:13 2011 SENT CONTROL [server.example.com]: 'PUSH_REQUEST' (status=1)
Tue Aug 9 19:30:13 2011 PUSH: Received control message: 'PUSH_REPLY,route 172.31.0.0 255.255.255.0,route 172.31.73.1,topology net30,ping 10,ping-restart 120,ifconfig 172.31.73.6 172.31.73.5'
Tue Aug 9 19:30:13 2011 OPTIONS IMPORT: timers and/or timeouts modified
Tue Aug 9 19:30:13 2011 OPTIONS IMPORT: --ifconfig/up options modified
Tue Aug 9 19:30:13 2011 OPTIONS IMPORT: route options modified
Tue Aug 9 19:30:13 2011 ROUTE default_gateway=192.168.0.254
Tue Aug 9 19:30:13 2011 TUN/TAP device tun0 opened
Tue Aug 9 19:30:13 2011 TUN/TAP TX queue length set to 100
Tue Aug 9 19:30:13 2011 /sbin/ip link set dev tun0 up mtu 1500
Tue Aug 9 19:30:13 2011 /sbin/ip addr add dev tun0 local 172.31.73.6 peer 172.31.73.5
Tue Aug 9 19:30:13 2011 /sbin/ip route add 172.31.0.0/24 via 172.31.73.5
Tue Aug 9 19:30:08 2011 LZO compression initialized
Tue Aug 9 19:30:08 2011 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ]
Tue Aug 9 19:30:08 2011 Socket Buffers: R=[124928->131072] S=[124928->131072]
Tue Aug 9 19:30:08 2011 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Aug 9 19:30:08 2011 Local Options hash (VER=V4): '22188c5b'
Tue Aug 9 19:30:08 2011 Expected Remote Options hash (VER=V4): 'a8f55717'
Tue Aug 9 19:30:08 2011 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Tue Aug 9 19:30:08 2011 UDPv4 link local: [undef]
Tue Aug 9 19:30:08 2011 UDPv4 link remote: 227.175.80.136:1194
Tue Aug 9 19:30:08 2011 TLS: Initial packet from 227.175.80.136:1194, sid=20ccf063 85cc7bce
Tue Aug 9 19:30:09 2011 VERIFY OK: depth=1, /C=US/ST=CA/L=SanFrancisco/O=Organized_Operations/CN=OpenVPN_CA/emailAddress=openvpn-admin@example.com
Tue Aug 9 19:30:09 2011 VERIFY OK: nsCertType=SERVER
Tue Aug 9 19:30:09 2011 VERIFY OK: depth=0, /C=US/ST=CA/L=SanFrancisco/O=Organized_Operations/OU=Home/CN=server.example.com/emailAddress=openvpn-admin@example.com
Tue Aug 9 19:30:10 2011 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Tue Aug 9 19:30:10 2011 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Aug 9 19:30:10 2011 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Tue Aug 9 19:30:10 2011 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Aug 9 19:30:10 2011 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Tue Aug 9 19:30:10 2011 [server.example.com] Peer Connection Initiated with 227.175.80.136:1194
Tue Aug 9 19:30:13 2011 SENT CONTROL [server.example.com]: 'PUSH_REQUEST' (status=1)
Tue Aug 9 19:30:13 2011 PUSH: Received control message: 'PUSH_REPLY,route 172.31.0.0 255.255.255.0,route 172.31.73.1,topology net30,ping 10,ping-restart 120,ifconfig 172.31.73.6 172.31.73.5'
Tue Aug 9 19:30:13 2011 OPTIONS IMPORT: timers and/or timeouts modified
Tue Aug 9 19:30:13 2011 OPTIONS IMPORT: --ifconfig/up options modified
Tue Aug 9 19:30:13 2011 OPTIONS IMPORT: route options modified
Tue Aug 9 19:30:13 2011 ROUTE default_gateway=192.168.0.254
Tue Aug 9 19:30:13 2011 TUN/TAP device tun0 opened
Tue Aug 9 19:30:13 2011 TUN/TAP TX queue length set to 100
Tue Aug 9 19:30:13 2011 /sbin/ip link set dev tun0 up mtu 1500
Tue Aug 9 19:30:13 2011 /sbin/ip addr add dev tun0 local 172.31.73.6 peer 172.31.73.5
Tue Aug 9 19:30:13 2011 /sbin/ip route add 172.31.0.0/24 via 172.31.73.5
Tue Aug 9 19:30:13 2011 /sbin/ip route add 172.31.73.1/32 via 172.31.73.5
Tue Aug 9 19:30:13 2011 GID set to openvpn
Tue Aug 9 19:30:13 2011 UID set to openvpn
Tue Aug 9 19:30:13 2011 Initialization Sequence Completed
Server log (172.31.0.8) during connection:
Code: Select all
Aug 9 10:27:31 lime openvpn[17851]: hv.example.local/131.87.15.108:52884 TLS: soft reset sec=0 bytes=48550/0 pkts=705/0
Aug 9 10:28:13 lime openvpn[17851]: MULTI: multi_create_instance called
Aug 9 10:28:13 lime openvpn[17851]: 131.87.15.108:36196 Re-using SSL/TLS context
Aug 9 10:28:13 lime openvpn[17851]: 131.87.15.108:36196 LZO compression initialized
Aug 9 10:28:13 lime openvpn[17851]: 131.87.15.108:36196 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ]
Aug 9 10:28:13 lime openvpn[17851]: 131.87.15.108:36196 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Aug 9 10:28:13 lime openvpn[17851]: 131.87.15.108:36196 Local Options hash (VER=V4): 'a8f55717'
Aug 9 10:28:13 lime openvpn[17851]: 131.87.15.108:36196 Expected Remote Options hash (VER=V4): '22188c5b'
Aug 9 10:28:13 lime openvpn[17851]: 131.87.15.108:36196 TLS: Initial packet from 131.87.15.108:36196, sid=7a64fa37 e36eaae1
Aug 9 10:28:15 lime openvpn[17851]: 131.87.15.108:36196 VERIFY OK: depth=1, /C=US/ST=CA/L=SanFrancisco/O=Organized_Operations/CN=OpenVPN_CA/emailAddress=openvpn-admin@example.com
Aug 9 10:28:15 lime openvpn[17851]: 131.87.15.108:36196 VERIFY OK: depth=0, /C=
DE/ST=BW/L=Mannheim/O=Organized_Operations/OU=The Org/CN=hv.example.local/emailAddress=openvpn-admin@example.com
Aug 9 10:28:15 lime openvpn[17851]: 131.87.15.108:36196 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Aug 9 10:28:15 lime openvpn[17851]: 131.87.15.108:36196 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Aug 9 10:28:15 lime openvpn[17851]: 131.87.15.108:36196 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Aug 9 10:28:15 lime openvpn[17851]: 131.87.15.108:36196 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Aug 9 10:28:16 lime openvpn[17851]: 131.87.15.108:36196 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Aug 9 10:28:16 lime openvpn[17851]: 131.87.15.108:36196 [hv.example.local] Peer Connection Initiated with 131.87.15.108:36196
Aug 9 10:28:16 lime openvpn[17851]: MULTI: new connection by client 'hv.example.local' will cause previous active sessions by this client to be dropped. Remember to use the --duplicate-cn option if you want multiple clients using the same certificate or username to concurrently connect.
Aug 9 10:28:16 lime openvpn[17851]: MULTI: Learn: 172.31.73.6 -> hv.example.local/131.87.15.108:36196
Aug 9 10:28:16 lime openvpn[17851]: MULTI: primary virtual IP for hv.example.local/131.87.15.108:36196: 172.31.73.6
Aug 9 10:28:18 lime openvpn[17851]: hv.example.local/131.87.15.108:36196 PUSH: Received control message: 'PUSH_REQUEST'
Aug 9 10:28:18 lime openvpn[17851]: hv.example.local/131.87.15.108:36196 SENT CONTROL [hv.example.local]: 'PUSH_REPLY,route 172.31.0.0 255.255.255.0,route 172.31.73.1,topology net30,ping 10,ping-restart 120,ifconfig 172.31.73.6 172.31.73.5' (status=1)
Aug 9 10:30:08 lime openvpn[17851]: MULTI: multi_create_instance called
Aug 9 10:30:08 lime openvpn[17851]: 131.87.15.108:48671 Re-using SSL/TLS context
Aug 9 10:30:08 lime openvpn[17851]: 131.87.15.108:48671 LZO compression initialized
Aug 9 10:30:08 lime openvpn[17851]: 131.87.15.108:48671 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ]
Aug 9 10:30:08 lime openvpn[17851]: 131.87.15.108:48671 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Aug 9 10:30:08 lime openvpn[17851]: 131.87.15.108:48671 Local Options hash (VER=V4): 'a8f55717'
Aug 9 10:30:08 lime openvpn[17851]: 131.87.15.108:48671 Expected Remote Options hash (VER=V4): '22188c5b'
Aug 9 10:30:08 lime openvpn[17851]: 131.87.15.108:48671 TLS: Initial packet from 131.87.15.108:48671, sid=d9e2f037 11eb88f1
Aug 9 10:30:10 lime openvpn[17851]: 131.87.15.108:48671 VERIFY OK: depth=1, /C=US/ST=CA/L=SanFrancisco/O=Organized_Operations/CN=OpenVPN_CA/emailAddress=openvpn-admin@example.com
Aug 9 10:30:10 lime openvpn[17851]: 131.87.15.108:48671 VERIFY OK: depth=0, /C=DE/ST=BW/L=Mannheim/O=Organized_Operations/OU=The_Org/CN=hv.example.local/emailAddress=openvpn-admin@example.com
Aug 9 10:30:10 lime openvpn[17851]: 131.87.15.108:48671 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Aug 9 10:30:10 lime openvpn[17851]: 131.87.15.108:48671 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Aug 9 10:30:10 lime openvpn[17851]: 131.87.15.108:48671 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Aug 9 10:30:10 lime openvpn[17851]: 131.87.15.108:48671 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Aug 9 10:30:10 lime openvpn[17851]: 131.87.15.108:48671 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Aug 9 10:30:10 lime openvpn[17851]: 88.130.15.108:48671 [hv.example.local] Peer Connection Initiated with 88.130.15.108:48671
Aug 9 10:30:10 lime openvpn[17851]: MULTI: new connection by client 'hv.example.local' will cause previous active sessions by this client to be dropped. Remember to use the --duplicate-cn option if you want multiple clients using the same certificate or username to concurrently connect.
Aug 9 10:30:10 lime openvpn[17851]: MULTI: Learn: 172.31.73.6 -> hv.example.local/88.130.15.108:48671
Aug 9 10:30:10 lime openvpn[17851]: MULTI: primary virtual IP for hv.example.local/88.130.15.108:48671: 172.31.73.6
Aug 9 10:30:13 lime openvpn[17851]: hv.example.local/88.130.15.108:48671 PUSH: Received control message: 'PUSH_REQUEST'
Aug 9 10:30:13 lime openvpn[17851]: hv.example.local/88.130.15.108:48671 SENT CONTROL [hv.example.local]: 'PUSH_REPLY,route 172.31.0.0 255.255.255.0,route 172.31.73.1,topology net30,ping 10,ping-restart 120,ifconfig 172.31.73.6 172.31.73.5' (status=1)