Trying to open ports to VM
-
If I have a VM on a machine, is there anything specific I need to do on pf to get ports forwarded to it directly?
I have tried (and can use either at smarter folks discretion) both VM NAT and bridge mode networking.I know this post is light on details, but I don't want to give you a lot of unnecessary info.
Let me know what info is needed and I'll happily oblige.
Right now it's ONT > pf > LAN IPs > Host (guest)
I tried both NAT and bridge and can communicate between the host and guest either way, but can't connect to the guest from other computers.
-
@tknospdr The VM has an IP in LAN?
-
Right now, I just switched back to bridge mode for the VM in Fusion. I assigned it a static dhcp address in pf and it has that iP address. It's in the same subnet as the host.
I have an entry for it's IP address in the host overrides section of DNS resolver in pf.
So now I can ping it via IP address and host name from anywhere on my internal subnets.
I installed gufw on the VM and set it to allow all incoming.
I have pf fw nat rules set up to allow requests to the VM's IP address from WAN address on 80 and 443 to pass.
Still, when I try to run ./discourse-setup it tells me '443 does not appear to be accessible using hostname'