OPNsense Forum

English Forums => General Discussion => Topic started by: Mecallie on April 04, 2020, 11:58:19 AM

Title: OPNSense VM network config, booboo...
Post by: Mecallie on April 04, 2020, 11:58:19 AM
Hi folks, I hope you can help me.
I just installed OPNSense: seems to work out of the box! I am running it on a laptop with VMWare Workstation Pro installed.

I am running several more VM's on this host. However, I made a small booboo when configuring the network.
Current situation:

OPNSense VM with two bridged network adapters.
One adapter bridged directly do my cable modem (wan).
One adapter bridged to a switch (lan).

I forgot that if I bridge both my physical adapters the rest of the VM's on the host will only have the wifi adapter to bind to. Meaning that I now have my NAS/Nextcloud running via the wifi interface of the laptop :(

Can anyone advice me on what the best way is to correct this? Can I just set the (lan) interface to NAT on the host? Or host only even? I cannot attach a third ethernet card, so that is not an option :P
Title: Re: OPNSense VM network config, booboo...
Post by: Mecallie on April 07, 2020, 10:11:49 AM
Ok, here's what I did to fix it.
My onboard NIC can only receive an IPv4 address from my provider _in the OPNSense vm_  so I disabled IPv4 on the host. Of course, there is no need for this on the second adapter since that will just get a dhcp address from OPNSense.

So I enabled the IPv4 stack for the 2nd adapter and voila: works.

I might be better off not doing stuff like this at 2AM :P