I have got VirtualBox (Vagrant actually) with CentOs. I have got port forwarding there (NAT). For example, I have got some application in my box bound to port 8080. Port is forwarded. So I can connect to this port from my host and guest machine.

telnet 8080

But I can't execute anything from my host machine:

telnet 8080
Connected to
Escape character is '^]'.

But it works from my vagrant ssh session.

How to fix it?


Ok, it was firewall problem.

service iptables stop
chkconfig iptables off
  • Glad you were able to resolve this issue. Please be sure to mark your answer as "accepted" when you are able. – jscott Jul 16 '12 at 12:58

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.