From owner-freebsd-questions@freebsd.org Sat May 1 04:20:57 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 738155FB8F7 for ; Sat, 1 May 2021 04:20:57 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from mail.sermon-archive.info (sermon-archive.info [47.181.130.121]) by mx1.freebsd.org (Postfix) with ESMTP id 4FXGJ80276z4Ykn for ; Sat, 1 May 2021 04:20:55 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from smtpclient.apple (mini [10.0.1.251]) by mail.sermon-archive.info (Postfix) with ESMTPSA id 4FXGJ06Y0Rz2fjPy for ; Fri, 30 Apr 2021 21:20:48 -0700 (PDT) From: Doug Hardie Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: PF with IPv6 Message-Id: <2CD4806C-F1A4-4DDE-8C2F-2B0A08EA2A18@sermon-archive.info> Date: Fri, 30 Apr 2021 21:20:48 -0700 To: FreeBSD Questions X-Mailer: Apple Mail (2.3654.80.0.2.43) X-Virus-Scanned: clamav-milter 0.103.1 at mail X-Virus-Status: Clean X-Rspamd-Queue-Id: 4FXGJ80276z4Ykn X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bc979@lafn.org designates 47.181.130.121 as permitted sender) smtp.mailfrom=bc979@lafn.org X-Spamd-Result: default: False [-2.47 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[47.181.130.121:from]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[lafn.org: no valid DMARC record]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[47.181.130.121:from:127.0.2.255]; TO_DN_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.77)[-0.771]; R_SPF_ALLOW(-0.20)[+mx]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:5650, ipnet:47.181.128.0/18, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 May 2021 04:20:57 -0000 FreeBSD 13-RELEASE. I have a small test network setup and tried to = block all IPv6 except those addressed to a specific address. = /etc/pf.conf contained: ext_if =3D "bge0" LAN3 =3D "2001:1000:0:3000::/64" pass in quick log on $ext_if proto ipv6 from $LAN3 to $LAN3 block in log on $ext_if proto ipv6 from any to any Nothing got blocked. pftop showed all zeros for both rules. I then = added at the end: pass in quick log on $ext_if proto icmp6 from $LAN3 to $LAN3 block in log on $ext_if proto icmp6 from any to any A lot of stuff got blocked. The log shows many entries like: 15:59:41.597632 rule 3/0(match): block in on bge0: (hlim 1, next-header = Options (0) payload length: 32) fe80::120c:6bff:fe5d:4404 > ff02::1: HBH = (rtalert: 0x0000) (pad1)(pad1) ICMP6, multicast listener query 0x0000: 6000 0000 0020 0001 fe80 0000 0000 0000 = `............... 0x0010: 120c 6bff fe5d 4404 ff02 0000 0000 0000 = ..k..]D......... 0x0020: 0000 0000 0000 0001 3a00 0502 0000 0000 = ........:....... 0x0030: 8200 98aa .... Rule 3 is the block for ICMP6, but those are clearly IP6 packets that = should have been blocked by rule 1. Is there a problem with IPv6 and = pf? -- Doug