Subject: Re: ipnat (Was Cable modem woes...Fixed!...)
To: Bruce Anderson <brucea@spacestar.net>
From: Greg Evans <gevans@hcvn.com>
List: port-mac68k
Date: 03/02/1999 19:43:13
On 2 Mar 1999, Bruce Anderson wrote:

> On Tue, Mar 2, 1999 12:13 AM, Greg Evans <mailto:gevans@hcvn.com> wrote:
> >I believe this is where the problem lies...when I do a ipnat -l, I get:
> >
> >List of active MAP/Redirect filters:
> >
> >List of active sessions:
> >
> >obviously _not_ what I should be seeing.....
> >
> >(please send any responses to gevans@hcvn.com as I will be trying to
> >keepthe un*x box connected)
> >
> 
> try this from the command line:
>  ipf -Fa -f /etc/ipf.conf
>

this returned 

unknown keyword (map)
unknown keyword (map)

> and report any output then:
> 
> ipnat -C -v -f /etc/ipnat.conf
> and report any output , 

this returned

2 entries flushed from NAT list
map sn0 192.168.0.1/24 -> 216.164.32.41/32 portmap tcp/udp 10000:40000
	ifp 0x0 space 0 nextip 0.0.0.0 pnext 0 flags 3 use 0
map sn0 192.168.0.1/24 -> 216.164.32.41/32
	ifp 0x0 space 0 nextip 0.0.0.0 pnext 0 flags 0 use 0

>now what does  ipnat -ls  say?

mapped in	0	out	0
added	0	expired	0
inuse	0
rules	2
List of active MAP/Redirect filters:
map sn0 192.168.0.1/24 -> 216.164.32.41/32 portmap tcp/udp 10000:40000
map sn0 192.168.0.1/24 -> 216.164.32.41/32


Now it all works! Very cool.  The next question is, what did we just do
and is that something that I will need to add somewhere in the startup of
my machine for it to work after I reboot, or should it 'just work' now.

Also, is this something that I _shouldn't have to do_ but did because I
made a mistake somewhere or ???

Regards,

Greg