From nobody  Sat Jan 18 13:50:14 1997
Received: (from nobody@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id NAA00731;
          Sat, 18 Jan 1997 13:50:14 -0800 (PST)
Message-Id: <199701182150.NAA00731@freefall.freebsd.org>
Date: Sat, 18 Jan 1997 13:50:14 -0800 (PST)
From: spatula@gulf.net
To: freebsd-gnats-submit@freebsd.org
Subject: kernel panic when trying to add a route with ip firewalling enabled
X-Send-Pr-Version: www-1.0

>Number:         2526
>Category:       kern
>Synopsis:       kernel panic when trying to add a route with ip firewalling enabled
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 18 14:00:01 PST 1997
>Closed-Date:    Tue May 13 16:32:22 PDT 1997
>Last-Modified:  Tue May 13 16:33:20 PDT 1997
>Originator:     Nick Johnson
>Release:        3.0-970114-SNAP
>Organization:
>Environment:
3.0 with IP firewalling enabled, limited verbosity.
>Description:
When trying to enable an interface that was incorrectly configured
in syconfig, the kernel would panic upon the following command:

ifconfig ep0 inet <my machine's IP> <my gateway's IP>

The kernel debugger reports:

panic: ip_fw: chain
Debugger("panic")
Stopped at _debugger+0x35: moveb $0,_in_Debugger.118

Register contents were:

cs=0x8, ds=0x10, es=0x10, ss=0x10, eax=0x12
ecx=0xc0020000, edx=0xf0180869 _db_rite_bytes+0xd9
ebx=0x100, esp=0xefbffd50 _kstack+0x1d50, ebp=0xefbffd58 _kstack+0x1d58
esi=0xf0150d96 _ipfw_report+0x39e, edi=0xf135bfd0
eip=0xf01808f1 _Debugger+0x35, efl=0x246

>How-To-Repeat:
With IP firewalling enabled, and rules present that would block IP
from the local machine to its gateway, enable an interface from the
local machine to its gateway.
>Fix:
Disable IP Firewalling or do something like this:

ipfw flush
ipfw add allow all from any to any

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: alex 
State-Changed-When: Tue May 13 16:32:22 PDT 1997 
State-Changed-Why:  
Fixed in rev 1.57. 
>Unformatted:
