NAME
WWW::Hetzner::Cloud::Firewall - Hetzner Cloud Firewall object
VERSION
version 0.001
SYNOPSIS
my $fw = $cloud->firewalls->get($id);
# Read attributes
print $fw->name, "\n";
# Set rules
$fw->set_rules(
{ direction => 'in', protocol => 'tcp', port => '22', source_ips => ['0.0.0.0/0'] },
{ direction => 'in', protocol => 'tcp', port => '443', source_ips => ['0.0.0.0/0'] },
);
# Apply to server
$fw->apply_to_resources({ type => 'server', server => { id => 123 } });
# Update name
$fw->name('new-name');
$fw->update;
# Delete
$fw->delete;
NAME
WWW::Hetzner::Cloud::Firewall - Hetzner Cloud Firewall object
ATTRIBUTES
id, name, rules, applied_to, labels, created
Standard firewall attributes.
METHODS
set_rules(@rules)
Set firewall rules.
apply_to_resources(@resources)
Apply firewall to resources.
remove_from_resources(@resources)
Remove firewall from resources.
update
Saves changes to name and labels.
delete
Deletes the firewall.
SUPPORT
Source Code
The code is open to the world, and available for you to hack on. Please feel free to browse it and play with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull from your repository :)
https://github.com/Getty/p5-www-hetzner
git clone https://github.com/Getty/p5-www-hetzner.git
AUTHOR
Torsten Raudssus <torsten@raudssus.de>
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.