From owner-freebsd-bugs@freebsd.org Sat Feb 20 06:20:31 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 675CEAAEC19 for ; Sat, 20 Feb 2016 06:20:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F8541AF0 for ; Sat, 20 Feb 2016 06:20:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1K6KVp2022783 for ; Sat, 20 Feb 2016 06:20:31 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 207363] pf drops fragmented ICMPv6 Date: Sat, 20 Feb 2016 06:20:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: freebsd.bugs@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Feb 2016 06:20:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207363 Bug ID: 207363 Summary: pf drops fragmented ICMPv6 Product: Base System Version: 10.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: freebsd.bugs@gmail.com pf drops fragmented ICMPv6 despite being configured to allow ipv6-icmp. This is consistently reproducible in 9.3-RELEASE and 10.3-BETA2. ping6 to www.freebsd.org works when there is no fragmentation: root@freebsd10:~ # ping6 -c3 -s1000 www.freebsd.org PING6(1048=3D40+8+1000 bytes) 2001:44b8:201:5801:20c:29ff:fe9a:dd8b --> 2001:1900:2254:206a::50:0 1008 bytes from 2001:1900:2254:206a::50:0, icmp_seq=3D0 hlim=3D56 time=3D18= 9.932 ms 1008 bytes from 2001:1900:2254:206a::50:0, icmp_seq=3D1 hlim=3D56 time=3D19= 2.217 ms 1008 bytes from 2001:1900:2254:206a::50:0, icmp_seq=3D2 hlim=3D56 time=3D19= 1.740 ms --- wfe0.ysv.freebsd.org ping6 statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/std-dev =3D 189.932/191.296/192.217/0.984 ms However replies and requests are dropped by pf when they are fragmented: root@freebsd10:~ # ping6 -c3 -s2000 www.freebsd.org PING6(2048=3D40+8+2000 bytes) 2001:44b8:201:5801:20c:29ff:fe9a:dd8b --> 2001:1900:2254:206a::50:0 --- wfe0.ysv.freebsd.org ping6 statistics --- 3 packets transmitted, 0 packets received, 100.0% packet loss root@freebsd10:~ # tcpdump -r /var/log/pflog 16:12:01.910795 IP6 wfe0.ysv.freebsd.org > 2001:44b8:201:5801:20c:29ff:fe9a:dd8b: frag (0|1440) ICMP6, echo reply[|icm= p6] 16:12:01.911607 IP6 wfe0.ysv.freebsd.org > 2001:44b8:201:5801:20c:29ff:fe9a:dd8b: frag (1440|568) 16:12:02.950043 IP6 wfe0.ysv.freebsd.org > 2001:44b8:201:5801:20c:29ff:fe9a:dd8b: frag (0|1440) ICMP6, echo reply[|icm= p6] 16:12:02.950050 IP6 wfe0.ysv.freebsd.org > 2001:44b8:201:5801:20c:29ff:fe9a:dd8b: frag (1440|568) 16:12:03.995892 IP6 wfe0.ysv.freebsd.org > 2001:44b8:201:5801:20c:29ff:fe9a:dd8b: frag (0|1440) ICMP6, echo reply[|icm= p6] 16:12:03.996569 IP6 wfe0.ysv.freebsd.org > 2001:44b8:201:5801:20c:29ff:fe9a:dd8b: frag (1440|568) Disabling pf allows the ping to work again: root@freebsd10:~ # pfctl -d No ALTQ support in kernel ALTQ related functions disabled pf disabled root@freebsd10:~ # ping6 -c3 -s2000 www.freebsd.org PING6(2048=3D40+8+2000 bytes) 2001:44b8:201:5801:20c:29ff:fe9a:dd8b --> 2001:1900:2254:206a::50:0 2008 bytes from 2001:1900:2254:206a::50:0, icmp_seq=3D0 hlim=3D54 time=3D20= 4.390 ms 2008 bytes from 2001:1900:2254:206a::50:0, icmp_seq=3D1 hlim=3D54 time=3D20= 0.665 ms 2008 bytes from 2001:1900:2254:206a::50:0, icmp_seq=3D2 hlim=3D54 time=3D20= 2.051 ms --- wfe0.ysv.freebsd.org ping6 statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/std-dev =3D 200.665/202.369/204.390/1.537 ms root@freebsd10:~ # cat /etc/pf.conf=20 set skip on lo pass out quick block in log pass in quick inet6 proto ipv6-icmp pass in quick inet6 proto tcp to port ssh This may be related to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D= 124933 --=20 You are receiving this mail because: You are the assignee for the bug.=