Juan Rodriguez Hervella <[email protected]> said:
> Hello,
>
> I've just subscribed to this list, but I've read on the
> archives that the --redirect-gateway function is not
> working yet on FreeBSD because of the problem of
> retreiving the address of the default gateway.
>
> I've just written a small program which makes that,
> looking at /usr/src/sbin/route.c
>
> Hope this helps, I've tested it on both FreeBSD-4.9
> and FreeBSD-5.2
>
> It uses PF_ROUTE sockets.
>
> hope this helps!
> --
> ******
> JFRH
> ******
>
> Go climb a gravity well!
Juan,
It would be ideal if you could code this into OpenVPN's route.c, following the
form of the other platforms, i.e.:
..
#elif defined(TARGET_FREEBSD)
static bool
get_default_gateway (in_addr_t *ret)
{
/* code me -- put gateway address into *ret */
}
#else
..
James