Hi! New to OpenWRT and taking some time to understand the Zone firewall model, so correct me if I error as I go through this preamble to my question (it's mainly about single interface in multiple zones).
Say i create these zones:
lan: internal networks that can speak to each other.wan: the WAN interface(s) and networks.int: a "category" zone of devices that can accesswan.
And by default i believe there is always "any" zone, defined by the "General Settings", that catches any traffic not matching any of the previous zone or traffic rules. Note "ifwd" means intra-zone forward.
The zone table I created thus looks like this:
+---------------+------+------+------+
| fwd | in | out | ifwd |
+---------------+------+------+------+
| lan => None | ACPT | ACPT | ACPT |
+---------------+------+------+------+
| wan => None | DROP | ACPT | DROP |
+---------------+------+------+------+
| int => wan | DROP | DROP | DROP |
+---------------+------+------+------+
| any DROP | DROP | ACPT | N/A |
+---------------+------+------+------+
From what I can see, this works for me, and I can put an interface in both zones lan and int, to selectively allow them internal and external access.
From what I understand, if an interface in zone lan is sending traffic to wan, and lan does not have a forward to wan, the traffic doesn't immediately drop as the dashed box with DROP seems to indicate, but in fact it goes down the table to see if it can match another forwarding, which in here if the interface is also in zone int, it does, and the traffic is allowed to wan, but if it's not in int, then it matches to the general "any" rule and is dropped.
A precaution I've taken is to set these kinds of "category" zones at the *VERY BOTTOM with DROP (or REJECT) for all in/out/ifwd rules, so as to not accidentally allow access to/from/between networks/interfaces in there that shouldn't have it, and to let the earlier "logical" zones dictate that behavior.
Now my actual question: Is this configuration supported? I'm worried if it's not intended to be done this way and update would break the logic and expose my network or take it down somehow, or worse, silently work with unintended behavior.
And maybe a little weird question that's more for me to think about, if it is supported, is it a bad idea to do this and would I foresee problems with it?