OpenVZ Forum

Home » General » Support » SSH/Apache on Virtual machines
SSH/Apache on Virtual machines [message #25416] Mon, 24 December 2007 08:26 Go to previous message
Thomasd is currently offline  Thomasd
Messages: 39
Registered: December 2007
I am trying to get a set of VMs to run SSH / Apache

I have VM 2010 at ip, it runs SSH & Apache on ports 22 and 80 respectively.

with the following:
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 2010 -j DNAT --to
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 2011 -j DNAT --to

I get this:
Chain PREROUTING (policy ACCEPT 72 packets, 9800 bytes)
 pkts bytes target     prot opt in     out     source               destination
    1    52 DNAT       tcp  --  *      *             tcp dpt:2010 to:
   24  1216 DNAT       tcp  --  *      *             tcp dpt:2011 to:

Now, for some reason the connection doesn't go through with Apache, but works perfect with SSH.
Apache is running, but I can't even connect from the main node:

#telnet 80
telnet: connect to address Connection refused
telnet: Unable to connect to remote host: Connection refused

What should I look at?

[Updated on: Mon, 24 December 2007 08:26]

Report message to a moderator

Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Can not suspend VE with nfs mounts - even with bind mounts to HN
Next Topic: *SOLVED* Xvfb could not open default font 'fixed'
Goto Forum:

Current Time: Wed Feb 28 10:34:59 GMT 2024

Total time taken to generate the page: 0.02340 seconds