I'd like to forward requests from to a guest OS in VirtualBox VM (CentOS 7) - Is that possible?

If I forward everything works fine, but as soon as I forward things stop working. Is there a way to use ports <1024 for NAT port forwarding configuration?

My host OS is Mac OS X.

  • 1
    Maybe related that on many systems only root can do port bindings with port <1024. Not sure if related in this case. – frlan Sep 3 '14 at 13:47
  • Yeah probably. But id like to know if there is a way to achieve this. – markovuksanovic Sep 3 '14 at 13:49
  • Related question on StackOverflow. I personally like the idea of using iptables if you have access to that, otherwise using nginx or apache to proxy the requests is a viable option as well. – heavyd Sep 3 '14 at 14:14

Port 80 will already be used by the native OS/x so you'll need to ensure this is disabled (Web sharing in control panel if memory serves). Then you'll probably need to do something along the lines of enabling access to this port in the firewall configuration.

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.