WAN interface not detecting IP

Started by nirmal, July 13, 2024, 05:07:59 PM

Previous topic - Next topic
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

July 13, 2024, 05:12:32 PM #1 Last Edit: July 13, 2024, 05:15:29 PM by Patrick M. Hausen
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.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

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?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)


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.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

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