From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9325,a3849d5fc84e39d9 X-Google-Attributes: gidf9325,public X-Google-Thread: fee84,a3849d5fc84e39d9 X-Google-Attributes: gidfee84,public From: Nikola Milutinovic Subject: Re: Three networks and a firewall (to say nothing of the dog) Date: 1999/01/06 Message-ID: <3693256E.99E356BD@ev.co.yu>#1/1 X-Deja-AN: 429346645 Content-Transfer-Encoding: 7bit References: <36917E82.230E50CC@uni-lj.si> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: EPS JP Elektrovojvodina Mime-Version: 1.0 Newsgroups: comp.protocols.tcp-ip,comp.unix.osf.osf1 Jure Simsic wrote: > [SNIP] > > First i tried to do it with static routes. I added the new gw to the > other interface and then some networks and the packets were going out > properly. I fiddled with the routes so much, I'm not really sure what > i did (and noone would bother to read all that neither). Eventually I > started gated which ended me with two default gateways and things were > getting weird... Whenever you have two gateways things ARE weird. The only IGP (Interior Gateway routing Protocol) capable of successfully handling more than one default gw is OSPF. RIP will accept it, but that's about it. > The real problem is whichever gateway i choose as the default, that IP > is accessible from the outside world and the other is not (traceroute > stops at the last gateway). I'd like both IP's to be accessible and > the new one to be the default (primarily both accessible). Looks like your internal routing doesn't work. > What should i do. Do I need gated at all (as I see it, if one gw is a > firewall, it doesn't send any RIP info, so gated would gather only > from the new router)? GateD on DU 4.0 is a very powerful daemon (from Cornell University) and I would suggest it in your situation. You should have INTERNAL and EXTERNAL routing, so those two gateways should exchange routing information. RIP1 is the minimum and you should consider running OSPF (two gateways, two ISPs). > I have a bad feeling this should be reasonably trivial, but I'm doing > it all wrong.. When it works, it is trivial. :-) As far as I can see, your routing table has 192.168.87.x network (cati-in), so traceroute should work. One thing puzzles me, though. The default gw points to the other gateway. Is that deliberate? You should change it to the second ISP. Nix. -- ... It is now safe to blow up your computer.