From: Aleksander <aleksander@krediidiinfo.ee>
To: lartc@vger.kernel.org
Subject: [LARTC] Several IP's, one mail and http server
Date: Mon, 02 Jan 2006 14:40:54 +0000 [thread overview]
Message-ID: <43B93B76.7000702@krediidiinfo.ee> (raw)
Hi,
I want to have several IP's for my connection and each IP will have it's
own hostname.
Now I want to serve a web server and mail server for each
hostname/IP_addr pair on the same box in the internal LAN using one
apache and one postfix daemon.
If I do one SNAT and several DNATs then only the hostname which I SNAT
the server to would work.
Is the only way to do it correctly by assigning the internal server
several IP's (virtual interfaces) and then make SNAT and DNATs for each
interface/IP_addr individually?
ATM I've got one IP and several hostnames. Using DNAT and apache's name
based virtual hosts things work. Planning on getting each hostname it's
own IP address, but continue to use the same http server for all the
hosts, at least for now.
Configuring the mail server might be even trickier, don't know if
Postfix supports listening on different interfaces and have a different
hostname for each interface/IP. I know it's OK if Postfix tells SMTP
clients that its hostname is A, although the clients connected to
hostname B, but it's still ugly.
The gateway and server are linuxes (correct spelling?) of course. And
the gateway stays, the server has to stay in the LAN. So would the
virtual interface solution work and is it the only one?
Thanks in advance,
Alex
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
next reply other threads:[~2006-01-02 14:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-02 14:40 Aleksander [this message]
2006-01-02 14:44 ` [LARTC] Several IP's, one mail and http server Edmundo Carmona
2006-01-02 15:18 ` Aleksander
2006-01-02 15:29 ` Edmundo Carmona
2006-01-02 15:42 ` Aleksander
2006-01-02 15:47 ` Edmundo Carmona
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43B93B76.7000702@krediidiinfo.ee \
--to=aleksander@krediidiinfo.ee \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.