Clusterized Web Server [message #33184] |
Fri, 26 September 2008 20:25 |
|
silentninja
Messages: 37 Registered: September 2007
|
Member |
|
|
I want to do a clusterized web server that works this way:
Main Server VE-0 => External IP
VE-1 => Internal IP
VE-2 => Internal IP
VE-3 => Internal IP
VE-1 has only apache / ftp access
VE-2 has all the mail access (pop3/imap/smtp)
VE-3 has all the mysql / pgsql databases
What i need to do is that internally they can coexist (eg, the VE-1 can connect to VE-2 for a php mail send) but NOT externally (VE-1 has no outband connection).
The Main Server (VE-0) will accept all connections to the 80 / 110 / 3306 ports (eg, they'll be some others) and internally will redirect them to the VE-1, VE-2, and VE-3 respectivelly.
This way the user can only access the server with one IP and he doesn't need to know that it's been redirected elsewhere. Also it would help if later I need to grow and put multiple computers instead of multiple virtualized ones.
Is this possible without some hardcoding of vzs / iptables, and just some configuration ?
[Updated on: Fri, 26 September 2008 20:26] Report message to a moderator
|
|
|
|
|