From gael.roualland@dial.oleane.com  Sat Nov 26 17:14:01 2005
Return-Path: <gael.roualland@dial.oleane.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D094316A41F;
	Sat, 26 Nov 2005 17:14:01 +0000 (GMT)
	(envelope-from gael.roualland@dial.oleane.com)
Received: from tom.weedns.com (gre92-1-81-57-176-124.fbx.proxad.net [81.57.176.124])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E6DA043D69;
	Sat, 26 Nov 2005 17:13:54 +0000 (GMT)
	(envelope-from gael.roualland@dial.oleane.com)
Received: from dial.oleane.com (tom.priv [192.168.27.2])
	by tom.weedns.com (8.13.1/8.13.1) with ESMTP id jAQHF5SA038684
	(version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT);
	Sat, 26 Nov 2005 18:15:07 +0100 (CET)
Message-Id: <438897CB.4541DA01@dial.oleane.com>
Date: Sat, 26 Nov 2005 18:13:47 +0100
From: =?iso-8859-1?Q?Ga=EBl?= Roualland <gael.roualland@dial.oleane.com>
Sender: gael.roualland@dial.oleane.com
To: Hajimu UMEMOTO <ume@freebsd.org>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: [kern/89472] ipfw2 no longer supports filtering IPv6-over-IPv4 on 
 6.0-RELEASE
References: <200511232143.jANLh7x3022902@jerry.priv> <ygeveyfxsix.wl%ume@mahoroba.org>

>Number:         89591
>Category:       kern
>Synopsis:       Re: [kern/89472] ipfw2 no longer supports filtering IPv6-over-IPv4 on
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 26 17:20:02 GMT 2005
>Closed-Date:    Sat Nov 26 18:05:55 GMT 2005
>Last-Modified:  Sat Nov 26 18:05:55 GMT 2005
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 Hello,
 
 > gael>   Before ipfw2 knows about IPv6, it was possible to filter IPv6
 > gael>         traffic which was tunneled in IPv4 by doing something as
 > 
 > gael>             ipfw add allow ipv6 from a.b.c.d to me
 > 
 > gael>         where a.b.c.d was the tunnel end.
 > 
 > gael>         Now that ipfw2 does ipv6, such a line is interpreted as being
 > gael>         an IPv6 rule, and is rejected since the specified IP address
 > gael>         is not an IPv6.
 > 
 > gael>         The alternate syntax 'allow ip from a.b.c.d to me proto ipv6'
 > gael>         is accepted by ipfw, but does not work in the kernel since the
 > gael>         first proto test (IPv4) does not match the extracted protocol
 > gael>         of the packet (IPv6)
 > 
 > `allow ip from a.b.c.d to me proto 41' should work for you. 
 
 Hum, I didn't notice the "ipv6" string was handled a bit differently
 than the numeric proto number in ipfw.
 
 It does work, at least IPv6-over-IPv4 packets are not blocked, but ipfw
 list/show reports the rule as "allow ip from a.b.c.d to me" and it does
 filter it that way, opening a lot more than just protocol 41...
 
 -- 
 Gal Roualland -+- gael.roualland@dial.oleane.com
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sat Nov 26 18:05:17 GMT 2005 
State-Changed-Why:  
Misfiled followup to kern/89472; content migrated. 


Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Nov 26 18:05:17 GMT 2005 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=89591 
>Unformatted:
  6.0-RELEASE
