Hi,
I hope this is in the right place.
I'm having an issue with something in my config and/or the latest version of the open source openvpn client for windows (64-bit).
When I launch it as administrator and then try to load my local .ovpn file, it'll output the following info:
Fri May 16 16:29:01 2014 OpenVPN 2.3.4 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO]
[PKCS11] [IPv6] built on May 2 2014
Fri May 16 16:29:01 2014 library versions: OpenSSL 1.0.1g 7 Apr 2014, LZO 2.05
Enter Private Key Password:
Fri May 16 16:29:14 2014 WARNING: this configuration may cache passwords in memo
ry -- use the auth-nocache option to prevent this
Fri May 16 16:29:14 2014 Control Channel Authentication: tls-auth using INLINE s
tatic key file
Fri May 16 16:29:14 2014 UDPv4 link local: [undef]
Fri May 16 16:29:14 2014 UDPv4 link remote: [AF_INET]192.168.1.31:1194
Fri May 16 16:29:14 2014 [vpn] Peer Connection Initiated with [AF_INET]192.168.1
.31:1194
Fri May 16 16:29:17 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Fri May 16 16:29:17 2014 open_tun, tt->ipv6=0
Fri May 16 16:29:17 2014 TAP-WIN32 device [Local Area Connection 3] opened: \\.\
Global\{D71D5EEE-8851-4AD6-A3CD-0A72A2BE3921}.tap
Fri May 16 16:29:17 2014 Notified TAP-Windows driver to set a DHCP IP/netmask of
10.8.0.6/255.255.255.252 on interface {D71D5EEE-8851-4AD6-A3CD-0A72A2BE3921} [D
HCP-serv: 10.8.0.5, lease-time: 31536000]
Fri May 16 16:29:22 2014 ROUTE: route addition failed using CreateIpForwardEntry
: Access is denied. [status=5 if_index=10]
Fri May 16 16:29:22 2014 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\W
INDOWS\System32\Wbem
Fri May 16 16:29:22 2014 ERROR: Windows route add command failed [adaptive]: ret
urned error code 1
Fri May 16 16:29:22 2014 ROUTE: route addition failed using CreateIpForwardEntry
: Access is denied. [status=5 if_index=18]
Fri May 16 16:29:22 2014 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\W
INDOWS\System32\Wbem
Fri May 16 16:29:22 2014 ERROR: Windows route add command failed [adaptive]: ret
urned error code 1
Fri May 16 16:29:22 2014 ROUTE: route addition failed using CreateIpForwardEntry
: Access is denied. [status=5 if_index=18]
Fri May 16 16:29:22 2014 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\W
INDOWS\System32\Wbem
Fri May 16 16:29:22 2014 ERROR: Windows route add command failed [adaptive]: ret
urned error code 1
Fri May 16 16:29:22 2014 ROUTE: route addition failed using CreateIpForwardEntry
: Access is denied. [status=5 if_index=18]
Fri May 16 16:29:22 2014 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\W
INDOWS\System32\Wbem
Fri May 16 16:29:22 2014 ERROR: Windows route add command failed [adaptive]: ret
urned error code 1
Fri May 16 16:29:22 2014 ROUTE: route addition failed using CreateIpForwardEntry
: Access is denied. [status=5 if_index=18]
Fri May 16 16:29:22 2014 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\W
INDOWS\System32\Wbem
Fri May 16 16:29:22 2014 ERROR: Windows route add command failed [adaptive]: ret
urned error code 1
Fri May 16 16:29:22 2014 Warning: address 192.168.1.31 is not a network address
in relation to netmask 255.255.255.0
Fri May 16 16:29:22 2014 ROUTE: route addition failed using CreateIpForwardEntry
: Access is denied. [status=5 if_index=18]
Fri May 16 16:29:22 2014 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\W
INDOWS\System32\Wbem
Fri May 16 16:29:22 2014 ERROR: Windows route add command failed [adaptive]: ret
urned error code 1
Fri May 16 16:29:22 2014 ROUTE: route addition failed using CreateIpForwardEntry
: Access is denied. [status=5 if_index=18]
Fri May 16 16:29:22 2014 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\W
INDOWS\System32\Wbem
Fri May 16 16:29:22 2014 ERROR: Windows route add command failed [adaptive]: ret
urned error code 1
Fri May 16 16:29:22 2014 Initialization Sequence Completed
however, when I use an older open vpn client that I have installed on my laptop (I'll attach screen shots of this later when I get into work as that's where my laptop is), I have no problems.
any ideas?
here's my server config (I changed the local IP):
local 192.168.X.X # SWAP THIS NUMBER WITH YOUR RASPBERRY PI IP ADDRESS
dev tun
proto udp #Some people prefer to use tcp. Don't change it if you don't know.
port 1194
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt # SWAP WITH YOUR CRT NAME
key /etc/openvpn/easy-rsa/keys/server.key # SWAP WITH YOUR KEY NAME
dh /etc/openvpn/easy-rsa/keys/dh1024.pem # If you changed to 2048, change that here!
server 10.8.0.0 255.255.255.0
# server and remote endpoints
ifconfig 10.8.0.1 10.8.0.2
# Add route to Client routing table for the OpenVPN Server
push "route 10.8.0.1 255.255.255.255"
# Add route to Client routing table for the OpenVPN Subnet
push "route 10.8.0.0 255.255.255.0"
# your local subnet
push "route 192.168.X.X 255.255.255.0" # SWAP THE IP NUMBER WITH YOUR RASPBERRY PI IP ADDRESS
# Set primary domain name server address to the SOHO Router
# If your router does not do DNS, you can use Google DNS 8.8.8.8
push "dhcp-option DNS 8.8.8.8" # This should already match your router address and not need to be changed.
# Override the Client default gateway by using 0.0.0.0/1 and
# 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of
# overriding but not wiping out the original default gateway.
push "redirect-gateway def1"
client-to-client
duplicate-cn
keepalive 10 120
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
cipher AES-128-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log 20
log /var/log/openvpn.log
verb 1