Error code 1
Posted: Thu Sep 24, 2015 1:35 am
I'm having trouble getting internet access through the VPN I set up. When I use the key on a remote computer I get this
local 10.0.1.26 # 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/PiVPN.crt # SWAP WITH YOUR CRT NAME
key /etc/openvpn/easy-rsa/keys/PiVPN.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
ifconfig 10.8.0.1 10.8.0.2
push "route 10.8.0.1 255.255.255.255"
push "route 10.8.0.0 255.255.255.0"
push "route 10.0.1.26 255.255.255.0" # SWAP THE IP NUMBER WITH YOUR RASPBERRY PI IP ADDRESS
push "dhcp-option DNS 8.8.8.8" # This should already match your router address and not need to be changed.
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
server.conf fileWed Sep 23 21:19:59 2015 OpenVPN 2.3.8 i686-w64-mingw32 [SSL (OpenSSL)] [LZO] [P
KCS11] [IPv6] built on Aug 4 2015
Wed Sep 23 21:19:59 2015 library versions: OpenSSL 1.0.1p 9 Jul 2015, LZO 2.08
Enter Private Key Password:
Wed Sep 23 21:20:02 2015 WARNING: this configuration may cache passwords in memo
ry -- use the auth-nocache option to prevent this
Wed Sep 23 21:20:02 2015 Control Channel Authentication: tls-auth using INLINE s
tatic key file
Wed Sep 23 21:20:02 2015 UDPv4 link local: [undef]
Wed Sep 23 21:20:02 2015 UDPv4 link remote: [AF_INET]73.46.136.93:1194
Wed Sep 23 21:20:02 2015 [PiVPN] Peer Connection Initiated with [AF_INET]73.46.1
36.93:1194
Wed Sep 23 21:20:05 2015 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Wed Sep 23 21:20:05 2015 open_tun, tt->ipv6=0
Wed Sep 23 21:20:05 2015 TAP-WIN32 device [Local Area Connection 2] opened: \\.\
Global\{685E0AFA-654E-45DD-900E-ED216DABB997}.tap
Wed Sep 23 21:20:05 2015 Notified TAP-Windows driver to set a DHCP IP/netmask of
10.8.0.10/255.255.255.252 on interface {685E0AFA-654E-45DD-900E-ED216DABB997} [
DHCP-serv: 10.8.0.9, lease-time: 31536000]
Wed Sep 23 21:20:10 2015 ROUTE: route addition failed using CreateIpForwardEntry
: Access is denied. [status=5 if_index=11]
Wed Sep 23 21:20:10 2015 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\W
INDOWS\System32\Wbem
Wed Sep 23 21:20:10 2015 ERROR: Windows route add command failed [adaptive]: ret
urned error code 1
Wed Sep 23 21:20:10 2015 ROUTE: route addition failed using CreateIpForwardEntry
: Access is denied. [status=5 if_index=15]
Wed Sep 23 21:20:10 2015 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\W
INDOWS\System32\Wbem
Wed Sep 23 21:20:10 2015 ERROR: Windows route add command failed [adaptive]: ret
urned error code 1
Wed Sep 23 21:20:10 2015 ROUTE: route addition failed using CreateIpForwardEntry
: Access is denied. [status=5 if_index=15]
Wed Sep 23 21:20:10 2015 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\W
INDOWS\System32\Wbem
Wed Sep 23 21:20:10 2015 ERROR: Windows route add command failed [adaptive]: ret
urned error code 1
Wed Sep 23 21:20:10 2015 ROUTE: route addition failed using CreateIpForwardEntry
: Access is denied. [status=5 if_index=15]
Wed Sep 23 21:20:10 2015 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\W
INDOWS\System32\Wbem
Wed Sep 23 21:20:10 2015 ERROR: Windows route add command failed [adaptive]: ret
urned error code 1
Wed Sep 23 21:20:10 2015 ROUTE: route addition failed using CreateIpForwardEntry
: Access is denied. [status=5 if_index=15]
Wed Sep 23 21:20:10 2015 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\W
INDOWS\System32\Wbem
Wed Sep 23 21:20:10 2015 ERROR: Windows route add command failed [adaptive]: ret
urned error code 1
Wed Sep 23 21:20:10 2015 Warning: address 10.0.1.26 is not a network address in
relation to netmask 255.255.255.0
Wed Sep 23 21:20:10 2015 ROUTE: route addition failed using CreateIpForwardEntry
: Access is denied. [status=5 if_index=15]
Wed Sep 23 21:20:10 2015 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\W
INDOWS\System32\Wbem
Wed Sep 23 21:20:10 2015 ERROR: Windows route add command failed [adaptive]: ret
urned error code 1
Wed Sep 23 21:20:10 2015 ROUTE: route addition failed using CreateIpForwardEntry
: Access is denied. [status=5 if_index=15]
Wed Sep 23 21:20:10 2015 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\W
INDOWS\System32\Wbem
Wed Sep 23 21:20:10 2015 ERROR: Windows route add command failed [adaptive]: ret
urned error code 1
Wed Sep 23 21:20:10 2015 Initialization Sequence Completed
local 10.0.1.26 # 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/PiVPN.crt # SWAP WITH YOUR CRT NAME
key /etc/openvpn/easy-rsa/keys/PiVPN.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
ifconfig 10.8.0.1 10.8.0.2
push "route 10.8.0.1 255.255.255.255"
push "route 10.8.0.0 255.255.255.0"
push "route 10.0.1.26 255.255.255.0" # SWAP THE IP NUMBER WITH YOUR RASPBERRY PI IP ADDRESS
push "dhcp-option DNS 8.8.8.8" # This should already match your router address and not need to be changed.
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