Subject: kern/8932: ipnat.8 incorrectly says that both IPFORWARDING and GATEWAY options required
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mike@pelley.com>
List: netbsd-bugs
Date: 12/01/1999 09:08:41
>Number: 8932
>Category: kern
>Synopsis: ipnat.8 incorrectly says that both IPFORWARDING and GATEWAY options required
>Confidential: no
>Severity: non-critical
>Priority: high
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 1 09:06:00 1999
>Last-Modified:
>Originator: Mike Pelley
>Organization:
Foundation
>Release: -current as of December 1, 1999
>Environment:
Pulled ipnat.8 version 1.7 from CVS Dec. 1, 1999
>Description:
The man page for ipnat in man8 says that IPFORWARDING, GATEWAY and PFIL_HOOKS are required for IPNAT to work. From reading the options man page it looks like GATEWAY includes the IPFORWARDING option, which would mean either is sufficient.
>How-To-Repeat:
man ipnat
>Fix:
Patch follows.
--- ipnat.8 Wed Dec 1 11:46:33 1999
+++ ipnat.8.new Wed Dec 1 11:48:38 1999
@@ -32,11 +32,14 @@
running. In addition, the following kernel options need to be turned on
in order to use
.Nm Ns :
-.Em GATEWAY ,
.Em IPFORWARDING
and
.Em PFIL_HOOKS .
The
+.Em GATEWAY
+kernel option includes the
+.Em IPFORWARDING
+option. The
.Xr sysctl
.Pp
.Dl Dq "sysctl net.inet.ip.forwarding
>Audit-Trail:
>Unformatted: