Subject: Re: Building a gateway
To: NetBSD port i386 <port-i386@netbsd.org>
From: Eric Delcamp <e.delcamp@wanadoo.fr>
List: port-i386
Date: 03/17/1999 10:40:06
Hi !

Yes, I have forgotten to give you some informations:

root.margo:~> sysctl net.inet.ip.forwarding
net.inet.ip.forwarding = 1

root.margo:~> uname -a
NetBSD margo.no.net 1.3K NetBSD 1.3K (MARGO) #3: Tue Mar 16 20:44:38 CET
1999
  root@margo.no.net:/usr/src/sys/arch/i386/compile/MARGO i386

root.margo:~> ipnat -s
mapped  in      0       out     0
added   0       expired 0
inuse   0
rules   3

In the previous message, I have included a 'ps ax' list, you should look to
see if a daemon (or something else) is missing or not running.

Still nothing.....
---
Eric Delcamp......................NetBSD i386 & Amiga, BeOS, Windows NT
Merignac..........................Distributed.net : < 6800th (09/03/99)
France............................Magic the Gathering player

-----Message d'origine-----
De : Greg A. Woods <woods@most.weird.com>
À : Eric Delcamp <e.delcamp@wanadoo.fr>
Cc : NetBSD port i386 <port-i386@netbsd.org>
Date : mercredi 17 mars 1999 09:02
Objet : Re: Building a gateway


>Given the stats from your "ipfstat" I'd guess that you don't have
>"options GATEWAY" and/or "options IPFORWARDING" in your kernel, since it
>would seem that absolutely no packets are being seen by IP Filter.
>
>Check that forwarding is enabled with "sysctl net.inet.ip.forwarding".
>If it's turned off (i.e. "0") then that's definitely going to cause IP
>Filter's NAT to do nothing.  You should be able to enable forwarding
>without recompiling the kernel though: "sysctl -w
net.inet.ip.forwarding=1".
>
>Don't forget to try "ipnat -s" too....