Squid Load Balancing between two Internet Links

Hi,
                       |--------------ADSL2
Internet --------                   Squid Proxy --------- LAN
                       |--------------ADSL1

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?

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

http://lartc.org/howto/lartc.rpdb.multiple-links.html
0
 
JelcinCommented:
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.
0
 
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.

W
0
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:
http://doc.pfsense.org/index.php/Multi_WAN_/_Load_Balancing

Yeah we have pfsense too.

but can caching be done in that fashion in squid?


0
 
JelcinCommented:
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.
0
 
williamwlkAuthor Commented:
ok :)
0
 
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.
0
 
williamwlkAuthor Commented:
We discussed about it.
0
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.