Squid server and Load balancing..need help

Network Diagram.jpg
Dear All,

I am using squid as an external SQUID SERVER with MIKROTIK with 1 internet connection. But i am not able to do this same thing with TWO WANs.

When I use Nth LOAD BALANCING without the External Squid Cache, it works fine for me.

With only 1 modem, when I am redirecting http traffic to squid server through mangle and /route in mikrotik, it is working fine too! But i have not been able to do this for two modems with nth load balancing.

Is it possible to redirect traffic from miktroik with multiple WANs to Squid Server? If yes then how?
Network Diagram is attached.
Please help.

Regards,

Hello Sobi,

are u using Mikrotik in PC ? or Using Mikrotik Router-Board

You should be able to to do it by simply dst nat based on Dst address and port,

ie add a dst nat rule for each WAN connection,

ie, Publicip 1:80 dst nat to proxy server 8080
Publickip 2:80 dst nat to proxy server 8080
Contrack Should do the rest for you,

I hope this helps

I am using Mikrotik Router OS.

Actually i am redirecting packets to squid server by marking packets in mangle and adding a route in mikrotik for the marked packets to squid server.

Is there a way using my current setup?
Dont know much abt contrack either :s

Regards,