Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Three networks and a firewall (to say nothing of the dog)
@ 1999-01-05  5:00 Jure Simsic
  1999-01-06  5:00 ` Nikola Milutinovic
  0 siblings, 1 reply; 3+ messages in thread
From: Jure Simsic @ 1999-01-05  5:00 UTC (permalink / raw)


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<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST,SIMPLEX>
     inet 193.138.44.23 netmask fffffff0 broadcast 193.138.44.31 ipmtu
1500 

tu1: flags=c63<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST,SIMPLEX>
     inet 192.168.87.5 netmask ffffff00 broadcast 192.168.87.255 ipmtu
1500 

sl0: flags=10<POINTOPOINT>

lo0: flags=100c89<UP,LOOPBACK,NOARP,MULTICAST,SIMPLEX,NOCHECKSUM>
     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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Three networks and a firewall (to say nothing of the dog)
  1999-01-05  5:00 Three networks and a firewall (to say nothing of the dog) Jure Simsic
@ 1999-01-06  5:00 ` Nikola Milutinovic
  1999-01-09  5:00   ` Jure Simsic
  0 siblings, 1 reply; 3+ messages in thread
From: Nikola Milutinovic @ 1999-01-06  5:00 UTC (permalink / raw)


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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Three networks and a firewall (to say nothing of the dog)
  1999-01-06  5:00 ` Nikola Milutinovic
@ 1999-01-09  5:00   ` Jure Simsic
  0 siblings, 0 replies; 3+ messages in thread
From: Jure Simsic @ 1999-01-09  5:00 UTC (permalink / raw)
  To: Nikola Milutinovic

Nikola Milutinovic wrote:
> 
> 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.
> 
> ....
Thanx,
Would it be possible to set things up so no dynamic routing are
performed, like I set up one gateway as default and add the second as a
static route (perhaps just the outside C class net)? Could something
like this work?

Jure



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-01-09  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-05  5:00 Three networks and a firewall (to say nothing of the dog) Jure Simsic
1999-01-06  5:00 ` Nikola Milutinovic
1999-01-09  5:00   ` Jure Simsic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox