]> gitweb.fluxo.info Git - puppet-ferm.git/commitdiff
add 'Integer' to 'Ferm::Protocols' to allow numberic values
authorKilian Engelhardt <kilian.engelhardt@godaddy.com>
Wed, 3 Feb 2021 20:32:57 +0000 (21:32 +0100)
committerKilian Engelhardt <kilian.engelhardt@godaddy.com>
Tue, 16 Feb 2021 12:11:59 +0000 (13:11 +0100)
> The specified protocol can be one of tcp, udp, udplite, icmp, icmpv6,esp,
> ah, sctp, mh or the special keyword "all", or it can be a numeric value,
> representing one of these protocols or a different one.
source: https://ipset.netfilter.org/iptables.man.html

Also see [0] for Assigned Internet Protocol Numbers.

--
[0] https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml

types/protocols.pp

index cdd76b2561dacc6e209c7f9d646f2a99e14bb820..1c1115961890e925dbc3daf44e652b5841ba8cbf 100644 (file)
@@ -1,5 +1,7 @@
 # @summary a list of allowed protocolls to match
 type Ferm::Protocols = Variant[
+  Integer[0, 255],
+  Array[Integer[0, 255]],
   Enum['icmp', 'tcp', 'udp', 'udplite', 'icmpv6', 'esp', 'ah', 'sctp', 'mh', 'all'],
   Array[Enum['icmp', 'tcp', 'udp', 'udplite', 'icmpv6', 'esp', 'ah', 'sctp', 'mh', 'all']],
 ]