Hey thanks for helping Traffic! Yes I have absolutely read that page in it's entirety. I've been through so many different help sites and howtos that at this point my configs are a bad mixture of everything that doesn't work.
I've gone back through and made some changes to try and be as close to that tutorial as possible.
/etc/openvpn/server.conf
proto udp
dev tap0
up "/etc/openvpn/up.sh br0"
down "/etc/openvpn/down.sh br0"
ca ca.crt
cert cerberus-vm.crt
key cerberus-vm.key
dh dh2048.pem
;server 10.8.0.0 255.255.255.0
server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100
push "redirect-gateway def1"
ifconfig-pool-persist ipp.txt
keepalive 10 120
tls-auth ta.key 0
# Compress data to save bandwidth
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
# Logs are useful for debugging
log-append openvpn-log
status openvpn-status.log
verb 4
mute 10
iptables --list -xvn
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- tap0 * 0.0.0.0/0 0.0.0.0/0
57 4410 ACCEPT all -- br0 * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- br0 * 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 51 packets, 7316 bytes)
pkts bytes target prot opt in out source destination
netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 x.y.145.142 0.0.0.0 UG 0 0 0 br0
x.y.145.128 0.0.0.0 255.255.255.240 U 0 0 0 br0
Here's what openvpn-log looks like on cerberus-vm when the windows client connects
/etc/openvpn/openvpn-log
Tue Oct 7 07:38:57 2014 us=9968 MULTI: multi_create_instance called
Tue Oct 7 07:38:57 2014 us=10077 67.190.99.141:51670 Re-using SSL/TLS context
Tue Oct 7 07:38:57 2014 us=10128 67.190.99.141:51670 LZO compression initialized
Tue Oct 7 07:38:57 2014 us=10271 67.190.99.141:51670 Control Channel MTU parms [ L:1574 D:166 EF:66 EB:0 ET:0 EL:0 ]
Tue Oct 7 07:38:57 2014 us=10297 67.190.99.141:51670 Data Channel MTU parms [ L:1574 D:1450 EF:42 EB:135 ET:32 EL:0 AF:3/1 ]
Tue Oct 7 07:38:57 2014 us=10331 67.190.99.141:51670 Local Options String: 'V4,dev-type tap,link-mtu 1574,tun-mtu 1532,proto UDPv4,comp-lzo,keydir 0,cipher BF-CBC,auth SHA1,keysize 128,tls-auth,key-method 2,tls-server'
Tue Oct 7 07:38:57 2014 us=10345 67.190.99.141:51670 Expected Remote Options String: 'V4,dev-type tap,link-mtu 1574,tun-mtu 1532,proto UDPv4,comp-lzo,keydir 1,cipher BF-CBC,auth SHA1,keysize 128,tls-auth,key-method 2,tls-client'
Tue Oct 7 07:38:57 2014 us=10375 67.190.99.141:51670 Local Options hash (VER=V4): '360696c5'
Tue Oct 7 07:38:57 2014 us=10398 67.190.99.141:51670 Expected Remote Options hash (VER=V4): '13a273ba'
Tue Oct 7 07:38:57 2014 us=10441 67.190.99.141:51670 TLS: Initial packet from [AF_INET]67.190.99.141:51670, sid=3cf38c08 c8eb31cb
Tue Oct 7 07:38:57 2014 us=339766 67.190.99.141:51670 VERIFY OK: depth=1, C=US, ST=CO, L=Colorado Springs, O=xxx yyy, OU=xxxvpn, CN=xxxvpn, name=xxxvpn, emailAddress=xxx.yyy@xxx.org
Tue Oct 7 07:38:57 2014 us=340211 67.190.99.141:51670 VERIFY OK: depth=0, C=US, ST=CO, L=Colorado Springs, O=xxx yyy, OU=xxxvpn, CN=windoze, name=xxxvpn, emailAddress=xxx.yyy@xxx.org
Tue Oct 7 07:38:57 2014 us=400389 67.190.99.141:51670 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Tue Oct 7 07:38:57 2014 us=400410 67.190.99.141:51670 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Oct 7 07:38:57 2014 us=400448 67.190.99.141:51670 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Tue Oct 7 07:38:57 2014 us=400454 67.190.99.141:51670 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Oct 7 07:38:57 2014 us=417848 67.190.99.141:51670 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Tue Oct 7 07:38:57 2014 us=417907 67.190.99.141:51670 [windoze] Peer Connection Initiated with [AF_INET]67.190.99.141:51670
Tue Oct 7 07:38:57 2014 us=417923 windoze/67.190.99.141:51670 MULTI_sva: pool returned IPv4=10.8.0.51, IPv6=(Not enabled)
Tue Oct 7 07:38:59 2014 us=905988 windoze/67.190.99.141:51670 PUSH: Received control message: 'PUSH_REQUEST'
Tue Oct 7 07:38:59 2014 us=906049 windoze/67.190.99.141:51670 send_push_reply(): safe_cap=940
Tue Oct 7 07:38:59 2014 us=906105 windoze/67.190.99.141:51670 SENT CONTROL [windoze]: 'PUSH_REPLY,redirect-gateway def1,route-gateway 10.8.0.4,ping 10,ping-restart 120,ifconfig 10.8.0.51 255.255.255.0' (status=1)
Tue Oct 7 07:38:59 2014 us=944258 windoze/67.190.99.141:51670 MULTI: Learn: 00:ff:9f:93:22:39 -> windoze/67.190.99.141:51670
Tue Oct 7 07:40:27 2014 us=380554 windoze/67.190.99.141:51670 PID_ERR replay-window backtrack occurred [6] [SSL-0] [00000__05>EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE] 0:323 0:317 t=1412689227[0] r=[0,64,15,6,1] sl=[61,64,64,528]
Tue Oct 7 07:41:42 2014 us=649190 MULTI: multi_create_instance called
Tue Oct 7 07:41:42 2014 us=649281 67.190.99.141:59645 Re-using SSL/TLS context
Tue Oct 7 07:41:42 2014 us=649332 67.190.99.141:59645 LZO compression initialized
Tue Oct 7 07:41:42 2014 us=649471 67.190.99.141:59645 Control Channel MTU parms [ L:1574 D:166 EF:66 EB:0 ET:0 EL:0 ]
Tue Oct 7 07:41:42 2014 us=649497 67.190.99.141:59645 Data Channel MTU parms [ L:1574 D:1450 EF:42 EB:135 ET:32 EL:0 AF:3/1 ]
Tue Oct 7 07:41:42 2014 us=649530 67.190.99.141:59645 Local Options String: 'V4,dev-type tap,link-mtu 1574,tun-mtu 1532,proto UDPv4,comp-lzo,keydir 0,cipher BF-CBC,auth SHA1,keysize 128,tls-auth,key-method 2,tls-server'
Tue Oct 7 07:41:42 2014 us=649545 67.190.99.141:59645 Expected Remote Options String: 'V4,dev-type tap,link-mtu 1574,tun-mtu 1532,proto UDPv4,comp-lzo,keydir 1,cipher BF-CBC,auth SHA1,keysize 128,tls-auth,key-method 2,tls-client'
Tue Oct 7 07:41:42 2014 us=649574 67.190.99.141:59645 Local Options hash (VER=V4): '360696c5'
Tue Oct 7 07:41:42 2014 us=649596 67.190.99.141:59645 Expected Remote Options hash (VER=V4): '13a273ba'
Tue Oct 7 07:41:42 2014 us=649648 67.190.99.141:59645 TLS: Initial packet from [AF_INET]67.190.99.141:59645, sid=fa9c7821 2eb08ce3
Tue Oct 7 07:41:42 2014 us=995835 67.190.99.141:59645 VERIFY OK: depth=1, C=US, ST=CO, L=Colorado Springs, O=xxx yyy, OU=xxxvpn, CN=xxxvpn, name=xxxvpn, emailAddress=xxx.yyy@xxx.org
Tue Oct 7 07:41:42 2014 us=996228 67.190.99.141:59645 VERIFY OK: depth=0, C=US, ST=CO, L=Colorado Springs, O=xxx yyy, OU=xxxvpn, CN=windoze, name=xxxvpn, emailAddress=xxx.yyy@xxx.org
Tue Oct 7 07:41:43 2014 us=48511 67.190.99.141:59645 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Tue Oct 7 07:41:43 2014 us=48558 67.190.99.141:59645 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Oct 7 07:41:43 2014 us=48673 67.190.99.141:59645 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Tue Oct 7 07:41:43 2014 us=48690 67.190.99.141:59645 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Oct 7 07:41:43 2014 us=65672 67.190.99.141:59645 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Tue Oct 7 07:41:43 2014 us=65732 67.190.99.141:59645 [windoze] Peer Connection Initiated with [AF_INET]67.190.99.141:59645
Tue Oct 7 07:41:43 2014 us=65979 MULTI: new connection by client 'windoze' 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.
Tue Oct 7 07:41:43 2014 us=66012 MULTI_sva: pool returned IPv4=10.8.0.51, IPv6=(Not enabled)
Tue Oct 7 07:41:45 2014 us=580954 windoze/67.190.99.141:59645 PUSH: Received control message: 'PUSH_REQUEST'
Tue Oct 7 07:41:45 2014 us=581025 windoze/67.190.99.141:59645 send_push_reply(): safe_cap=940
Tue Oct 7 07:41:45 2014 us=581083 windoze/67.190.99.141:59645 SENT CONTROL [windoze]: 'PUSH_REPLY,redirect-gateway def1,route-gateway 10.8.0.4,ping 10,ping-restart 120,ifconfig 10.8.0.51 255.255.255.0' (status=1)
Tue Oct 7 07:42:10 2014 us=185192 windoze/67.190.99.141:59645 MULTI: Learn: 00:ff:9f:93:22:39 -> windoze/67.190.99.141:59645
and here's what the windows client log shows
windoze client.log
Tue Oct 07 07:38:53 2014 OpenVPN 2.3.4 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Aug 7 2014
Tue Oct 07 07:38:53 2014 library versions: OpenSSL 1.0.1i 6 Aug 2014, LZO 2.05
Enter Management Password:
Tue Oct 07 07:38:53 2014 Control Channel Authentication: using 'keys/ta.key' as a OpenVPN static key file
Tue Oct 07 07:38:53 2014 UDPv4 link local: [undef]
Tue Oct 07 07:38:53 2014 UDPv4 link remote: [AF_INET]x.y.145.133:1194
Tue Oct 07 07:38:54 2014 [cerberus-vm] Peer Connection Initiated with [AF_INET]x.y.145.133:1194
Tue Oct 07 07:38:56 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Tue Oct 07 07:38:56 2014 open_tun, tt->ipv6=0
Tue Oct 07 07:38:56 2014 TAP-WIN32 device [Local Area Connection 2] opened: \\.\Global\{9F932239-A888-49CB-B349-468F50AC7431}.tap
Tue Oct 07 07:38:56 2014 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.8.0.51/255.255.255.0 on interface {9F932239-A888-49CB-B349-468F50AC7431} [DHCP-serv: 10.8.0.0, lease-time: 31536000]
Tue Oct 07 07:38:56 2014 Successful ARP Flush on interface [17] {9F932239-A888-49CB-B349-468F50AC7431}
Tue Oct 07 07:38:58 2014 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Tue Oct 07 07:38:58 2014 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Tue Oct 07 07:38:58 2014 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Tue Oct 07 07:38:58 2014 Initialization Sequence Completed
Tue Oct 07 07:41:37 2014 [cerberus-vm] Inactivity timeout (--ping-restart), restarting
Tue Oct 07 07:41:37 2014 SIGUSR1[soft,ping-restart] received, process restarting
Tue Oct 07 07:41:39 2014 UDPv4 link local: [undef]
Tue Oct 07 07:41:39 2014 UDPv4 link remote: [AF_INET]x.y.145.133:1194
Tue Oct 07 07:41:39 2014 [cerberus-vm] Peer Connection Initiated with [AF_INET]x.y.145.133:1194
Tue Oct 07 07:41:42 2014 Preserving previous TUN/TAP instance: Local Area Connection 2
Tue Oct 07 07:41:42 2014 Initialization Sequence Completed
So I can definitely see the client connecting! And it is being served an address of 10.8.0.51! Great! But it seems like I can't ping anything from the windows client. Ping fails to 10.8.0.1 and 10.8.0.4?
I also can't ping the other client on 10.8.0.50 (chimaera-linux). Also eventually after a minute or two the windows client will appear to be disconnected again from the vpn. Probably because the keepalive packets aren't flowing? Then it will try and reconnect again and turn green for a little while.
/etc/openvpn/openvpn-status.log
OpenVPN CLIENT LIST
Updated,Tue Oct 7 07:58:46 2014
Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since
windoze,67.190.99.141:58207,7937,8484,Tue Oct 7 07:58:15 2014
chimaera-linux,10.1.10.12:48638,8520,10297,Tue Oct 7 07:58:37 2014
ROUTING TABLE
Virtual Address,Common Name,Real Address,Last Ref
00:ff:9f:93:22:39,windoze,67.190.99.141:58207,Tue Oct 7 07:58:28 2014
GLOBAL STATS
Max bcast/mcast queue length,2
END
/etc/openvpn/ipp.txt
chimaera-linux,10.8.0.50
windoze,10.8.0.51
Why doesn't the openvpn-status.log show the VPN ip for windoze of 10.8.0.51? How come the other client didn't even show up in the routing table above? I'm so confused. Going to whatismyip.com from the windows client after connecting to the vpn server still shows the original home dynamic ip instead of the public ip of the server. No traffic seems to be getting out or going anywhere. Why is the gateway from the config file 10.8.0.4? What even is that? Sorry if I'm all over the place here!