diff options
| author | Jo-Philipp Wich | 2022-04-21 19:21:02 +0000 |
|---|---|---|
| committer | Jo-Philipp Wich | 2022-04-21 19:21:02 +0000 |
| commit | fc83d462621476be3b2861a93ac3a641e3f717c8 (patch) | |
| tree | 54400a57d8dbc7dc251e64b8e7028da4ab24990b | |
| parent | 9bce87374e7ecee5ab29bb210df6691f1b701229 (diff) | |
| download | firewall4-fc83d462621476be3b2861a93ac3a641e3f717c8.tar.gz | |
ruleset: set auto-merge directive for interval sets
Set the auto-merge directive for interval sets to automatically merge
overlapping CIDRs such as 192.168.1.0/24, 192.168.1.1. Without that
directive, nft will fail to apply the rendered ruleset with an error.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
| -rw-r--r-- | root/usr/share/firewall4/templates/ruleset.uc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/root/usr/share/firewall4/templates/ruleset.uc b/root/usr/share/firewall4/templates/ruleset.uc index b402315..9cf7ef6 100644 --- a/root/usr/share/firewall4/templates/ruleset.uc +++ b/root/usr/share/firewall4/templates/ruleset.uc @@ -36,6 +36,7 @@ table inet fw4 { {% endif %} {% if (set.interval): %} flags interval + auto-merge {% endif %} {% fw4.print_setentries(set) %} } |