ruleset: reuse zone-jump.uc template for notrack and helper chain jumps
authorJo-Philipp Wich <jo@mein.io>
Tue, 14 Jun 2022 12:59:58 +0000 (14:59 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 14 Jun 2022 14:27:26 +0000 (16:27 +0200)
commite1cb763b65262eef5958d19fe922380aa1e96570
treec815d1295261de5170b7c00b214a678cc2ec01bd
parenta063317d96c6c85e4c909eab017ef2813f93ff05
ruleset: reuse zone-jump.uc template for notrack and helper chain jumps

Avoid some code-duplication by reusing the zone-jump.uc partial template
to emit the helper_* chain jump rules.

Also add some test coverage for notrack rules.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/firewall4/templates/ruleset.uc
root/usr/share/firewall4/templates/zone-jump.uc
tests/01_configuration/01_ruleset
tests/02_zones/01_policies
tests/02_zones/04_wildcard_devices
tests/02_zones/05_subnet_mask_matches
tests/02_zones/07_helpers
tests/03_rules/05_mangle
tests/03_rules/10_notrack [new file with mode: 0644]