Subject: Re: ipnat
To: Josh Davidson <dogtoy@ductape.net>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-sparc
Date: 11/20/2001 21:04:45
On Mon, Nov 19, 2001 at 04:07:44PM -0600, Josh Davidson wrote:
> i have a sparc2 with two ethernet cards and am trying to use ipf and ipnat
> to route between the two.
> 
> i have been following the suggestions on the netbsd faq's and howtos page
> and i can't get it to work. The computer behind my sparcstation is a
> windows box and i am using the address 10.0.0.3 for it.  The network i am
> routing to is 65.6.192.0
> 
> any help would be  great help!

Make sure net.inet.ip.forwarding is set to 1.
Then an empty ipf.conf and a ipnat.conf like:
map le0 10.0.0.0/16 -> 65.6.192.x/32 proxy port ftp ftp/tcp
map le0 10.0.0.0/16 -> 65.6.192.x/32 portmap tcp/udp 10000:40000
map le0 10.0.0.0/16 -> 65.6.192.x/32

Should do it, assuming le0 is the 65.6.192.x interface.
Then run
/etc/rc.d/ipfilter restart
/etc/rd.d/ipnat restart

(I assume you have
ipfilter=YES
ipnat=YES
in /etc/rc.conf)

--
Manuel Bouyer <bouyer@antioche.eu.org>
--