You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I don't see a way to attach an Hetzner firewall to the packer instance.
Use Case(s)
I'm building a packer instance on Hetzner that has NFS, this has rcp portmapper opened to the world and I'm receiving alerts from the cloud provider. I should be able to attach an Hetzner firewall to the packer instance like it is already done for all the other VMs I have
Potential configuration
something like firewall_id = number in source "hcloud" ?
Potential References
Thank you
The text was updated successfully, but these errors were encountered:
Due to time constrains on the project I'm working on, I can't work on this right now.
I can share the workaround for an ubuntu 22.04:
in the "os-setup.sh" (or shell provisioner), put these lines to allow ssh only:
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install iptables -y
iptables -A INPUT -p tcp --dport 22 -m state --state NEW -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -P INPUT DROP
Description
Hello, I don't see a way to attach an Hetzner firewall to the packer instance.
Use Case(s)
I'm building a packer instance on Hetzner that has NFS, this has rcp portmapper opened to the world and I'm receiving alerts from the cloud provider. I should be able to attach an Hetzner firewall to the packer instance like it is already done for all the other VMs I have
Potential configuration
something like
firewall_id = number
insource "hcloud"
?Potential References
Thank you
The text was updated successfully, but these errors were encountered: