Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jun 2018 17:07:09 +0200
From:      Jakub Chromy <hicks@cgi.cz>
To:        freebsd-virtualization@freebsd.org
Subject:   Possible bug: 11.2-RELEASE guest with vtnet and PF
Message-ID:  <848b6851-89fb-b6c8-b412-d5ed897f63d2@cgi.cz>

next in thread | raw e-mail | index | archive | help
Hello guys,

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

these are my interfaces:

vtnet0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
         options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE>
         ether 58:9c:fc:04:aa:91
         hwaddr 58:9c:fc:04:aa:91
         inet *.*.206.214 netmask 0xffffffe0 broadcast *.*.206.223
         nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
         media: Ethernet 10Gbase-T <full-duplex>
         status: active
vtnet1: flags=8902<BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
         options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE>
         ether 58:9c:fc:08:e0:c7
         hwaddr 58:9c:fc:08:e0:c7
         nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
         media: Ethernet 10Gbase-T <full-duplex>
         status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
         options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
         inet6 ::1 prefixlen 128
         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
         inet 127.0.0.1 netmask 0xff000000
         nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
         groups: lo

I haven't noticed any other problems with vtnet0.... it is routing properly, everything works... minus Packet Filter.


-- 


    regards

Jakub Chromy


CGI Systems div.
----------------
CGI CZ s.r.o.
sales@cgi.cz
775 144 257
234 697 102
www.cgi.cz




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?848b6851-89fb-b6c8-b412-d5ed897f63d2>