I'm trying to assign a public IP to a guest managed by bhyve.
My host gave me 2 public IPs to use, which I'll refer to as (to obfuscate the real IP):
I have attached the VM to the public switch:
My pf.conf on the host looks as follows:
The VM can't ping to the outside, and can't be pinged from the outside either. This is my first time trying to virtualize with FreeBSD, so I have no idea how to troubleshoot this issue other than searching on the forums. I've read a couple forum posts but no solution there seems to fix my problem.
Any help would be greatly appreciated!
My host gave me 2 public IPs to use, which I'll refer to as (to obfuscate the real IP):
- 111.111.111.111 (host)
- 222.222.222.222 (webserver vm)
Code:
ifconfig_vtnet0="inet 222.222.222.222 netmask 255.255.255.0"
I have attached the VM to the public switch:
Code:
------------------------
Virtual Switch: public
------------------------
type: auto
ident: bridge0
vlan: -
nat: yes
physical-ports: em0
bytes-in: 856834 (836.751K)
bytes-out: 20904094 (19.935M)
virtual-port
device: tap1
vm: database
virtual-port
device: tap0
vm: webserver
My pf.conf on the host looks as follows:
Code:
include "/var/vm/.config/pf-nat.conf"
The VM can't ping to the outside, and can't be pinged from the outside either. This is my first time trying to virtualize with FreeBSD, so I have no idea how to troubleshoot this issue other than searching on the forums. I've read a couple forum posts but no solution there seems to fix my problem.
Any help would be greatly appreciated!