In article <(E-Mail Removed) >,
Davide Bianchi <(E-Mail Removed)> wrote:
:On 2006-05-01, TravisT <(E-Mail Removed)> wrote:
:> I want to route all outbound HTTP traffic on 8080 and HTTPS 8443 to
:> 192.168.15.113 gateway (load balancer) and all other traffic to
:> 192.168.15.1.
:
:Outbound? So, traffic that came from your machine, towards external
:IPs?
:

very quickly and without too much checking):
:
:iptables -a PREROUTING -o <yourexternalinterfacehere> --dport 8080 \
: --to 192.168.15.113
:iptables -a PREROUTING -o <yourexternalinterfacehere> --dport 8443 \
: --to 192.168.15.1
Ummm, no. Unless I completely misunderstand his intent, the OP doesn't
want to change the destination address, just the outgoing gateway.
That's a job for Policy Routing, not iptables. See the manpage for the
"ip" command. You're probably going to need help that I don't have
enough knowledge to give. A Google search for
linux "policy routing"
yields a lot leads. Here's one that looks promising:
http://www.linux.com/howtos/Adv-Rout...rtc.rpdb.shtml
--
Bob Nichols AT comcast.net I am "RNichols42"