I'm attempting to vpn into a Netgear Nighthawk x6 R8000 (which apparently supports openvpn out of the box). I've downloaded the necessary configuration files and keys from the router - here's my configuration file, client2.conf:
Code: Select all
client
dev tap
proto udp
remote XXX.XXX.XXX.XXX XXXXX
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
cipher AES-128-CBC
comp-lzo
verb 5
Code: Select all
sudo openvpn cleint2.conf
I get the following error:
Code: Select all
Wed Mar 22 14:59:42 2017 us=196899 OpenVPN ROUTE: OpenVPN needs a gateway parameter for a --route option and no default was specified by either --route-gateway or --ifconfig options
Wed Mar 22 14:59:42 2017 us=196908 OpenVPN ROUTE: failed to parse/resolve route for host/network: 192.168.1.1
Wed Mar 22 14:59:42 2017 us=197273 TUN/TAP device tap0 opened
Wed Mar 22 14:59:42 2017 us=197300 TUN/TAP TX queue length set to 100
Wed Mar 22 14:59:42 2017 us=197320 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Wed Mar 22 14:59:42 2017 us=197351 /sbin/ip link set dev tap0 up mtu 1500
Wed Mar 22 14:59:42 2017 us=200684 /sbin/ip addr add dev tap0 192.168.1.5/24 broadcast 192.168.1.255
Wed Mar 22 14:59:42 2017 us=202702 /sbin/ip route add 192.168.1.1/24 via 192.168.1.1
RTNETLINK answers: Invalid argument
Wed Mar 22 14:59:42 2017 us=204134 ERROR: Linux route add command failed: external program exited with error status: 2
Wed Mar 22 14:59:42 2017 us=204189 Initialization Sequence Completed
Code: Select all
sudo openvpn --config client2.conf --route 192.168.1.1 255.255.255.0
Code: Select all
WWRRWRWed Mar 22 15:24:42 2017 us=977952 PUSH: Received control message: 'PUSH_REPLY,route 192.168.1.1 255.255.255.0 192.168.1.1,route-gateway dhcp,ping 10,ping-restart 120'
Wed Mar 22 15:24:42 2017 us=978047 OPTIONS IMPORT: timers and/or timeouts modified
Wed Mar 22 15:24:42 2017 us=978061 OPTIONS IMPORT: route options modified
Wed Mar 22 15:24:42 2017 us=978071 OPTIONS IMPORT: route-related options modified
Wed Mar 22 15:24:42 2017 us=978240 ROUTE_GATEWAY 108.214.92.1/255.255.252.0 IFACE=eth0 HWADDR=34:97:f6:5c:02:ba
Wed Mar 22 15:24:42 2017 us=978613 TUN/TAP device tap0 opened
Wed Mar 22 15:24:42 2017 us=978640 TUN/TAP TX queue length set to 100
Wed Mar 22 15:24:42 2017 us=978694 /sbin/ip route add 192.168.1.1/24 via 192.168.1.1
RTNETLINK answers: Invalid argument
Wed Mar 22 15:24:42 2017 us=980583 ERROR: Linux route add command failed: external program exited with error status: 2
Wed Mar 22 15:24:42 2017 us=980638 Initialization Sequence Completed