2 networks, 1 for wan, 1 for lan

I am setting up a pi4 as a home assistant. Due to the nature of my needs I had to use the raspbian manual install. All seams to be working fine. Till I break it that is :slight_smile:

I have the pi set up as a WiFi AP for the exclusive use of Home Assistant, but I want the web-app to be available on the LAN (eth0) so it can be connected to.

I see that there are some network setting is some of the files, just not sure which ones to edit.

Is there a Guide or Tutorial of some kind for this setup?

i think it would be easier for you to just use VLANs

there’s two interfaces in play, I don’t see how VLANs are relevant.

@rbees you want home assistant bound to all interfaces?

I only use the venv (manual) install. i think all that other stuff is unnecessary. but that’s just my 2c.
question why do you have/need/want 2 interfaces running on the pi? why isn’t eth0 enough?

I used a vanilla Raspbian install, and since I also use Caddy, the webpage is also served on both interfaces.

I did it by creating VLAN’s on the onboard NIC. eth0 became the untagged vlan, and eth0.100 became VLAN100. eth0.100 was my internal network. Eth0.100 was my IoT LAN with all my IoT gear on it.

I’ve not had any issues WRT to HA using both (from a sensor perspective). I don’t expose the HA webpage (8123) from the Pi at all, its behind a reverse proxy.

Thanks to all.

The pi4 has 2 interfaces that run on it regardless, unless one has been disabled. I don’t suppose there is any reason that the webpage (8123) can’t be exposed/served on both, so not a deal breaker.

On the other hand I do not want all the smart lights and switches connected to the WIFI that my computers and phones use. Since the pi has that capability I plan on using it, verses adding yet another plastic box router to my setup. It makes it simple to harden the HA Wifi without interfering with the normal operation of my Local Wifi, It seams like a “no brainer” to me.