class Configuration::Models::NetworkingConfig::FirewallRule

Included Modules

Defined in:

configuration/models/networking_config/firewall_rule.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new #

[View source]

Instance Method Detail

def description : String | Nil #

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


[View source]
def destination_ips : Array(String) #

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


[View source]
def direction : String #

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


[View source]
def effective_description : String #

Provides a default description if the user omits one.


[View source]
def port : String #

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


[View source]
def protocol : String #

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


[View source]
def source_ips : Array(String) #

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


[View source]