Resource Type: ufw_rule
- Defined in:
- lib/puppet/type/ufw_rule.rb
Summary
a ufw_rule type controls regular rulesOverview
ufw_rule { ‘allow ssh from internal networks’:
ensure => 'present',
action => 'allow',
direction => 'in',
interface => undef,
log => undef,
from_addr => '10.1.3.0/24',
from_ports_app => 'any',
to_addr => '10.3.0.1',
to_ports_app => 22,
proto => 'tcp',
}
This type provides Puppet with the capabilities to manage regular ufw rules.
Important: The default action is ‘reject`, so traffic would be rejected if `action` parameter is omitted.
Autorequires:
-
‘Class`