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?