I have this configuration:

ss of image source: https://www.lucidchart.com/publicSegments/view/5256a1e5-afb0-4c7a-96fa-35750a00527d/image.png

Basically, I have to reach a service which is running on the virtual machine with IP address from a remote machine; this service is reachable on the port 80 and is working via a browser. However, I can't modify any firewall configuration on the hypervisor (the physical machine I can reach with its public IP).

  • That sound like hypervisor misconfiguration: it should forward traffic for to the target machine. – peterph Oct 10 '13 at 13:53

You need to forward the port by a user space program.

I can recommend you socat, e.g.

socat TCP4-LISTEN:80,fork,reuseaddr TCP4:

It seems that you do not have root rights on the hypervisor. In this case you need to choose a port above 1023 for listening on the hypervisor.

See following question for more options (like redir): https://serverfault.com/questions/252150/port-forwarding-on-linux-without-iptables

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.