From nobody@FreeBSD.org  Thu Apr 14 07:16:07 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C499E16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Apr 2005 07:16:07 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A060343D31
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Apr 2005 07:16:07 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j3E7G7B3004981
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Apr 2005 07:16:07 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j3E7G7hK004980;
	Thu, 14 Apr 2005 07:16:07 GMT
	(envelope-from nobody)
Message-Id: <200504140716.j3E7G7hK004980@www.freebsd.org>
Date: Thu, 14 Apr 2005 07:16:07 GMT
From: John Wehle <john@feith.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 5.4-RC2 breaks ipfilter NAT when using netgraph
X-Send-Pr-Version: www-2.3

>Number:         79895
>Category:       kern
>Synopsis:       [ipf] 5.4-RC2 breaks ipfilter NAT when using netgraph [regression]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-net
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 14 07:20:22 GMT 2005
>Closed-Date:    Sun Sep 25 12:53:11 UTC 2011
>Last-Modified:  Sun Sep 25 12:53:11 UTC 2011
>Originator:     John Wehle
>Release:        5.4-RC2
>Organization:
Personal
>Environment:
FreeBSD carmen.FEITH.COM 5.4-RC2 FreeBSD 5.4-RC2 #0: Thu Apr 14 00:43:38 EDT 2005 root@wagner.FEITH.COM:/usr/obj/usr/src/sys/CARMEN  i386 
>Description:
Using mpd on FreeBSD 5.3 to VPN into work

ipnat.rules containing:
  map fxp0 192.168.1.0/24 -> 0/32 portmap tcp/udp 40000:60000
  map ng0 192.168.1.0/24 -> 0/32 portmap tcp/udp 40000:60000

network diagram:
  cable modem <-> fxp0 carmen fxp1 192.168.1.1 <-> 192.168.1.2 wagner

I can login from wagner into a machine at work ... the packets go
from wagner to carmen fxp1 to ng0 out fxp0 to the machine at work.  Running tcpdump -i ng0 -n on carmen shows the packets have been nat'd.  Upgraded the machine to FreeBSD 5.4-RC2 and the nat'ng no longer happens.  The tcpdump shows the packets going out ng0 with
the private IP address of 192.168.1.2.  Move /boot/kernel.old to
/boot/kernel, rebooted, and things worked again.
>How-To-Repeat:
Setup the above configuration. 
>Fix:
      
>Release-Note:
>Audit-Trail:

From: John Wehle <john@feith.com>
To: bug-followup@FreeBSD.org, john@FEITH.COM
Cc:  
Subject: Re: kern/79895: 5.4-RC2 breaks ipfilter NAT when using netgraph
Date: Fri, 15 Apr 2005 01:56:21 -0400

 Narrowed it down a little further ... using the 5.4-RC2 kernel
 NATs the netgraph packets fine if I copy over the ipl.ko from
 the 5.3 kernel.  It appears the problem is due to a recent change
 to the ipfilter code.
Responsible-Changed-From-To: freebsd-bugs->darrenr 
Responsible-Changed-By: glebius 
Responsible-Changed-When: Fri Apr 15 10:08:40 GMT 2005 
Responsible-Changed-Why:  
Over to ipfilter maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79895 
State-Changed-From-To: open->feedback 
State-Changed-By: eadler 
State-Changed-When: Sat Sep 24 04:18:27 UTC 2011 
State-Changed-Why:  
Is this still an issue on recent versions of FreeBSD? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79895 
State-Changed-From-To: feedback->closed 
State-Changed-By: eadler 
State-Changed-When: Sun Sep 25 12:53:10 UTC 2011 
State-Changed-Why:  
submitter says the issue has been fixed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79895 
>Unformatted:
