ruleset: consolidate zone matches for raw_prerouting and raw_output chains
authorJo-Philipp Wich <jo@mein.io>
Wed, 26 Jan 2022 22:09:01 +0000 (23:09 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 26 Jan 2022 22:09:01 +0000 (23:09 +0100)
commitf85bb2d21d04c4579509988ff47c270dc30e68e2
tree7291bfefaf4d7fa247b32164363119ce38d26554
parent8c8a86728b2d39ae629e9feb7003182823b89c40
ruleset: consolidate zone matches for raw_prerouting and raw_output chains

Instead of duplicating the zone match rule expressions, reuse the
`zone-match.uc` template emit the correct match expressions.

This simplifies the code somewhat and ensures that wildcard interfaces
are also properly handled for notrack/helper rules.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/firewall4/templates/ruleset.uc
root/usr/share/ucode/fw4.uc
tests/02_zones/04_wildcard_devices