Exclude sub-zone hosts from wildcard parent interfaces #39
Reference in New Issue
Block a user
Delete Branch "benvin/wildcard-subzone-exclusion"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A parent zone on a wildcard interface (
net enp+) only excluded sub-zone hosts on an exactly matching interface, so lan hosts on enp2s0 were treated as net:lxd net ACCEPTaccepted lxd→lan traffic and lan sources hitnet all DROPinstead of lan's policy. Hosts on wildcard-matched interfaces were also rejected by validation.allto concrete zones, so nothing matches it and it hits the chain default. Input/forward default drop (net rules/policies silently stop applying), but the output chain default is ACCEPT, sofw net DROP/REJECTis bypassed for fw → 192.0.2.5 via enp3s0 (reproduced:oif=enp ip4 !daddr=192.0.2.0/24is the only fw→net match). The PR body "stricter" is wrong for output → scope the exclusion to the sub-zone host own interface (iif=enp2s0 saddrbefore the parent, parent unexcluded elsewhere), or emit a parent fallback match for the excluded addrs on ifaces other than h.Interface.No findings.