Subject: port-i386/10041: Ipnat caused kernel page fault
To: None <gnats-bugs@gnats.netbsd.org>
From: None <chrix@home.com>
List: netbsd-bugs
Date: 05/03/2000 20:18:11
>Number:         10041
>Category:       port-i386
>Synopsis:       Ipnat caused kernel page fault
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 03 20:19:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Chris H..
>Release:        NetBSD formal release 1.4.2
>Organization:
>Environment:
NetBSD Gateway.boxz.com 1.4.2 NetBSD 1.4.2 (GENERIC) #3: Wed Mar 15 23:41:54 PST
 2000     toddpw@vader.toddpw.net:/usr/src/sys/arch/i386/compile/GENERIC i386

>Description:
Instead of enabling "ipnat" throught the "/etc/rc.conf" by setting ipnat=YES, the system will crashed if super user issue "ipnat -f /etc/ipnat.conf" at the command line..

my /etc/ipnat.conf is
#rdr de0 0.0.0.0/0 port 23 -> 192.168.0.5 port 23 tcp
map de0 192.168.0.0/24 -> 0.0.0.0/32 portmap tcp/udp 2000:30000
map de0 192.168.0.0/24 -> 0.0.0.0/32
 
The error message on the console is
uvm_fault (0xc2310840,0x0,0,1) -> 1
kernel : page fault trap, code = 0
stopped in ipnat at _nat_ioctl+0x2ed : cmpl $0,0 (%edx)
db>


>How-To-Repeat:
make sure that ipnat is not enabled.
if it is enabled, in "/etc/rc.conf" set ipfilter=NO and ipnat=NO  
and reboot.

do "ipnat -f /etc/ipnat.conf" at command line as root
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted: