Page 1 of 1

Proxy and routing

Posted: Thu Mar 23, 2006 2:13 am
by maxfava
I have the following issue,
I'm using the mangle+prerounting to route http request to one getawat and rest of packet to default getaway
Now I wnat to set my web proxy but with dst nat I redirect all TCP to the proxy 8080 but after the proxy request are route to default getaway instead of desidered one.

Could you help me?

Posted: Thu Mar 23, 2006 9:13 am
by mag
i'am doing similar things, but do not understand your question, sorry.
packets can not be splitted.

Posted: Fri Mar 24, 2006 4:29 pm
by maxfava
I have 2 WAN.
WAN-A is the default gateway
WAN-B is for HTTP traffic

It works using Mangle e routing packets policy.

I want use the WEB proxy to reduce WAN traffic.
But Following the procedure of the manual the destination nat is before the mangle firewall operation. In this way the HTTP traffic is addressed to the WAN-A instead of WAN-B ignoring the routing policy.

Is there a solution?

Posted: Fri Mar 31, 2006 7:14 am
by Freman
One option is to set up your gateways in reverse.

Set up your "http" gateway as your default gateway, then set source routing up to use the non-default gatway...

I know it sounds backwards, but it worked for me

Posted: Fri Mar 31, 2006 10:00 am
by maxfava
Yes it is a possibility, but I need to create the other mangle rules for the remaining infinite protocols.