> 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
# @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']],
]