I have a OpenVPN server on a Netgear Wireless router setup (192.168.8.1). The Netgear router is setup behind another router (192.168.7.1) that connected to internet. I've added a port forward rule to the router that is facing internet. It forwards the VPN port to the Netgear router.
I try to start the OpenVPN client with:
sudo openvpn --config "client2.conf"
But I get an error message in regards of the routes.
Sun Sep 30 10:58:42 2018 us=603862 /sbin/ip route add 192.168.8.1/24 via 192.168.8.1
Error: Invalid prefix for given prefix length
Do I need to specify another route? If that is the case. How do I specify the route?
My client2.conf
looks like this
client
dev tap
proto udp
remote [MY_EXTERNAL_IP] [MY_VPN_PORT]
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
Settings for the Netgear router.
Settings for the internet facing router.