Hello.
In openvpn 2.3.4 on illumos/Solaris clients gateway for client can't be
determined, because default stub is used instead of
get_default_gateway() function. This means that the following push route
option in server config is not working:
push "route remote_host 255.255.255.255 net_gateway"
OpenVPN client says that it doesn't know net_gateway.
The following patch mostly uses existing FreeBSD code to add
get_default_gateway() implementation:
https://github.com/pyhalov/oi-userland/blob/openvpn/components/openvpn/patches/get_default_gateway.patch
.
The difference is that on Solaris there's no sa_len field.
I'm not absolutely sure that patch is correct, but as I see in route.c
only sockaddr_in structures are supposed to be passed to NEXTADDR and
ADVANCE macroses. This patch works for me.
--
Best regards,
Alexander Pyhalov,
system administrator of Southern Federal University IT department