Im pretty new to Linux but have a good understanding of networks etc. Im using Centos 5.5 and IPTables. I just have a simple question and want to get the syntax right for my network.
Basically, I have a Centos Box with two interfaces. ETH0 is internal, ETH1 is external.
ETH1 (x.x.x.10) is connected to a switch that connects to 2 gateways. x.x.x.252 & x.x.x.253.
The default gateway on ETH1 is x.x.x.252.
Basically i want to have all http traffic automatically go out x.x.x.253 and everything else stay the same going out x.x.x.252.
Seems a simple NAT rule in practice, but I just can't get the syntax right in IPTables. I have no other rules defined in IPtables as the security FW's are on the level above.
Any help would be greatly appreciated. Thanks