I have one domain name with MX Record all pointing to a single public IP. However, I have different servers which all should use the same domain on different public IPs. Since all of the traffic to my domain comes on a single IP, I want to forward some of it (based on port) to the other IPs. My services include email server, SIP server, apache, etc. I am using Ubuntu 10 server edition on all machines.
I guess I will need to set up some kind of proxy/firewall to do this. I also think that I will need to keep the originating IPs of the clients which access those services, so the router will need to rewrite the IP addresses in both directions so that my clients all use the same IP and all is transparant to them.
What kind of setup can you recommend me for this thing? Do I need a proxy server/firewall like iptables or there is another way.
All best, Angel