Skip to content

Firewall / http_bind_address forwarding forwarding #337

Description

@egandro

I have a question about the web server that is built in into Packer.

The http_bind_address (and friends) can be used for accessing files from proxmox to the build machine e.g. http://{{ .HTTPIP }}:{{ .HTTPPort }}.

In case you are using promox in a datacenter. the build machine might not be available.

My current workaround is:

# forward 127.0.0.1:8000 to the remote proxmox to 127.0.0.1:8000
ssh -N -R 127.0.0.1:8000:127.0.0.1:8000 root@proxmox

And set

http_bind_address = 127.0.0.1
http_port_min = 8000
http_port_max  = 8000

This works - however - this now requires ssh to be available. Which might be also not the case.

Question:

  • Is there any workaround for this?
  • Can we add some http_forward_from_build_host = true flag to this plugin?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions