--- Dirk Tilger <[EMAIL PROTECTED]> wrote:
> On Mon, Dec 04, 2006 at 10:19:13AM +0000, John
> Joseph wrote:
> > , once the VPN connection established.
>
> The default route is a catch-all route and there
> should be normally not
> more than one of them. But that doesn't directly
> apply to your problem.
>
> Routing means you try the best match first. That
> means that the most
> open routing netmask will be tried last. The routing
> table above already
> shows the order in which the netaddress/netmask
> pairs will be tested. As
> you see, the networks 192.168.168.167/32,
> 169.254.0.0/16 and 10.0.0.0/8
> are tried before the default route.
>
> One option would be to remove these routes when the
> VPN comes up. You
> have to make sure, though, that the VPN gateway
> stays reachable thus you
> would add a route to your VPN gateway via gateway
> 10.0.0.1 in your
> example.
>
Hi Dirk
Thanks , I am able to connect to the VPN , and
route all the traffic through ppp0.This is what I had
done , after the connection was established.
#####################################################
route del -net 169.254.0.0 netmask 255.255.0.0
route add default gw 192.168.168.167 ppp0
route add -host AAA.BB.CC.DD dev eth0
route add -host AAA.BB.CC.DD gw 10.0.0.1 dev eth0
route add -host 10.0.0.1 dev eth0
route del default gw 10.0.0.1 dev eth0
##
AAA.BB.CC.DD ==> Public IP address of VPN server
##################################
This I had tried using CentOS .
I do have plan to try FreeSwan on LinkSys router
with OpenWrt installed
Thanks
Joseph John
> The other and maybe more straight forward option is
> to place the stuff
> in a different routing table. Read more on this in:
>
> http://lartc.org/howto/
>
http://snafu.freedom.org/linux2.2/docs/advanced-routing/
>
> You want specifically look at the explanations for
> "ip rule" and "ip
> route".
>
> > Note:- My Dual boot XP gets connected and the
> traffic
> > are routed through ppp0 by default.
> > Guidance requested
>
> I hope my notes help you to guide yourself.
>
> Best regards,
> Dirk.
> --
> Perl's grammar can not be reduced to BNF. The work
> of parsing perl is
> distributed between yacc, the lexer, smoke and
> mirrors. (Chaim Frenkel)
>
Send instant messages to your online friends http://uk.messenger.yahoo.com