Hi, I’ve set up a vlan for my home-assistant server (raspberry pi). Before setting up vlan, port 8123 was perfectly accessible.
To be able to connect to hass I’ve added on my router
iptables -A FORWARD -i br0 -o br2 -d 172.16.0.5 -s 192.168.1.0/24 -j ACCEPT
Using this I can access the regular ports, like 80 and 22.
But I can’t reach 8123.
I’ve opened the port 8123 on hass-server
iptables -I INPUT -p tcp --dport 8123 -j ACCEPT
I’ve also tried to forward speciffically to port 23, and placed the rule on the top in the chain using
iptables -I FORWARD -i br0 -o br2 -d 172.16.0.5 -s 192.168.1.0/24 -p tcp --dport 8123 -j ACCEPT
No luck no matter what. I still have access to the regular ports on hass as I said, 22, 80 etc. So it’s just a matter of me not reaching the frontend.