Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C9862D.12A546EC" Date: Tue, 3 Feb 2009 19:27:28 +0100 Message-ID: <9C8E8B77B6BAD3418C916FFE1185189301727E02@...545...> From: "CROKAERT Pierre" Subject: [Openvpn-devel] Use redirect-gateway when no default gateway defined List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: openvpn-devel@lists.sourceforge.net This is a multi-part message in MIME format. ------_=_NextPart_001_01C9862D.12A546EC Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, =20 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,=20 but the line: =20 else if (!rl->spec.net_gateway_defined) -- > in redirect_default_route_to_vpn =20 will prevent the redirect to be executed (although the net_gateway is not used any more). =20 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. =20 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); } } =20 =20 Thank you, =20 Pierre =20 ------_=_NextPart_001_01C9862D.12A546EC Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

I have a system connec= ted to VPN through a local proxy, and I would like to use the –redirect-gate= way option.

I have selected the &#= 8216;local’ and ‘def1’ options to prevent any access to the net_gateway mem= ber,

but the line:

 

   &nbs= p; else if (!rl->spec.net_gateway_defined) -- > in redirect_default_route_to_vpn=

 

will prevent the redir= ect 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 all= ow redirect even if no gateway defined.

 

else if (!rl->spec.net_gateway_defined)

{

   &nbs= p;  if ( (!rl->redirect_local) || (!rl->redirect_def1) /* OpenVPN 2.1 || (rl->spec.bypass->n_bypass) */ )

   &nbs= p;  {

   &nbs= p;    msg (M_WARN, "%s Cannot read current default gateway from system", err);<= /o:p>

   &nbs= p;  }

}

 

 

Thank you,<= /span>

 

Pierre

 

------_=_NextPart_001_01C9862D.12A546EC--