here it comes. Server:
server.conf
port 1194
proto udp
dev tun
ca ca.pem
cert clc.pem
key clk.pem
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.0.0 255.255.255.0"
push "route A.B.C.D 255.255.255.255"
keepalive 10 120
comp-lzo
max-clients 5
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
log /var/log/openvpn.log
verb 3
Note: A.B.C.D external Server IP. This one is located in internet
server-log:
Thu Feb 20 08:57:35 2014 TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Feb 20 08:57:35 2014 Socket Buffers: R=[212992->131072] S=[212992->131072]
Thu Feb 20 08:57:35 2014 ROUTE default_gateway=192.168.0.254
Thu Feb 20 08:57:35 2014 TUN/TAP device tun0 opened
Thu Feb 20 08:57:35 2014 TUN/TAP TX queue length set to 100
Thu Feb 20 08:57:35 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Thu Feb 20 08:57:35 2014 /sbin/ifconfig tun0 10.8.0.1 pointopoint 10.8.0.2 mtu 1500
Thu Feb 20 08:57:35 2014 /sbin/route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.8.0.2
Thu Feb 20 08:57:35 2014 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu Feb 20 08:57:35 2014 GID set to nogroup
Thu Feb 20 08:57:35 2014 UID set to nobody
Thu Feb 20 08:57:35 2014 UDPv4 link local (bound): [undef]
Thu Feb 20 08:57:35 2014 UDPv4 link remote: [undef]
Thu Feb 20 08:57:35 2014 MULTI: multi_init called, r=256 v=256
Thu Feb 20 08:57:35 2014 IFCONFIG POOL: base=10.8.0.4 size=62, ipv6=0
Thu Feb 20 08:57:35 2014 ifconfig_pool_read(), in='*******,10.8.0.4', TODO: IPv6
Thu Feb 20 08:57:35 2014 succeeded -> ifconfig_pool_set()
Thu Feb 20 08:57:35 2014 ifconfig_pool_read(), in='openVPN-RD-Client_01,10.8.0.8', TODO: IPv6
Thu Feb 20 08:57:35 2014 succeeded -> ifconfig_pool_set()
Thu Feb 20 08:57:35 2014 IFCONFIG POOL LIST
Thu Feb 20 08:57:35 2014 *******,10.8.0.4
Thu Feb 20 08:57:35 2014 Initialization Sequence Completed
Thu Feb 20 09:00:06 2014 MULTI: multi_create_instance called
Thu Feb 20 09:00:06 2014 62.224.X.Y:1042 Re-using SSL/TLS context
Thu Feb 20 09:00:06 2014 62.224.X.Y:1042 LZO compression initialized
Thu Feb 20 09:00:06 2014 62.224.X.Y:1042 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Feb 20 09:00:06 2014 62.224.X.Y:1042 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu Feb 20 09:00:06 2014 62.224.X.Y:1042 Local Options hash (VER=V4): '530fdded'
Thu Feb 20 09:00:06 2014 62.224.X.Y:1042 Expected Remote Options hash (VER=V4): '41690919'
Thu Feb 20 09:00:06 2014 62.224.X.Y:1042 TLS: Initial packet from [AF_INET]62.224.X.Y:1042, sid=9db9249d 9f5d861d
Thu Feb 20 09:00:08 2014 62.224.X.Y:1042 VERIFY OK: depth=1, /C=DE/ST=......
Thu Feb 20 09:00:08 2014 62.224.X.Y:1042 VERIFY OK: depth=0, /C=DE/ST=......
Thu Feb 20 09:00:08 2014 62.224.X.Y:1042 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Feb 20 09:00:08 2014 62.224.X.Y:1042 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 20 09:00:08 2014 62.224.X.Y:1042 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Feb 20 09:00:08 2014 62.224.X.Y:1042 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 20 09:00:08 2014 62.224.X.Y:1042 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 4096 bit RSA
Thu Feb 20 09:00:08 2014 62.224.X.Y:1042 [*******] Peer Connection Initiated with [AF_INET]62.224.X.Y:1042
Thu Feb 20 09:00:08 2014 *******/62.224.X.Y:1042 MULTI_sva: pool returned IPv4=10.8.0.6, IPv6=1::2c00:0:5e7f:0
Thu Feb 20 09:00:08 2014 *******/62.224.X.Y:1042 MULTI: Learn: 10.8.0.6 -> *******/62.224.X.Y:1042
Thu Feb 20 09:00:08 2014 *******/62.224.X.Y:1042 MULTI: primary virtual IP for *******/62.224.X.Y:1042: 10.8.0.6
Thu Feb 20 09:00:10 2014 *******/62.224.X.Y:1042 PUSH: Received control message: 'PUSH_REQUEST'
Thu Feb 20 09:00:10 2014 *******/62.224.X.Y:1042 send_push_reply(): safe_cap=960
Thu Feb 20 09:00:10 2014 *******/62.224.X.Y:1042 SENT CONTROL [*******]: 'PUSH_REPLY,route 192.168.0.0 255.255.255.0,route A:B:C:D 255.255.255.255,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5' (status=1)
Thu Feb 20 10:00:08 2014 *******/62.224.X.Y:1042 TLS: soft reset sec=0 bytes=38206/0 pkts=716/0
Thu Feb 20 10:00:09 2014 *******/62.224.X.Y:1042 VERIFY OK: depth=1, /C=DE...
Thu Feb 20 10:00:09 2014 *******/62.224.X.Y:1042 VERIFY OK: depth=0, /C=DE...
Thu Feb 20 10:00:09 2014 *******/62.224.X.Y:1042 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Feb 20 10:00:09 2014 *******/62.224.X.Y:1042 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 20 10:00:09 2014 *******/62.224.X.Y:1042 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Feb 20 10:00:09 2014 *******/62.224.X.Y:1042 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 20 10:00:09 2014 *******/62.224.X.Y:1042 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 4096 bit RSA
Thu Feb 20 11:00:08 2014 *******/62.224.X.Y:1042 TLS: tls_process: killed expiring key
Thu Feb 20 11:00:09 2014 *******/62.224.X.Y:1042 TLS: soft reset sec=0 bytes=36855/0 pkts=702/0
Thu Feb 20 11:00:11 2014 *******/62.224.X.Y:1042 VERIFY OK: depth=1, /C=DE.....
Thu Feb 20 11:00:11 2014 *******/62.224.X.Y:1042 VERIFY OK: depth=0, /C=DE.....
Thu Feb 20 11:00:11 2014 *******/62.224.X.Y:1042 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Feb 20 11:00:11 2014 *******/62.224.X.Y:1042 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 20 11:00:11 2014 *******/62.224.X.Y:1042 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Feb 20 11:00:11 2014 *******/62.224.X.Y:1042 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 20 11:00:11 2014 *******/62.224.X.Y:1042 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 4096 bit RSA
Note: *** client name
server route:
Ziel Router Genmask Flags Metric Ref Use Iface
default 192.168.0.254 0.0.0.0 UG 100 0 0 eth2
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
10.8.0.2 * 255.255.255.255 UH 0 0 0 tun0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth2
==============================
Client-Config: (Win XP)
nobind
client
dev tun
proto udp
remote U.X.Y.Z 1194
persist-key
persist-tun
ca ca.pem
cert client-cert.pem
key client-key.pem
comp-lzo
verb 4
mute 20
reneg-sec 0
ip-win32 netsh
client-log:
Thu Feb 20 08:59:36 2014 us=140000 Current Parameter Settings:
Thu Feb 20 08:59:36 2014 us=140000 config = 'my.ovpn'
Thu Feb 20 08:59:36 2014 us=140000 mode = 0
Thu Feb 20 08:59:36 2014 us=140000 show_ciphers = DISABLED
Thu Feb 20 08:59:36 2014 us=140000 show_digests = DISABLED
Thu Feb 20 08:59:36 2014 us=140000 show_engines = DISABLED
Thu Feb 20 08:59:36 2014 us=140000 genkey = DISABLED
Thu Feb 20 08:59:36 2014 us=140000 key_pass_file = '[UNDEF]'
Thu Feb 20 08:59:36 2014 us=140000 show_tls_ciphers = DISABLED
Thu Feb 20 08:59:36 2014 us=140000 Connection profiles [default]:
Thu Feb 20 08:59:36 2014 us=140000 proto = udp
Thu Feb 20 08:59:36 2014 us=140000 local = '[UNDEF]'
Thu Feb 20 08:59:36 2014 us=140000 local_port = 0
Thu Feb 20 08:59:36 2014 us=140000 remote = 'U.X.Y.Z'
Thu Feb 20 08:59:36 2014 us=140000 remote_port = 1194
Thu Feb 20 08:59:36 2014 us=140000 remote_float = DISABLED
Thu Feb 20 08:59:36 2014 us=140000 bind_defined = DISABLED
Thu Feb 20 08:59:36 2014 us=140000 bind_local = DISABLED
Thu Feb 20 08:59:36 2014 us=140000 connect_retry_seconds = 5
Thu Feb 20 08:59:36 2014 us=140000 connect_timeout = 10
Thu Feb 20 08:59:36 2014 us=140000 NOTE: --mute triggered...
Thu Feb 20 08:59:36 2014 us=140000 253 variation(s) on previous 20 message(s) suppressed by --mute
Thu Feb 20 08:59:36 2014 us=140000 OpenVPN 2.2.2 Win32-MSVC++ [SSL] [LZO2] [PKCS11] built on Dec 15 2011
Thu Feb 20 08:59:36 2014 us=140000 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Thu Feb 20 08:59:36 2014 us=140000 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu Feb 20 09:00:05 2014 us=718000 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Thu Feb 20 09:00:05 2014 us=765000 LZO compression initialized
Thu Feb 20 09:00:05 2014 us=765000 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Feb 20 09:00:05 2014 us=781000 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu Feb 20 09:00:05 2014 us=796000 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu Feb 20 09:00:05 2014 us=796000 Local Options String: 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Thu Feb 20 09:00:05 2014 us=796000 Expected Remote Options String: 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Thu Feb 20 09:00:05 2014 us=796000 Local Options hash (VER=V4): '41690919'
Thu Feb 20 09:00:05 2014 us=796000 Expected Remote Options hash (VER=V4): '530fdded'
Thu Feb 20 09:00:05 2014 us=796000 UDPv4 link local: [undef]
Thu Feb 20 09:00:05 2014 us=796000 UDPv4 link remote: U.X.Y.Z:1194
Thu Feb 20 09:00:05 2014 us=859000 TLS: Initial packet from U.X.Y.Z:1194, sid=cc8a6f6c 506ea1ac
Thu Feb 20 09:00:06 2014 us=343000 VERIFY OK: depth=1, /C=DE....
Thu Feb 20 09:00:06 2014 us=359000 VERIFY OK: depth=0, /C=DE...
Thu Feb 20 09:00:07 2014 us=656000 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Feb 20 09:00:07 2014 us=656000 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 20 09:00:07 2014 us=656000 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Feb 20 09:00:07 2014 us=656000 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 20 09:00:07 2014 us=656000 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 4096 bit RSA
Thu Feb 20 09:00:07 2014 us=656000 [openVPN-ReservoirDog] Peer Connection Initiated with U.X.Y.Z:1194
Thu Feb 20 09:00:09 2014 us=687000 SENT CONTROL [openVPN-ReservoirDog]: 'PUSH_REQUEST' (status=1)
Thu Feb 20 09:00:09 2014 us=718000 PUSH: Received control message: 'PUSH_REPLY,route 192.168.0.0 255.255.255.0,route A.B.C.D 255.255.255.255,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5'
Thu Feb 20 09:00:09 2014 us=718000 OPTIONS IMPORT: timers and/or timeouts modified
Thu Feb 20 09:00:09 2014 us=718000 OPTIONS IMPORT: --ifconfig/up options modified
Thu Feb 20 09:00:09 2014 us=718000 OPTIONS IMPORT: route options modified
Thu Feb 20 09:00:09 2014 us=750000 ROUTE default_gateway=192.168.2.1
Thu Feb 20 09:00:10 2014 us=765000 NETSH: C:\WINDOWS\system32\netsh.exe interface ip set address LAN-Verbindung 3 static 10.8.0.6 255.255.255.252
OK.
Thu Feb 20 09:00:16 2014 us=906000 NETSH: C:\WINDOWS\system32\netsh.exe interface ip delete dns LAN-Verbindung 3 all
OK.
Thu Feb 20 09:00:21 2014 us=765000 NETSH: C:\WINDOWS\system32\netsh.exe interface ip delete wins LAN-Verbindung 3 all
OK.
Thu Feb 20 09:00:25 2014 us=687000 TAP-WIN32 device [LAN-Verbindung 3] opened: \\.\Global\{AB0D5653-936C-4DE2-AAC6-25C43A66EABA}.tap
Thu Feb 20 09:00:25 2014 us=703000 TAP-Win32 Driver Version 9.9
Thu Feb 20 09:00:25 2014 us=703000 TAP-Win32 MTU=1500
Thu Feb 20 09:00:25 2014 us=703000 Successful ARP Flush on interface [3] {AB0D5653-936C-4DE2-AAC6-25C43A66EABA}
Thu Feb 20 09:00:31 2014 us=15000 TEST ROUTES: 3/3 succeeded len=3 ret=1 a=0 u/d=up
Thu Feb 20 09:00:31 2014 us=31000 C:\WINDOWS\system32\route.exe ADD 192.168.0.0 MASK 255.255.255.0 10.8.0.5
Thu Feb 20 09:00:31 2014 us=46000 Route addition via IPAPI succeeded [adaptive]
Thu Feb 20 09:00:31 2014 us=62000 C:\WINDOWS\system32\route.exe ADD A.B.C.D MASK 255.255.255.255 10.8.0.5
Thu Feb 20 09:00:31 2014 us=78000 Route addition via IPAPI succeeded [adaptive]
Thu Feb 20 09:00:31 2014 us=93000 C:\WINDOWS\system32\route.exe ADD 10.8.0.1 MASK 255.255.255.255 10.8.0.5
Thu Feb 20 09:00:31 2014 us=109000 Route addition via IPAPI succeeded [adaptive]
Thu Feb 20 09:00:31 2014 us=109000 Initialization Sequence Completed
Thu Feb 20 10:00:08 2014 us=296000 VERIFY OK: depth=1, /C=DE.....
Thu Feb 20 10:00:08 2014 us=312000 VERIFY OK: depth=0, /C=DE......
Thu Feb 20 10:00:09 2014 us=390000 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Feb 20 10:00:09 2014 us=390000 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 20 10:00:09 2014 us=390000 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Feb 20 10:00:09 2014 us=390000 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 20 10:00:09 2014 us=390000 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 4096 bit RSA
Thu Feb 20 11:00:07 2014 us=625000 TLS: tls_process: killed expiring key
Thu Feb 20 11:00:10 2014 us=156000 VERIFY OK: depth=1, /C=DE.....
Thu Feb 20 11:00:10 2014 us=171000 VERIFY OK: depth=0, /C=DE.....
Thu Feb 20 11:00:11 2014 us=296000 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Feb 20 11:00:11 2014 us=296000 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 20 11:00:11 2014 us=296000 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Feb 20 11:00:11 2014 us=296000 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 20 11:00:11 2014 us=296000 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 4096 bit RSA
client route:
===========================================================================
Schnittstellenliste
0x1 ........................... MS TCP Loopback interface
0x2 ...00 23 54 46 89 29 ...... Atheros AR8121/AR8113/AR8114 PCI-E Ethernet Cont
roller - Paketplaner-Miniport
0x3 ...00 ff ab 0d 56 53 ...... TAP-Win32 Adapter V9 - Paketplaner-Miniport
===========================================================================
===========================================================================
Aktive Routen:
Netzwerkziel Netzwerkmaske Gateway Schnittstelle Anzahl
0.0.0.0 0.0.0.0 10.8.0.5 10.8.0.6 30
0.0.0.0 0.0.0.0 192.168.2.1 192.168.2.100 20
10.8.0.1 255.255.255.255 10.8.0.5 10.8.0.6 1
10.8.0.4 255.255.255.252 10.8.0.6 10.8.0.6 30
10.8.0.6 255.255.255.255 127.0.0.1 127.0.0.1 30
10.255.255.255 255.255.255.255 10.8.0.6 10.8.0.6 30
A.B.C.D 255.255.255.255 10.8.0.5 10.8.0.6 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 10.8.0.5 10.8.0.6 1
192.168.2.0 255.255.255.0 192.168.2.100 192.168.2.100 20
192.168.2.100 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.2.255 255.255.255.255 192.168.2.100 192.168.2.100 20
224.0.0.0 240.0.0.0 10.8.0.6 10.8.0.6 30
224.0.0.0 240.0.0.0 192.168.2.100 192.168.2.100 20
255.255.255.255 255.255.255.255 10.8.0.6 10.8.0.6 1
255.255.255.255 255.255.255.255 192.168.2.100 192.168.2.100 1
Standardgateway: 192.168.2.1
===========================================================================
St??ndige Routen:
Netzwerkadresse Netzmaske Gatewayadresse Anzahl
192.168.0.0 255.255.255.0 10.8.0.5 1
that's it...