Hi everyone:
I need some advice/suggestions for a problem that I am having. I have been searching and posting all over the place, but have not yet found the solution.
Here is my setup;
server 1; apache webserver with Qmail to handle POP3 and SMTP with IP address of 192.X.X.1/24
server 2; apache webserver with Qmail to handle POP3 and SMTP with IP address of 192.X.X.2/24
server 3; apache webserver with Qmail to handle POP3 and SMTP with IP address of 192.X.X.3/24
All of these machines are built as guest on VirtualBox 3.1 using CentOS 5.4 and have properly registered domain names. These server workl properly when run one at a time.
What I need to do is build a gateway/router to direct the traffic from the outside to the correct host, i.e. request for
www.server1.com go to server1. I have been able to get this to work with NAT and iptables and doing a port redirecting, server1 using port 81 for http, server2 using port 82 etc. My problem is that for my POP3 and SMTP, I would have to redirect to many ports.
What I would like to do is have one machine to act as a gateway to redirect all traffic to the proper machines.
If anyone has any suggestions how to do this, please let me know.
Thanks
zog