[Openswan Users] wrong gateway ip assigned

Paul Wouters paul at xelerance.com
Tue May 10 01:05:38 CEST 2005


On Mon, 9 May 2005, Jacco de Leeuw wrote:

>> From xp client a "route PRINT" command shows that the default gateway
>> assigned by the server is the same ip assigned to the client.
>
> I guess that's a peculiarity of Windows. One would expect the
> default gateway to be the IP address of the remote server. It's
> a point-to-point connection so it seems that Windows is setting
> the default route to the PPP interface and not an IP address in
> particular. Anyway, nothing to worry about.

I notice this on l2tp connections with both Windows and MacOSX (Linux
as l2tp client untested), even though /etc/ppp/l2tpd.options has the
option "nodefaultroute". So if the VPN is up, everything has to go through
the VPN. MacOSX has no option to disable this.

Windows has an option to disable this: 
Click on the VPN connection, go to properties, then Networking, then
TCP properties, then Advanced, and then unselect "Use default gateway on
remote network".

Why Windows and MacOSX set this when the PPP LCP configuration packets do
not allow this is unknown to me.

Paul


More information about the Users mailing list