Hi,
I sincerely hope that someone can help to sort this as I cannot make head or tail of it and getting a bit exasperated :x
client connecting fine to server (2.4.6) tap but the routing is apparently not working. Having set on the server side
route-gateway dhcp
this shows in the logs when starting the server
ROUTE_GATEWAY 172.25.120.1/255.255.255.0 IFACE=br0 HWADDR=00:16:3e:69:97:82
OpenVPN ROUTE: OpenVPN needs a gateway parameter for a --route option and no default was specified by either --route-gateway or --ifconfig options
OpenVPN ROUTE: failed to parse/resolve route for host/network: 172.25.120.0
TUN/TAP device tap0 opened
UDPv4 link local (bound): [AF_INET]172.25.120.2:61023
Initialization Sequence Completed
The gateway parameter is set in the conf and apparently ROUTE_GATEWAY is know and yet still openvpn is not adding to the routing table, latter reading:
default via 172.25.120.1 dev br0 metric 3
172.25.120.0/24 dev br0 proto kernel scope link src 172.25.120.2
and openvpn is suppose to add
172.25.120.0/24 via 172.25.120.1 dev br0
Does openvpn not undestand
ROUTE_GATEWAY
and requires instead
net_gateway (-- The pre-existing IP default gateway, read from the routing table)
And if that is the case is there a way to make openvpn understand net_gateway = ROUTE_GATEWAY?
On the other hand shouldn't vpn_gateway (-- The remote VPN endpoint address (derived either from --route-gateway)) do exacly that with
route-gateway dhcp
?