Squid Load Balancing between two Internet Links

Internet --------                   Squid Proxy --------- LAN

I have a multihomed server 2 Network Interface for ADSL1 and ADSL2. And the other one for LAN.

Squid is implemented on the server.

How can Squid load balance between ADSL1 and ADSL2 for LAN?

Who is Participating?
JelcinConnect With a Mentor Commented:
maybe this could solve your problem?

Hi Squid is no load balancer it's a caching Proxy. You can not load balance DSL lines. But you could load balance WEB servers with for example Round Robin Scheduling.
williamwlkAuthor Commented:
Yes, I know.
The scenario is if client A connects, it uses ADSL1 Internet. if client B connects, it uses ADSL2 Internet.

If I have cache_peer, i'd have used it :

cache_peer proxy1.server.com sibling 3128
 cache_peer proxy2.server.com sibling 3128
 cache_peer proxy3.server.com sibling 3128

But, I don't have cache_peer and caching the Internet directly. So, I wonder how.

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

williamwlkAuthor Commented:

Yeah we have pfsense too.

but can caching be done in that fashion in squid?

Afaik there is no option in squid to choose between two links and act as a standalone load balancer for it.
What should be possible is a scenario where squid caches requests from both of the lines. But you have to setup the ip route thingie.
williamwlkAuthor Commented:
ok :)
madunixConnect With a Mentor Commented:
as said above squid cant do load balancing of two gateways. Its a just only proxy server.  
i would say pfsense is the best option.
williamwlkAuthor Commented:
We discussed about it.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.