[CentOS] Forward http traffic

Wed Jan 8 18:40:35 UTC 2014
Steve Clark <sclark at netwolves.com>

On 01/08/2014 11:32 AM, Darr247 wrote:
> On 2014-01-08 8:02 AM, Nikolaos Milas wrote:
>> Actually, I don't want load balancing; I want incoming http traffic
>> (to port 8080) to be forwarded to *ALL* defined target IP addresses.
> Sometimes the correct answer is, "you can't do that."  :)
>
> You can talk TO port 80 on all the defined target IP addresses, but not
> FROM port 8080 on a single IP address.
Please explain how you do that with iptables.
Thanks.
>
> You could define a different outside port to forward to port 80 on each
> internal IP address, though.
> e.g.
> forward 8081 to 80 on machine1
> forward 8082 to 80 on machine2
> forward 8083 to 80 on machine3
> forward 8084 to 80 on machine4
> forward 8085 to 80 on machine5
> et cetera
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>


-- 
Stephen Clark
*NetWolves*
Director of Technology
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.clark at netwolves.com
http://www.netwolves.com