Defined Type: iptables::listen::icmp
- Defined in:
- manifests/listen/icmp.pp
Overview
This provides a simple way to allow ICMP ports into the system.
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'manifests/listen/icmp.pp', line 73
define iptables::listen::icmp (
Variant[Array[String],String] $icmp_types,
Boolean $first = false,
Boolean $absolute = false,
Integer[0] $order = 11,
Enum['ipv4','ipv6','all','auto'] $apply_to = 'auto',
Simplib::Netlist $trusted_nets = simplib::lookup('simp_options::trusted_nets', { 'default_value' => ['127.0.0.1'] })
) {
iptables_rule { "icmp_${name}":
first => $first,
absolute => $absolute,
order => $order,
apply_to => $apply_to,
content => template("${module_name}/allow_icmp_services.erb")
}
}
|