NetBSD Problem Report #10295
Received: (qmail 23663 invoked from network); 6 Jun 2000 12:37:39 -0000
Message-Id: <200006061237.e56CbEl11299@thunk.hamachi.org>
Date: Tue, 6 Jun 2000 08:37:14 -0400 (EDT)
From: Bill Sommerfeld <wes@orchard.arlington.ma.us>
Reply-To: wes@orchard.arlington.ma.us
To: gnats-bugs@gnats.netbsd.org
Subject: ipnat vs. ipforwarding
X-Send-Pr-Version: 3.95
>Number: 10295
>Category: misc
>Synopsis: ipnat vs. ipforwarding
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: misc-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jun 06 12:38:00 +0000 2000
>Closed-Date: Tue Sep 24 11:05:53 +0000 2002
>Last-Modified: Tue Sep 24 11:06:00 +0000 2002
>Originator: Bill Sommerfeld
>Release: 20000606
>Organization:
>Environment:
System: NetBSD thunk 1.4ZA NetBSD 1.4ZA (VAIO) #70: Mon Jun 5 23:06:24 EDT 2000 root@:/usr/wes/sys-current/arch/i386/compile/VAIO i386
>Description:
Channelling for Paul Hoffman:
ipnat needs ip forwarding turned on in order to be anything more than
a waste of kvm.
There should be an rc.conf setting for IPv4 ip forwarding allowing you
to tweak this one way or the other.
/etc/rc.d/ipnat should notice if/when sysctl net.inet.ip.forwarding is
turned off and either whine, or fix it itself (exactly which doesn't
really matter to me).
>How-To-Repeat:
turn on ipnat, don't turn on IP forwarding, be confused for a bit.
>Fix:
probably small.
>Release-Note:
>Audit-Trail:
From: "icmp" <icmpees@hotmail.com>
To: <gnats-bugs@netbsd.org>
Cc:
Subject: Re: misc/10295
Date: Sun, 25 Nov 2001 22:06:10 -0500
Hello, I was reading through the misc/ PRs and saw this one had been open
for over a year... being a trivial "fix," I decided to make a simple
addition to the /etc/rc.d/ipnat script (a diff follows from my 1.5X box) to
check sysctl net.inet.ip.forwarding and warn the user when it isn't set. I
guess this should pretty much close the PR..
Here's the diff for /etc/rc.d/ipnat:
[root@netbsds:0:0 /etc/rc.d]# diff ipnat~ ipnat
27a28,30
> if [ "`/sbin/sysctl -n net.inet.ip.forwarding`" = "0" ]; then
> echo "WARNING: net.inet.ip.forwarding is set to 0!"
> fi
State-Changed-From-To: open->closed
State-Changed-By: martti
State-Changed-When: Tue Sep 24 04:04:07 PDT 2002
State-Changed-Why:
I added a check for this. It prints now a warning the the IP
forwarding is not activated.
From: Martti Kuparinen <martti@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: pr/10295 CVS commit: basesrc/etc/rc.d
Date: Tue, 24 Sep 2002 14:03:54 +0300 (EEST)
Module Name: basesrc
Committed By: martti
Date: Tue Sep 24 11:03:54 UTC 2002
Modified Files:
basesrc/etc/rc.d: ipnat
Log Message:
Print a warning message if IP forwarding is not activated (PR#10295).
To generate a diff of this commit:
cvs rdiff -r1.7 -r1.8 basesrc/etc/rc.d/ipnat
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.