OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: Shoog on December 25, 2024, 08:05:28 PM

Title: OPNsense not issuing IP to Homeassistant running on Odroid N2+
Post by: Shoog on December 25, 2024, 08:05:28 PM
Hi,
I have just been setting up OPNsense 24.1-amd64 on a Fujitsu S920 with a Broadcom dual NIC card.
Install went OK and I have so far managed to setup the WAN with VLAN tagging for the ISP. I software bridged the two NIC's on the broadcom card and applied the ACCEPT ALL firewall rules to the bridge. So far I have still to see any traffic into the internet, but thats an issue which I am sure is relatively easily resolved.

The main problem I have encountered so far is that my HomeAssistant instance which is running on a Odroid Hardkernel N2+ is simply not accepted by the OPNsense firewall. It recognises the that the N2+ is plugged, the NIC lights are correct and flashing so there is a connection. However the DHCP never issues an IP address. However if I set a static lease in the DHCPv4 service with the MAC address - it populates the MAC and fills out the N2+ identity - which proves that the firewall recognises the NIC at least. Checking all the logs I can find - there is no mention of the Odroid asking for an IP and no obvious signs of the firewall dropping packets. DHCP is definately working on the firewall - its as if the the Homeassistance instance is been blacklisted in some way with no traffic been allowed in or out of it. I tried pinging the static IP address which I set and nothing gets through. I even tried using a USB based NIC on the Homeassistance board to try to eliminate the onboard NIC as the source of the problem and the behaviour is the same. I also attempted to setup the Homeassistant integration within homeassistant instance - but not surprisingly with no path between it and OPNsense it wouldn't recognise the Router and so failed. I also attempted to connect the Homeassistant to the router by an intermediary Mikrotic switch but same result.


If I pull out the Odroid and present it back onto my ISP's router its recognised immediately and just starts working.

This is going to be a deal breaker for me as without the Homeassistant its not a functional setup for me. I have trawled the internet for answers and have come across a few instances where others experienced similar issues with Homeassistant and OPNsense and no one ever came up with a working solution. Any ideas and where to look to resolve this.

Stephen
Title: Re: OPNsense not issuing IP to Homeassistant running on Odroid N2+
Post by: Patrick M. Hausen on December 25, 2024, 09:22:53 PM
Did you set the two mandatory tunables as instructed in the documentation?
Title: Re: OPNsense not issuing IP to Homeassistant running on Odroid N2+
Post by: Shoog on December 25, 2024, 09:37:07 PM
Not to sound dumb but can you point me to the specific document. I set one mandatory tunable when bridging the two NIC's onto the LAN.

A snippet of information - the issue is not with the Odroid N2+ because I just plugged in another N2+ running Coreelec directly into the OPNsense router and it was detected immediately.

UPDATE:
Thanks for the heads up, I had missed the removing NICs from filters step and I have just gone and checked that. The good news is that this resolved my issue and Homeassistant is now on the network.
Title: Re: OPNsense not issuing IP to Homeassistant running on Odroid N2+
Post by: Patrick M. Hausen on December 25, 2024, 10:22:10 PM
https://docs.opnsense.org/manual/how-tos/lan_bridge.html

Step Six.