Multiple Publc IPs
Posted on 2009-04-09
My server is having two interfaces eth0 and eth0:1 having different public IPs.
I have two websites under different virtual hosts on different ports 80 and 8080
Both the websites are designed to download contents from different servers which are firewalled . We cannot just use any IP to fetch data because we need to log the requests for each IP and we also do not want this to mix.
I want that when sites on port 80 fetches data, it gives the public IP A to the other server and site on port 8080 gives public IP B
In my mind iptables NAT is coming but I am not sure what to really use and also I am not clear what options to use.