-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing options to attach a firewall to the packer instance ? #157
Comments
We are open to merging a pull request for this :) |
Due to time constrains on the project I'm working on, I can't work on this right now. in the "os-setup.sh" (or shell provisioner), put these lines to allow ssh only:
Keep up the good work, |
As a workaround, you can configure a firewall with a label selector, and use this label in the packer configuration: source "hcloud" "example" {
server_name = "hcloud-example"
server_labels = {
firewall-ssh-only = "enabled"
}
} Then for the firewall label selector, you can use: |
I'll give it a try, thanks |
Closes #157 This allows to attach a list of firewalls using their names or the IDs.
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: