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
Member
I am trying to get a set of VMs to run SSH / Apache

I have VM 2010 at ip 10.0.20.10, 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 10.0.20.10:22
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 2011 -j DNAT --to 10.0.20.10:80


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



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 10.0.20.10 80
Trying 10.0.20.10...
telnet: connect to address 10.0.20.10: 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: Tue Nov 05 17:12:10 GMT 2024

Total time taken to generate the page: 0.03598 seconds