Resource Type: firewall_rule
- Defined in:
- lib/puppet/type/firewall_rule.rb
- Providers:
-
v1
Overview
Type representing a ProfitBricks firewall rule.
Properties
-
datacenter_id
The ID of the virtual data center where the NIC will reside.
-
datacenter_name
The name of the virtual data center where the NIC will reside.
-
ensure
(defaults to: present)
The basic property that the resource should be in.
Supported values:- present
- absent
-
icmp_code
Defines the allowed code (from 0 to 254) if protocol ICMP is chosen.
-
icmp_type
Defines the allowed type (from 0 to 254) if the protocol ICMP is chosen.
-
nic
The name of the NIC the firewall rule will be added to.
-
port_range_end
Defines the end range of the allowed port (from 1 to 65534) if the protocol TCP or UDP is chosen.
-
port_range_start
Defines the start range of the allowed port (from 1 to 65534) if protocol TCP or UDP is chosen.
-
protocol
The protocol for the firewall rule.
Supported values:- TCP
- UDP
- ICMP
- ANY
-
server_id
The server ID the NIC will be attached to.
-
server_name
The server name the NIC will be attached to.
-
source_ip
Only traffic originating from the respective IPv4 address is allowed.
-
source_mac
Only traffic originating from the respective MAC address is allowed. Valid format: aa:bb:cc:dd:ee:ff.
-
target_ip
In case the target NIC has multiple IP addresses, only traffic directed to the respective IP address of the NIC is allowed.
Parameters
-
name (namevar)
The name of the firewall rule.
-
provider
The specific backend to use for this ‘firewall_rule` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.