From owner-freebsd-pf@freebsd.org Mon Jul 2 14:17:35 2018 Return-Path: Delivered-To: freebsd-pf@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1A037102AE71; Mon, 2 Jul 2018 14:17:35 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BA6878AD95; Mon, 2 Jul 2018 14:17:34 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA 2" (verified OK)) (Authenticated sender: kp) by smtp.freebsd.org (Postfix) with ESMTPSA id 80594B7AA; Mon, 2 Jul 2018 14:17:34 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from [172.28.128.1] (d5152df30.static.telenet.be [81.82.223.48]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id 7A5645981A; Mon, 2 Jul 2018 16:17:31 +0200 (CEST) From: "Kristof Provost" To: "Jakub Chromy" Cc: freebsd-virtualization@freebsd.org, "FreeBSD PF List" Subject: Re: Possible bug: 11.2-RELEASE guest with vtnet and PF Date: Mon, 02 Jul 2018 16:17:30 +0200 X-Mailer: MailMate (2.0BETAr6113) Message-ID: <753B1604-6BFE-48F6-9AA0-38A1C11B6E9B@FreeBSD.org> In-Reply-To: <848b6851-89fb-b6c8-b412-d5ed897f63d2@cgi.cz> References: <848b6851-89fb-b6c8-b412-d5ed897f63d2@cgi.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jul 2018 14:17:35 -0000 Hi Jakub, On 30 Jun 2018, at 17:07, Jakub Chromy wrote: > I've just installed a 11.2-RELEASE guest under bhyve (hypervisor is > 11.1-RELEASE)... and I cant use Virtio network interface with PF: > > odine:/boot/kernel# /sbin/pfctl -n -f ~/local/tmp/pf.work > *pfctl: pfi_get_ifaces: Bad file descriptor* > > the file contains the following single line only: > > pass out quick on vtnet0 proto tcp from any to any keep state > I’m pretty sure this is a pf bug rather than an issue with vtnet. Does this still happen if you don’t specify ‘-n’? I suspect this might be related to r333181, but that’s included in CURRENT too, and I’ve not been able to reproduce this on my CURRENT box. I’m updating my stable/11 test VM now, but that’ll take a while. Regards, Kristof From owner-freebsd-pf@freebsd.org Mon Jul 2 14:32:37 2018 Return-Path: Delivered-To: freebsd-pf@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 04EDB102B66C; Mon, 2 Jul 2018 14:32:37 +0000 (UTC) (envelope-from hicks@cgi.cz) Received: from hel.cgi.cz (hel.cgi.cz [178.238.36.117]) (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 7E0D98B95D; Mon, 2 Jul 2018 14:32:34 +0000 (UTC) (envelope-from hicks@cgi.cz) Received: from hel.cgi.cz (localhost [127.0.0.1]) by hel.cgi.cz (Postfix) with ESMTP id 37F491135D6; Mon, 2 Jul 2018 16:32:27 +0200 (CEST) X-Virus-Scanned: amavisd-new at cgi.cz Received: from hel.cgi.cz ([127.0.0.1]) by hel.cgi.cz (hel.cgi.cz [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ReQmRxuFnQSa; Mon, 2 Jul 2018 16:32:25 +0200 (CEST) Received: from mail2.cgi.cz (hermes [172.17.174.1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by hel.cgi.cz (Postfix) with ESMTPS id B13A51135A9; Mon, 2 Jul 2018 16:32:24 +0200 (CEST) Received: from [192.168.8.152] (unknown [82.100.31.11]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail2.cgi.cz (Postfix) with ESMTPSA id 4097B42049; Mon, 2 Jul 2018 16:32:24 +0200 (CEST) Subject: Re: Possible bug: 11.2-RELEASE guest with vtnet and PF To: Kristof Provost References: <848b6851-89fb-b6c8-b412-d5ed897f63d2@cgi.cz> <753B1604-6BFE-48F6-9AA0-38A1C11B6E9B@FreeBSD.org> Cc: freebsd-virtualization@freebsd.org, freebsd-pf@freebsd.org From: Jakub Chromy Message-ID: <3e9271ae-d71d-013e-73c6-9a57570b03af@cgi.cz> Date: Mon, 2 Jul 2018 16:32:23 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <753B1604-6BFE-48F6-9AA0-38A1C11B6E9B@FreeBSD.org> Content-Language: cs Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jul 2018 14:32:37 -0000 Hello Kristof, I can give you access to that instance if you wish... -- regards Jakub Chromy CGI Systems div. ---------------- CGI CZ s.r.o. sales@cgi.cz 775 144 257 234 697 102 www.cgi.cz Dne 02.07.2018 v 16:17 Kristof Provost napsal(a): > > Hi Jakub, > > On 30 Jun 2018, at 17:07, Jakub Chromy wrote: > > I've just installed a 11.2-RELEASE guest under bhyve (hypervisor > is 11.1-RELEASE)... and I cant use Virtio network interface with PF: > > odine:/boot/kernel# /sbin/pfctl -n -f ~/local/tmp/pf.work > *pfctl: pfi_get_ifaces: Bad file descriptor* > > the file contains the following single line only: > > pass out quick on vtnet0 proto tcp from any to any keep state > > I’m pretty sure this is a pf bug rather than an issue with vtnet. > > Does this still happen if you don’t specify ‘-n’? > > I suspect this might be related to r333181, but that’s included in > CURRENT too, and I’ve not been able to reproduce this on my CURRENT > box. I’m updating my stable/11 test VM now, but that’ll take a while. > > Regards, > Kristof >