From owner-freebsd-pf@freebsd.org Mon Jul 2 14:33:27 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 ABA86102B6EC; Mon, 2 Jul 2018 14:33:27 +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 1A0928B9DD; Mon, 2 Jul 2018 14:33:27 +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 0D9B8113A60; Mon, 2 Jul 2018 16:33:26 +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 0fiTomUkr2-j; Mon, 2 Jul 2018 16:33:23 +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 87B9F113A3C; Mon, 2 Jul 2018 16:33:23 +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 3D74D42075; Mon, 2 Jul 2018 16:33:23 +0200 (CEST) Subject: Re: Possible bug: 11.2-RELEASE guest with vtnet and PF To: Kristof Provost Cc: freebsd-virtualization@freebsd.org, FreeBSD PF List References: <848b6851-89fb-b6c8-b412-d5ed897f63d2@cgi.cz> <753B1604-6BFE-48F6-9AA0-38A1C11B6E9B@FreeBSD.org> From: Jakub Chromy Message-ID: Date: Mon, 2 Jul 2018 16:33: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:33:27 -0000 ... will try without that "-n" parameter also... -- 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 >