[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: routing help please...



On Wednesday 13 October 2004 05:45 am, Sebastiaan wrote:
> Hi,
>
> On Wed, 13 Oct 2004, Mark Maas wrote:
> > Thanks for reading!
> >
> > I hope someone can help me with a routing issue:
> >
> > I've attached a situation scetch.
> >
> > The thing is, my road warriors connect via a pptp connection
> > to my VPN server via GW2.
> > This fails because the default gateway (GW) on the VPN is
> > GW1, so all request attempts end up beeing sent through GW2
> > but answered by my VPN server to GW1.
> >
> > But as soon as I put GW2 as default gateway, My local lan's
> > do not get routed as they should anymore...
> >
> > So all PPP connections should have GW2 as the default
> > gateway, and set up routes so data between the local lans
> > and ppp connections should go through GW1.
> >
> > But how?
> > Thanks for any pointers...
> >
> > Mark
>
> Hmm, usually a host only recognizes replies from the same remote host e.g.
> nic. You can probably do something with the package 'iproute', but that's
> as far as I can point you.
>
> Greetz,
> Sebas
>
>

Mark,

In the package vpnc, there is an option to specify custom routes (taken from 
the man page):

Custom route setting
              By default, the default route is deleted after  connection  and
              replaced with the new one (going trough the VPN tunnel device).
              However, some people wish to limit the target address range  to
              few  IP  ranges.   This  can be done using the config directive
              Target networks in the config file. For example:
              Target networks 123.234.210.0/24 10.1.0.0/16

In the file vpnc-connect they use ip directives to specify particular routes.  

You may want to install this package and take a look at how they specify the 
routing.  Mimic what they do in vpnc-connect as far as routing goes and see 
if that doesn't solve your problem.

John



Reply to: