bin/89472: ipfw2 no longer supports filtering IPv6-over-IPv4 on 6.0-RELEASE

Gael Roualland gael.roualland at dial.oleane.com
Wed Nov 23 21:51:16 GMT 2005


>Number:         89472
>Category:       bin
>Synopsis:       ipfw2 no longer supports filtering IPv6-over-IPv4 on 6.0-RELEASE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 23 21:50:15 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Gael Roualland <gael.roualland at dial.oleane.com>
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD jerry.priv 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Sat Nov 19 20:48:17 CET 2005 gael at jerry:/home/cvsup/obj/home/cvsup/src/sys/JERRY i386
>Description:
	Before ipfw2 knows about IPv6, it was possible to filter IPv6 
        traffic which was tunneled in IPv4 by doing something as

            ipfw add allow ipv6 from a.b.c.d to me
  
        where a.b.c.d was the tunnel end.

        Now that ipfw2 does ipv6, such a line is interpreted as being
        an IPv6 rule, and is rejected since the specified IP address
        is not an IPv6.

        The alternate syntax 'allow ip from a.b.c.d to me proto ipv6' 
        is accepted by ipfw, but does not work in the kernel since the
        first proto test (IPv4) does not match the extracted protocol 
        of the packet (IPv6)
>How-To-Repeat:
        ipfw add allow ipv6 from a.b.c.d to me 
>Fix:
        Workaround : change the "ipv6" protocol to "all", and trust
        the end of the tunnel...

        The real fix would IMHO to add a different test for the inner protocol
        carried by a packet in addition to the protocol packet itself.
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list