Route in config: gateway not found ?

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
M4rt1n85
OpenVpn Newbie
Posts: 3
Joined: Fri Jan 26, 2024 1:40 pm

Route in config: gateway not found ?

Post by M4rt1n85 » Fri Jan 26, 2024 2:06 pm

Hallo,

I added a route in my config so people can access a different subnet:

Code: Select all

route 192.168.28.0 255.255.255.0 192.168.30.251
192.168.30.251 is the gateway of the office (opnsense). In the office people can access the subnet 192.168.28.0

If I try to connect, it says

Code: Select all

Warning: route gateway is not reachable on any active network adapters: 192.168.30.251
I tried this options but they did not help

Code: Select all

dhcp-renew
tap-sleep 3
route-delay 1 3
Do you why there is this error?

If I remove the route, the connection is successful and I can access all devices in 192.168.30.0

M4rt1n85
OpenVpn Newbie
Posts: 3
Joined: Fri Jan 26, 2024 1:40 pm

Re: Route in config: gateway not found ?

Post by M4rt1n85 » Mon Jan 29, 2024 8:30 am

I found the error thanks to ChatGPT:

the syntax is simply:
route 192.168.28.0 255.255.255.0

Post Reply