Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Jul 2018 16:17:30 +0200
From:      "Kristof Provost" <kp@FreeBSD.org>
To:        "Jakub Chromy" <hicks@cgi.cz>
Cc:        freebsd-virtualization@freebsd.org, "FreeBSD PF List" <freebsd-pf@freebsd.org>
Subject:   Re: Possible bug: 11.2-RELEASE guest with vtnet and PF
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <owner-freebsd-pf@freebsd.org>
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 <kp@FreeBSD.org>
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 <hicks@cgi.cz>
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\)" <freebsd-pf.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-pf>,
 <mailto:freebsd-pf-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-pf/>;
List-Post: <mailto:freebsd-pf@freebsd.org>
List-Help: <mailto:freebsd-pf-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-pf>,
 <mailto:freebsd-pf-request@freebsd.org?subject=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
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?753B1604-6BFE-48F6-9AA0-38A1C11B6E9B>