From 945faf68871dfdb9f9521cdadcdecfef65634d4b Mon Sep 17 00:00:00 2001 From: Thore Bödecker Date: Thu, 25 Jun 2020 17:44:26 +0200 Subject: use verbose multiport syntax for better compat The dports/sports shortcut is only supported starting with ferm v2.5 which was released very recently. In order to support a wider range of distributions and ferm versions, this commits switches to the more verbose version of the multiport features. --- manifests/rule.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'manifests') diff --git a/manifests/rule.pp b/manifests/rule.pp index 458bef6..e44d04a 100644 --- a/manifests/rule.pp +++ b/manifests/rule.pp @@ -98,7 +98,7 @@ define ferm::rule ( # ferm supports implicit multiport using the "dports" shortcut if $dport =~ Array { $dports = join($dport, ' ') - $dport_real = "dports (${dports})" + $dport_real = "mod multiport destination-ports (${dports})" } elsif $dport =~ Integer { $dport_real = "dport ${dport}" } else { @@ -108,7 +108,7 @@ define ferm::rule ( # ferm supports implicit multiport using the "sports" shortcut if $sport =~ Array { $sports = join($sport, ' ') - $sport_real = "sports (${sports})" + $sport_real = "mod multiport source-ports (${sports})" } elsif $sport =~ Integer { $sport_real = "sport ${sport}" } else { -- cgit v1.2.3