FIRST: I DID use the troubleshooting guide here and didn't have any luck:
https://forums.openvpn.net/topic10923.html
I had OpenVPN working last spring -- I even took my laptop with me to a St Louis and used the hotel's WiFi to connect to my VPN when I wanted to check my bank info.
Then I moved and my ISP is now providing my router. The new router will not allow me to spec my own LAN IP address (my previous router had an internal address of 10.2.1.1). So I changed my RasPi to connect to the new router using the new ip address.
This caused OpenVPN to fail. So I updated my OpenVPN settings to use the new IP address. I'm at my aunt's house right now testing the connection and it fails. I'm able to connect to the server but internet traffic won't go through.
When I first opened the OpenVPN connection, I saw the following message:
Sun Nov 24 07:40:10 2013 OpenVPN 2.3.2 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [eurephia] [IPv6] built on Jun 3 2013
Sun Nov 24 07:40:10 2013 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Sun Nov 24 07:40:10 2013 Need hold release from management interface, waiting...
Sun Nov 24 07:40:10 2013 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Sun Nov 24 07:40:10 2013 MANAGEMENT: CMD 'state on'
Sun Nov 24 07:40:10 2013 MANAGEMENT: CMD 'log all on'
Sun Nov 24 07:40:10 2013 MANAGEMENT: CMD 'hold off'
Sun Nov 24 07:40:10 2013 MANAGEMENT: CMD 'hold release'
Sun Nov 24 07:40:11 2013 Control Channel Authentication: using 'C:\Program Files\OpenVPN\config\RasPiHomeNAS-donireland.com\ta.key' as a OpenVPN static key file
Sun Nov 24 07:40:11 2013 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Nov 24 07:40:11 2013 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Nov 24 07:40:11 2013 Socket Buffers: R=[8192->8192] S=[8192->8192]
Sun Nov 24 07:40:11 2013 MANAGEMENT: >STATE:1385300411,RESOLVE,,,
Sun Nov 24 07:40:11 2013 UDPv4 link local: [undef]
Sun Nov 24 07:40:11 2013 UDPv4 link remote: [AF_INET]173.25.128.52:1194
Sun Nov 24 07:40:11 2013 MANAGEMENT: >STATE:1385300411,WAIT,,,
Sun Nov 24 07:40:11 2013 MANAGEMENT: >STATE:1385300411,AUTH,,,
Sun Nov 24 07:40:11 2013 TLS: Initial packet from [AF_INET]173.25.128.52:1194, sid=7487ac13 20264e29
Sun Nov 24 07:40:12 2013 VERIFY OK: depth=1, C=US, ST=MO, L=Jefferson City, O=biapy, OU=changeme, CN=OpenVPNServer.domain.com, name=changeme, emailAddress=root@RasPiHomeNas
Sun Nov 24 07:40:12 2013 VERIFY OK: nsCertType=SERVER
Sun Nov 24 07:40:12 2013 VERIFY OK: depth=0, C=US, ST=MO, L=Jefferson City, O=biapy, OU=changeme, CN=OpenVPNServer.domain.com, name=changeme, emailAddress=root@RasPiHomeNas
Sun Nov 24 07:40:13 2013 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sun Nov 24 07:40:13 2013 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Nov 24 07:40:13 2013 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sun Nov 24 07:40:13 2013 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Nov 24 07:40:13 2013 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Sun Nov 24 07:40:13 2013 [OpenVPNServer.domain.com] Peer Connection Initiated with [AF_INET]173.25.128.52:1194
Sun Nov 24 07:40:14 2013 MANAGEMENT: >STATE:1385300414,GET_CONFIG,,,
Sun Nov 24 07:40:16 2013 SENT CONTROL [OpenVPNServer.domain.com]: 'PUSH_REQUEST' (status=1)
Sun Nov 24 07:40:16 2013 PUSH: Received control message: 'PUSH_REPLY,route 192.168.0.1 255.255.255.0,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 208.67.220.220,dhcp-option DNS 208.67.222.222,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5'
Sun Nov 24 07:40:16 2013 OPTIONS IMPORT: timers and/or timeouts modified
Sun Nov 24 07:40:16 2013 OPTIONS IMPORT: --ifconfig/up options modified
Sun Nov 24 07:40:16 2013 OPTIONS IMPORT: route options modified
Sun Nov 24 07:40:16 2013 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sun Nov 24 07:40:16 2013 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sun Nov 24 07:40:16 2013 MANAGEMENT: >STATE:1385300416,ASSIGN_IP,,10.8.0.6,
Sun Nov 24 07:40:16 2013 open_tun, tt->ipv6=0
Sun Nov 24 07:40:16 2013 TAP-WIN32 device [Local Area Connection 2] opened: \\.\Global\{AC8D916C-D035-4141-9441-027CA70E5C18}.tap
Sun Nov 24 07:40:16 2013 TAP-Windows Driver Version 9.9
Sun Nov 24 07:40:16 2013 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.8.0.6/255.255.255.252 on interface {AC8D916C-D035-4141-9441-027CA70E5C18} [DHCP-serv: 10.8.0.5, lease-time: 31536000]
Sun Nov 24 07:40:16 2013 Successful ARP Flush on interface [19] {AC8D916C-D035-4141-9441-027CA70E5C18}
Sun Nov 24 07:40:21 2013 TEST ROUTES: 3/3 succeeded len=2 ret=1 a=0 u/d=up
Sun Nov 24 07:40:21 2013 C:\windows\system32\route.exe ADD 173.25.128.52 MASK 255.255.255.255 192.168.0.1
Sun Nov 24 07:40:21 2013 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Sun Nov 24 07:40:21 2013 Route addition via IPAPI succeeded [adaptive]
Sun Nov 24 07:40:21 2013 C:\windows\system32\route.exe ADD 192.168.0.1 MASK 255.255.255.255 192.168.0.1 IF 12
Sun Nov 24 07:40:21 2013 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Sun Nov 24 07:40:21 2013 Route addition via IPAPI succeeded [adaptive]
Sun Nov 24 07:40:21 2013 C:\windows\system32\route.exe ADD 0.0.0.0 MASK 128.0.0.0 10.8.0.5
Sun Nov 24 07:40:21 2013 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Sun Nov 24 07:40:21 2013 Route addition via IPAPI succeeded [adaptive]
Sun Nov 24 07:40:21 2013 C:\windows\system32\route.exe ADD 128.0.0.0 MASK 128.0.0.0 10.8.0.5
Sun Nov 24 07:40:21 2013 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Sun Nov 24 07:40:21 2013 Route addition via IPAPI succeeded [adaptive]
Sun Nov 24 07:40:21 2013 MANAGEMENT: >STATE:1385300421,ADD_ROUTES,,,
Sun Nov 24 07:40:21 2013 C:\windows\system32\route.exe ADD 192.168.0.1 MASK 255.255.255.0 10.8.0.5
Sun Nov 24 07:40:21 2013 Warning: address 192.168.0.1 is not a network address in relation to netmask 255.255.255.0
Sun Nov 24 07:40:21 2013 ROUTE: route addition failed using CreateIpForwardEntry: The parameter is incorrect. [status=87 if_index=19]
Sun Nov 24 07:40:21 2013 Route addition via IPAPI failed [adaptive]
Sun Nov 24 07:40:21 2013 Route addition fallback to route.exe
Sun Nov 24 07:40:21 2013 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Sun Nov 24 07:40:21 2013 C:\windows\system32\route.exe ADD 10.8.0.1 MASK 255.255.255.255 10.8.0.5
Sun Nov 24 07:40:21 2013 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Sun Nov 24 07:40:21 2013 Route addition via IPAPI succeeded [adaptive]
Sun Nov 24 07:40:21 2013 Initialization Sequence Completed
Sun Nov 24 07:40:21 2013 MANAGEMENT: >STATE:1385300421,CONNECTED,SUCCESS,10.8.0.6,173.25.128.52
It LOOKS like it has a problem with the subnet masking. But that doesn't make any sense either. Following is from the RasPi's IFCONFIG:
pi@RasPiHomeNas ~ $ sudo su
root@RasPiHomeNas:/var/home/pi# ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:0c:91:85
inet addr:192.168.0.14 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:184761 errors:0 dropped:89 overruns:0 frame:0
TX packets:51912 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18921487 (18.0 MiB) TX bytes:8820113 (8.4 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2189 errors:0 dropped:0 overruns:0 frame:0
TX packets:2189 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:314169 (306.8 KiB) TX bytes:314169 (306.8 KiB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:8370 errors:0 dropped:0 overruns:0 frame:0
TX packets:340 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:490842 (479.3 KiB) TX bytes:43744 (42.7 KiB)
root@RasPiHomeNas:/var/home/pi#
This is the snippet from my OpenVPN configuration that pushes the route:
push "route 192.168.0.0 255.255.255.0"
;push "route 192.168.20.1 255.255.255.0" [color=#FF0000]<-- I've tried both lines and get the same results.[/color]
And lastly, here's the snippet from my OpenVPN configuration that creates the tun connection.
# Configure server mode and supply a VPN subnet
# for OpenVPN to draw client addresses from.
# The server will take 10.8.0.1 for itself,
# the rest will be made available to clients.
# Each client will be able to reach the server
# on 10.8.0.1. Comment this line out if you are
# ethernet bridging. See the man page for more info.
server 10.8.0.0 255.255.255.0
https://forums.openvpn.net/topic10923.html