OPNsense Forum

English Forums => General Discussion => Topic started by: nirmal on July 13, 2024, 05:07:59 PM

Title: WAN interface not detecting IP
Post by: nirmal on July 13, 2024, 05:07:59 PM
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
Title: Re: WAN interface not detecting IP
Post by: Patrick M. Hausen on July 13, 2024, 05:12:32 PM
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.
Title: Re: WAN interface not detecting IP
Post by: nirmal on July 13, 2024, 05:35:21 PM
Thanks... but here I want to keep NAT as a WAN interface in firewall and internal network as LAN interface. How do I that?

Title: Re: WAN interface not detecting IP
Post by: Patrick M. Hausen on July 13, 2024, 05:37:14 PM
NAT as WAN is correct. Is the DHCP server enabled in VirtualBox?
Title: Re: WAN interface not detecting IP
Post by: nirmal on July 13, 2024, 05:40:50 PM
Yes, on host only network
Title: Re: WAN interface not detecting IP
Post by: nirmal on July 13, 2024, 05:41:43 PM
But I haven't assigned host only adapter to firewall.
Title: Re: WAN interface not detecting IP
Post by: Patrick M. Hausen on July 13, 2024, 05:44:29 PM
You need DHCP enabled on NAT, so WAN can pick up an address and gateway.

Or install Vagrant and just use my preconfigured box.
Title: Re: WAN interface not detecting IP
Post by: nirmal on July 13, 2024, 05:48:19 PM
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