Hello,
I have a system connected to VPN through a local proxy, and I would like
to use the -redirect-gateway option.
I have selected the 'local' and 'def1' options to prevent any access to
the net_gateway member,
but the line:
else if (!rl->spec.net_gateway_defined) -- > in
redirect_default_route_to_vpn
will prevent the redirect to be executed (although the net_gateway is
not used any more).
Do you see another way to define this gateway, or shouldn't we add a
condition like this to allow redirect even if no gateway defined.
else if (!rl->spec.net_gateway_defined)
{
if ( (!rl->redirect_local) || (!rl->redirect_def1) /* OpenVPN 2.1
|| (rl->spec.bypass->n_bypass) */ )
{
msg (M_WARN, "%s Cannot read current default gateway from
system", err);
}
}
Thank you,
Pierre