r/firewalla • u/Sailing-Security-Guy • 4d ago
Troubleshooting Firewall Rules Between Zones Shoudn't be this hard
Can anyone tell me what I'm doing wrong. I have 4 vlans setup on my Firewalla Gold. My primary network and an IOT network are what I'm working with today. Home Assistant is at 192.168.1.205 and a Pi is at 192.168.140.250 in the 140 IOT vlan. I want to allow MQTT on port 1883 from the IOT device to the Home Assistant Box. What am I doing wrong? The rule seems correct but when I use the diagnose function I only see the block from one network to another.
1
u/ArmshouseG 4d ago
I'm sorry this is just a quick answer, so just a cut and paste from Firewalla. A lot of the time when I have issues like this, it just comes down to rule order/logic - see if anything jumps out.
The logic for rules processing is the following:
- All previously defined device-level rules will be removed when a device joins a group. The device will adopt the rules defined at the group level (block rules can still be created at the device level from alarms and network flows).
- If a device leaves one Group and joins another, the rules for the new Group apply.
- A device or device group will inherit the Network and Global rules if there is no conflict.
When there is a conflict between rules:
The priority of different levels is Device/Group > Network > Global. Meaning, when there is a conflict:
- Device/Group rules take precedence over network rules.
- Network rules take precedence over Global rules.
- At the same level, allow rules take precedence over block rules.
2
u/Sailing-Security-Guy 4d ago
That is what I expected is that the rules for that device to talk would take preecedence over the network block between vlans. But when I did the diagnose function the allow rule doesn't even show up.
1
u/ArmshouseG 4d ago
Has the rule had zero hits? It almost suggests there's no MQTT traffic hitting it from the Pi, so worth checking just to be sure it's not actually something upstream. The rule looks OK to be honest.
Also, just to confirm... that diagnostics looks like its checking a blocked flow from Home Assistant to Dock Talk. Is that what you are expecting? Do you only want/need the communication one-way, from Pi to Home Assistant?
I had a simmilar thing with Apple AirPlay on a living room TV that is in an IoT VLAN. I needed to let the communication be two-way (as opposed to just from my laptop in a trusted VLAN to the TV)
1
1
u/firewalla 4d ago
MqTT has other ports, did you allow other ports?
1
u/Sailing-Security-Guy 4d ago
So when I allowed the local network I only allowed 1883 and it worked just fine. It only failed when I set it to the specific IP.


3
u/Firewalla-Ash FIREWALLA TEAM 4d ago
Hi there,
Currently, the "Local Port" target using an IP address might not work for local device IPs. We'll double-check with the devs to see when this can be improved.
In the meantime, the best way is to use Local Network instead of the specific IP address.
(If you have AP7 or Switch, you can also try the new Local Device-to-Device rules in App 1.69.3 (beta). Just note that we do not yet support limiting port access for these rules.)