From c8f0e0424490cb5d06785266ac9b4214200a7070 Mon Sep 17 00:00:00 2001 From: Kilian Engelhardt Date: Wed, 3 Feb 2021 21:32:57 +0100 Subject: add 'Integer' to 'Ferm::Protocols' to allow numberic values > 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/protocols.pp b/types/protocols.pp index cdd76b2..1c11159 100644 --- a/types/protocols.pp +++ b/types/protocols.pp @@ -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']], ] -- cgit v1.2.3