Routing with two gateways
From: Matthias Haack (clearwater_at_bigfoot.com)
Date: 07/30/04
- Next message: Stijn Goris: "Proxy server"
- Previous message: Dave: "3com Netbuilder w. Redhat router"
- Next in thread: Allen Kistler: "Re: Routing with two gateways"
- Reply: Allen Kistler: "Re: Routing with two gateways"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Jul 2004 19:33:55 +0200
Hi,
currently I am trying to setup my routing table to route everything
through the default gateway except for three networks which should be
routed through a vpn. My problem is that the second gateway lies within
one of the three networks.
Table that doesn't work (due to a cycle I think):
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
A.B.0.0 W.X.Y.Z 255.255.0.0 U 0 0 0 tun0
C.D.0.0 W.X.Y.Z 255.255.0.0 U 0 0 0 tun0
W.X.0.0 W.X.Y.Z 255.255.0.0 U 0 0 0 tun0 <=X
0.0.0.0 10.0.0.138 0.0.0.0 UG 0 0 0 eth0
As long as line X is not within the table it works but without the
network W.X.0.0. With that line I think (i.e.) W.X.1.1 is routed to
W.X.Y.Z then line X matches again and so on...
Is there a way to set up this properly without replacing my default
route? Even using iptables would be fine...
Matthias
- Next message: Stijn Goris: "Proxy server"
- Previous message: Dave: "3com Netbuilder w. Redhat router"
- Next in thread: Allen Kistler: "Re: Routing with two gateways"
- Reply: Allen Kistler: "Re: Routing with two gateways"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|