Subject: port-i386/10041: Ipnat caused kernel page fault
To: None <>
From: None <>
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
>Originator:     Chris H..
>Release:        NetBSD formal release 1.4.2
NetBSD 1.4.2 NetBSD 1.4.2 (GENERIC) #3: Wed Mar 15 23:41:54 PST
 2000 i386

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 port 23 -> port 23 tcp
map de0 -> portmap tcp/udp 2000:30000
map de0 ->
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)

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