From owner-freebsd-bugs@FreeBSD.ORG Sun Jan 11 15:38:57 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 301D21065748 for ; Sun, 11 Jan 2009 15:38:57 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 24E1F8FC13 for ; Sun, 11 Jan 2009 15:38:57 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n0BFK458047282 for ; Sun, 11 Jan 2009 15:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n0BFK4xJ047281; Sun, 11 Jan 2009 15:20:04 GMT (envelope-from gnats) Resent-Date: Sun, 11 Jan 2009 15:20:04 GMT Resent-Message-Id: <200901111520.n0BFK4xJ047281@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Stephane D'Alu" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93E9F106564A for ; Sun, 11 Jan 2009 15:14:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 828E58FC0C for ; Sun, 11 Jan 2009 15:14:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n0BFEKNR080380 for ; Sun, 11 Jan 2009 15:14:20 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n0BFEK7D080379; Sun, 11 Jan 2009 15:14:20 GMT (envelope-from nobody) Message-Id: <200901111514.n0BFEK7D080379@www.freebsd.org> Date: Sun, 11 Jan 2009 15:14:20 GMT From: "Stephane D'Alu" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/130381: ipv6 not fully configured when pf startup script is run X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jan 2009 15:38:57 -0000 >Number: 130381 >Category: misc >Synopsis: ipv6 not fully configured when pf startup script is run >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jan 11 15:20:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Stephane D'Alu >Release: 7.1-RELEASE-p1 >Organization: >Environment: FreeBSD incal.sdalu.com 7.1-RELEASE-p1 FreeBSD 7.1-RELEASE-p1 #5: Fri Jan 9 23:45:48 CET 2009 root@incal.sdalu.com:/usr/obj/usr/src/sys/INCAL amd64 >Description: After a boot/reboot pf filter doesn't take into account ipv6 addresses (except link local), which seems to be due by network_ipv6 not being run before pf startup script for example the pf.conf file contains the following rule: pass in proto tcp from any to net0 port http which is translated into (as shown by pcftl -s rules) pass in on net0 inet6 proto tcp from any to fe80::21c:c0ff:fe52:1234 port = http flags S/SA keep state pass in inet proto tcp from any to 192.168.2.2 port = http flags S/SA keep state pass in inet proto tcp from any to 192.168.1.2 port = http flags S/SA keep state the following ipv6 line is missing (with ipv6_ifconfig_net0="2001:1234:1234:1234::1/56" in rc.conf): pass in inet6 proto tcp from any to 2001:1234:1234:1234::1 port = http flags S/SA keep state >How-To-Repeat: Enable ipv6 and pf, configure ipv6 on network interface (net0 for example), add pf rule in pf.conf for net0. After boot/reboot pfctl -s rules won't show the corresponding rule for ipv6 >Fix: after boot, manually running: /etc/rc.d/pf restart >Release-Note: >Audit-Trail: >Unformatted: