Defined Type: iptables::listen::udp
- Defined in:
- manifests/listen/udp.pp
Overview
Expose UDP ports to a set of hosts
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'manifests/listen/udp.pp', line 70
define iptables::listen::udp (
Iptables::DestPort $dports,
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'] })
) {
$_protocol = 'udp'
iptables_rule { "udp_${name}":
first => $first,
absolute => $absolute,
order => $order,
apply_to => $apply_to,
content => template("${module_name}/allow_tcp_udp_services.erb")
}
}
|