× Introducing the Orbi 970 Series Mesh System with WiFi 7 technology. For more information visit the NETGEAR Press Room.
Orbi WiFi 7 RBE973
Reply

R7000 VPN Error with pushed routing settings

mjr2
Follower

R7000 VPN Error with pushed routing settings

What's going wrong

 

When I use the provided client configuration file against OpenVPN version 2.4.9 I get the following error:

 

Error: Invalid prefix for given prefix length.
ERROR: Linux route add command failed: external program exited with error status: 2

The router is pushing the following control message, which is triggering the error:

 

PUSH: Received control message: 'PUSH_REPLY,route 10.1.10.0 255.255.255.0,route-delay 5,route-gateway dhcp,ping 10,ping-restart 120,route 10.1.10.1 255.255.255.0 10.1.10.1

 

The final command is what is triggering the error, as "route 10.1.10.1 255.255.255.0 10.1.10.1" is an invalid command.  10.1.10.1 cannot be the base for the /24.

 

Things attempted

 

I attempted to take this into my own hands by overriding the server's push by adding the following to the client configuration.

 

route 10.1.10.0 255.255.255.0
route-delay 5
route-gateway dhcp
ping 10
ping-restart 120
route 10.1.10.0 255.255.255.0 10.1.10.1
route-nopull

 

This results in another, different error:

 

Error: Nexthop has invalid gateway.
ERROR: Linux route add command failed: external program exited with error status: 2

 

Which has to do with the fact that my computer doesn't know how to talk directly to 10.1.10.1.

 

As far as I can tell, the VPN server on these routers is using TAP, and the device tap0.  So I should be able to push the route-gateway via DHCP?  However, perhaps pulling from the client side just isn't possible?

 

Because I don't have access to the server configuration directly, it is difficult to troubleshoot this problem.  Does anything have any input?

Model: R7000|AC1900 Smart WIFI Router
Message 1 of 1
Top Contributors
Discussion stats
  • 0 replies
  • 613 views
  • 0 kudos
  • 1 in conversation
Announcements

Orbi WiFi 7