Subject: Re: NetBSD and routing
To: Stan Pietkiewicz <stanp@storm.ca>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-i386
Date: 04/09/2000 13:18:05
On Sat, Apr 08, 2000 at 02:40:51PM -0400, Stan Pietkiewicz wrote:
> I recently installed NetBSD 1.4.2 on a i486 machine I had handy, with
> the plan of using it for a router / firewall to connect through my cable
> modem. I managed to set up both network interfaces so I can see both
> networks form the 486 (the worl as well as my network), but what do I
> need to do so other machines on my network can see the rest of the
> world??

So, in /etc/rc.conf:
change ipfilter and ipnat to 'YES'.
In /etc/netstart.local add a line:
sysctl -w net.inet.ip.forwarding=1

Then setup a /etc/ipf.conf and /etc/ipnat.conf.
Look at the man pages for ipf, ipnat, ipf.conf, ipnat.conf and examples
in /usr/share/examples/ipf.

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