Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 6 down vote accepted

Ok, it was firewall problem.

service iptables stop
chkconfig iptables off
share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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