Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

Map host port to bosh-lite port #434

@qibobo

Description

@qibobo

I install a bosh-lite on my physical machine and deployed cf-release on it. On the machine I can use
bosh target 192.168.50.4 lite
to set bosh target. However, I want to access the bosh director from another remote machine, so I tried to redirect to request to physical machine to the bosh-lite by iptables, but can not work.
Machine1 ip: 9.123.156.41, machine2 ip is: 9.123.156.42,
I add a rule by:
iptables -t nat -A PREROUTING -p tcp -d 9.123.156.41 --dport 25555 -j DNAT --to 192.168.50.4:25555
So I want to use bosh target 9.123.156.41:25555 to access bosh director on machine2, but can not work.

How to do it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions