Subject: Re: IP NAT
To: Michael Bartosh <bartosh@tamu.edu>
From: Paul Goyette <paul@whooppee.com>
List: port-mac68k
Date: 08/27/1998 09:36:06
Here's what I have in my ipnat.conf file:

	map ppp0 172.16.249.206/32 -> 209.182.147.67/32
	
ppp0 is my connection to the "real world" Internet
172.16.249.206 is the IP address assigned to my "private network"
	connection for my other machine.
209.182.147.67 is a registered IP address that my ISP gave me.

In your case, you should probably have this:

	map ae0 10.0.2.0/24 -> 165.91.120.32/32 portmap tcp/udp 10000:4000

This assumes that ae0 is your connection to the university's network,
that your assigned address on that network is 165.91.120.32, and that
your private network on sn0 is addresses as 10.0.2.0 with a mask of
255.255.255.0.  

Hope this helps.

On Thu, 27 Aug 1998, Michael Bartosh wrote:

> 
> So in order to take packets from sn0 and throw them out to ae0 I need to
> 
> map sn0 165.91.120.0/32 -> 10.0.2.0/24 portmap tcp/udp 10000:40000 ?
> 
> What about the device timeout error for ae0? What does that mean?
> 
> Thanks-
> 
> -mab
> 
> >On Tue, 25 Aug 1998, Michael Bartosh wrote:
> >
> >>
> >> Working on getting IP NAT up here in my dorm. On bootup both my internal
> >> sn0 and nubus ae0 inteface are recognized (Quadra 700/ 20 megs ram/ 3.2)
> >> IPNAT delivers no errors on startup, but I can not ping the bsd box from my
> >> mac (which I'm trying to serve to) and can not ping the mac from the bsd
> >> box. In fact when I try to ping the mac, I get the error
> >>
> >> /netbsd: ae0: device timeout
> >>
> >>
> >> ifconfig.ae0 says:
> >>
> >> inet 10.0.2.15 netmask 255.255.255.0
> >>
> >>
> >> ifconfig.sn0 says:
> >>
> >> inet 165.91.120.32 netmask 255.255.254.0
> >>
> >>
> >> ipnat.conf says:
> >>
> >> map sn0 10.0.2.0/24 -> 165.91.120.0/32 portmap tcp/udp 10000:40000
> >>
> >> Any obvious problems?
> >
> >Yes - why are you trying to remap the 10.x.y.z network to host address
> >165.91.120.0?  You should probably be remapping to 165.91.120.32 (ie,
> >your own IP address on the other interface).
> >
> >>
> >> Thanks-
> >>
> >> -mab
> >>
> >>
> >>
> >>
> >
> >-----------------------------------------------------------------------------
> >| Paul Goyette      | Public Key fingerprint:    | E-mail addresses:        |
> >| Network Engineer  |   0E 40 D2 FC 2A 13 74 A0  |  paul@whooppee.com       |
> >| and kernel hacker |   E4 69 D5 BE 65 E4 56 C6  |  paul.goyette@ascend.com |
> >-----------------------------------------------------------------------------
> 
> 
> 

-----------------------------------------------------------------------------
| Paul Goyette      | Public Key fingerprint:    | E-mail addresses:        |
| Network Engineer  |   0E 40 D2 FC 2A 13 74 A0  |  paul@whooppee.com       |
| and kernel hacker |   E4 69 D5 BE 65 E4 56 C6  |  paul.goyette@ascend.com |
-----------------------------------------------------------------------------