Date: Sat, 30 Jun 2018 17:31:59 +0200 From: Jakub Chromy <hicks@cgi.cz> To: freebsd-virtualization@freebsd.org Subject: Re: Possible bug: 11.2-RELEASE guest with vtnet and PF Message-ID: <305ba086-8a06-3967-87cd-dfbce41deafe@cgi.cz> 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
... problem replicated with e1000 / em driver: pass out quick on *em0* proto tcp from any to any keep state -> pfctl: pfi_get_ifaces: Bad file descriptor vs. odine:~# ifconfig -a em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM> ether 58:9c:fc:04:aa:91 hwaddr 58:9c:fc:04:aa:91 inet ...netmask 0xffffffe0 broadcast....206.223 nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT <full-duplex>) status: active vtnet0: 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 -- s pozdravem Jakub Chromy CGI Systems div. ---------------- CGI CZ s.r.o. sales@cgi.cz 775 144 257 234 697 102 www.cgi.cz On 30.06.2018 v 17:07 Jakub Chromy wrote: > 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. > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?305ba086-8a06-3967-87cd-dfbce41deafe>