On 06/06/15 18:02, jack seth wrote:
> From: debbie...@gmail.com
> To: bird_...@hotmail.com
> CC: openvpn-users@lists.sourceforge.net
> Subject: Re: [Openvpn-users] How do I define vpn_gateway?
> Date: Sat, 6 Jun 2015 16:59:22 +0100
>
>
> ----- Original Message -----
> From: "jack seth" <bird_...@hotmail.com>
> To: <debbie...@gmail.com>
> Cc: <openvpn-users@lists.sourceforge.net>
> Sent: Saturday, June 06, 2015 3:58 PM
> Subject: RE: [Openvpn-users] How do I define vpn_gateway?
>
>
> > I'm using 'route-gateway dhcp'. Can 'vpn_gateway' not be used with
this?
>
> Testing on my setup appears to indicate that they cannot be used
together.
> But I did not test very thoroughly and you have not posted details
of your
> setup.
> eg: TAP or TUN .. etc
>
> From the manual:
> --route-gateway gw|'dhcp'
> Specify a default gateway gw for use with --route.
> If dhcp is specified as the parameter, the gateway address will be
extracted
> from ** a DHCP negotiation ** with the OpenVPN server-side LAN.
>
> This implies that it also requires --dev tap as ** a DHCP negotiation **
> will probably use broadcasts ..
>
> Regards
Yes, it's tap. It may be a timing thing.
As Gert said: don't use this unless you absolute have to , and don't use
this unless you know what you are doing.
If you *must* use this feature, try adding
route-delay 5
which will cause OpenVPN to delay for 5 seconds before attempting to add
routes - with any luck, the DHCP assigned gateway will be available on
the client.
HTH,
JJK
------------------------------------------------------------------------------
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users