From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9325,a3849d5fc84e39d9,start X-Google-Attributes: gidf9325,public X-Google-Thread: fee84,a3849d5fc84e39d9,start X-Google-Attributes: gidfee84,public From: Jure Simsic Subject: Three networks and a firewall (to say nothing of the dog) Date: 1999/01/05 Message-ID: <36917E82.230E50CC@uni-lj.si> X-Deja-AN: 429092436 Content-Transfer-Encoding: 7bit Sender: jure@193.2.64.122 Content-Type: text/plain; charset=us-ascii Organization: RCU, University of Ljubljana, Slovenia Mime-Version: 1.0 Newsgroups: comp.protocols.tcp-ip,comp.unix.osf.osf1 We're having another ISP for testing. We've put another eth card in our unix box and i'm trying to set it up, so the old IP will still be accessible and the new one will work as default. I'm a bit weak at this level of TCP networking so try to be patient with me ;-) I've set up both devices ok (so far i know), they are up and running. The situation is somewhat like this (see the map below): so far we had a 192.168.87.0/255.255.255.0 subnet behind a firewall (which acts as gateway from inside. Our real (external) adresses were 195.250.206.80/255.255.255.240 and the fw did the remapping.. Now we have another link and one of the boxes (an alpha/Digital Unix 4d) is the one I'm trying to fix. 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... 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). 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)? I have a bad feeling this should be reasonably trivial, but I'm doing it all wrong.. Jure 195.250.206.80/ | [old ISP] 255.255.255.240 | | 195.250.206.87 [fw/gw]----------- |192.168.87.100 | --------------------------------- =================== [new ISP] | | I 193.138.44.17 (gw) | 192.168.87.0/ | I | 255.255.255.0 | I | | I | | I | 192.168.87.5 | I 193.138.44.23 | -------------------- | |(195.250.206.85) | 193.138.44.16/ | |[external IP] | 255.255.255.240 [rest of our subnet] | | | | | | | | | BOX | -------------------- Nice picture..True ascii art ;-) ------------------------------------------- # ifconfig -a tu0: flags=c63 inet 193.138.44.23 netmask fffffff0 broadcast 193.138.44.31 ipmtu 1500 tu1: flags=c63 inet 192.168.87.5 netmask ffffff00 broadcast 192.168.87.255 ipmtu 1500 sl0: flags=10 lo0: flags=100c89 inet 127.0.0.1 netmask ff000000 ipmtu 4096 -------------------------------------------- # netstat -ra [default the old fw box, running gated, Trzaska.SI.K2.net is the new router] Routing tables Destination Gateway Flags Refs Use Interface Netmasks: Inet 0.0.0.0 Inet 255.0.0.0 Inet 255.255.255.0 Inet 255.255.255.240 Route Tree for Protocol Family 2: default 192.168.87.100 UGS 2 19891 tu1 loop localhost UR 0 0 lo0 localhost localhost UH 2 3809 lo0 192.160.15 Trzaska.SI.K2.net UG 0 157 tu0 cati-in debela U 1 13220 tu1 #this is our behind-the-fw net 193.2.141 Trzaska.SI.K2.net UG 0 0 tu0 193.138.32 Trzaska.SI.K2.net UG 0 237 tu0 193.138.36 Trzaska.SI.K2.net UG 0 8 tu0 193.138.43 Trzaska.SI.K2.net UG 0 0 tu0 193.138.44.16 suha U 0 20 tu0 #the new ISP net 193.138.45 Trzaska.SI.K2.net UG 0 0 tu0 193.138.46 Trzaska.SI.K2.net UG 0 0 tu0 193.138.47 Trzaska.SI.K2.net UG 0 0 tu0 193.138.49 Trzaska.SI.K2.net UG 0 0 tu0 193.138.54 Trzaska.SI.K2.net UG 0 0 tu0 193.138.55 Trzaska.SI.K2.net UG 0 0 tu0 193.138.57 Trzaska.SI.K2.net UG 0 0 tu0 193.138.59 Trzaska.SI.K2.net UG 0 0 tu0 193.138.61 Trzaska.SI.K2.net UG 0 0 tu0 193.138.62 Trzaska.SI.K2.net UG 0 0 tu0 193.138.63 Trzaska.SI.K2.net UG 0 0 tu0 RIP2-ROUTERS.MCA localhost UH 0 0 lo0 -- Jure Simsic email: jure.simsic@uni-lj.si