From: Cathy Sarisky (cathy_at_acornhosting.net)
Date: Tue 05 Nov 2002 - 21:29:16 GMT
My root server runs a webserver (AOLserver) configured to listen to the public IP, a mail server (postfix) configured to listen to 127.0.0.1 (look at main.cf, I don't remember the parameter) and sshd, listening to the public IP (look at sshd_config for ListenAddress. Uncomment and change from 0.0.0.0.)
That was all it took. A netstat -antu reveals if you've missed something.
My root server has a typical /etc/hosts file (nothing special), my vservers have two lines:
127.0.0.1 localhost localhost.localdomain servername.tld
64.xx.xx.xx localhost localhost.localdomain servername.tld
(64.xx.xx.xx is the IP assigned to the vserver)
That seems to work. I took out the 127.0.0.1 line entirely at one point, but that caused some problems. Defining localhost twice sounds weird but seems to work fine. Comments on why would be welcome. :)
Cathy Sarisky
cathy_at_acornhosting.net
---------- Original Message ----------------------------------
From: Gerrit Hoetzel <gt_at_hzhome.mine.nu>
Reply-to: vserver_at_solucorp.qc.ca
Date: Tue, 5 Nov 2002 19:39:48 +0000
>
>
>On Mon, Nov 04, 2002 at 03:49:12PM -0800
>Cathy Sarisky <cathy_at_acornhosting.net> wrote:
>
>> You typically do NOT run services listening to 0.0.0.0 in the main server,
>
>So you really run all your services in your main server chbind' or at
>least bound to the IP of ethX ?
>
>Do you have replaced 127.0.0.1 with your ethX-IP in /etc/hosts like this:
> 192.168.1.1 mypc.mydomain.com localhost
>
>--
>Gerrit Hoetzel
>http://www.hzhome.mine.nu
>
________________________________________________________________
Sent via the WebMail system at webmail.pioneernet.net