Suddenly lost network in BSD VMs, Linux still works

Hello,

I have five VMs managed by vm-bhyve (they are down normally): FreeBSD, NetBSD, OpenBSD, Ubuntu, and Ubuntu LTS.

I have a vm-public switch on host (192.168.226.1/24), connected to re0 (public network). On the host pf is running, which has the rules
Code:
nat on $ext_if inet from $the_vms_net to any -> ($ext_if)

Here ext_if is re0, which is connected to public internet, and the_vms_net is 192.168.226.0/24, where all VMs reside.

Something happened, and I lost network in BSD VMs; Ubuntu ones still have network, BSD ones lost the network. I still can ping from any VM 192.168.226.1 (Ubuntu VMs show it is a destination for default route, and BSDs are supposed to route things there too).

What is going on and how to debug it?
 
I still do not understand what happened, but the reason is that NAT rules do not work; Ubuntu hosts were getting (real) IPv6 address, bypassing NAT.
 
Solved. Stupid me. The problem between chair and keyboard, I did not realize that removing the following line (because other reason) from rc.conf will break things.
Code:
gateway_enable="YES"
 
Back
Top