class

Configuration::Models::NetworkingConfig::FirewallRule

Inherits YAML::Serializable::Unmapped < YAML::Serializable < Reference < Object

Constructors

new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

description

Optional human-readable description for the rule (used in Hetzner firewall description field)

Source
destination_ips

CIDR ranges allowed for outgoing traffic when direction is "out"

Source
direction

Direction of traffic: "in" or "out". Both directions are supported by Hetzner Cloud firewalls.

Source
effective_description

Provides a default description if the user omits one.

Source
port

A single port ("80"), a range ("30000-32767"), or "any" for all ports (Hetzner API syntax)

Source
protocol

Supported protocols: tcp, udp, icmp, esp, gre – defaults to tcp for backwards compatibility / convenience

Source
source_ips

CIDR ranges allowed for incoming traffic when direction is "in"

Source