I have got a VMware Server 2 on a CentOS 5.6 host. I can access my virtual machines from the host machine, but I can not access it from other machines.
I have configured NAT port forwarding. But somehow I have no access to the VM using ssh
. I have checked all firewall settings and they seem right.
What can cause this problem?
Best Answer
If you are able to
ssh
into host from remote, than you need to check the firewall on host, ifssh
ports (22) are forwarded to vm.There is a similar question here.
There, it is the ufw firewall, which needs to have a rule like
to allow connection to host on port 2222 and forward tcp to vm guest at ip 192.168.130.128:22
And this User mentioned, that
ufw
is a frontend toiptables
, so go to your frontend or edit your iptables in that kind.The missing part
Short version You told
iptables
to add aPREROUTING
rule to yournat table
. The missing part is:This is the connection into the target machine:
And these are the filter from
host interface
to yourguest interface
and vice versa.