Hi All,
I have installed OPNSense in VirtualBox, where I have assigned two ports.
1. NAT
2. Internal network
But after installation, it's not detecting NAT IP on CLI. As you can see below, WAN interface not detecting IP. LAN interface is fine.
Does anybody know what I am missing here?
Thanks
You might want to compare your VirtualBox settings to what I use in my Vagrant project. Or just use mine rightaway ;)
https://github.com/punktDe/vagrant-opnsense
Probably you connected WAN to the host-only network and LAN to the NAT one. It needs to be other way round.
Thanks... but here I want to keep NAT as a WAN interface in firewall and internal network as LAN interface. How do I that?
NAT as WAN is correct. Is the DHCP server enabled in VirtualBox?
Yes, on host only network
But I haven't assigned host only adapter to firewall.
You need DHCP enabled on NAT, so WAN can pick up an address and gateway.
Or install Vagrant and just use my preconfigured box.
Okey.. there is no any functionality available to enable DHCP on NAT in VirtualBox. but If I assigned Bridged mode instead of NAT, still I am not getting IP on WAN interface.
Ps. I will check vagrant option