Solved

Squid Load Balancing between two Internet Links

Posted on 2010-09-17
8
1,248 Views
Last Modified: 2013-12-06
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?

0
Comment
Question by:williamwlk
  • 4
  • 3
8 Comments
 
LVL 6

Expert Comment

by:Jelcin
ID: 33704241
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
 

Author Comment

by:williamwlk
ID: 33704296
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
 
LVL 6

Accepted Solution

by:
Jelcin earned 250 total points
ID: 33704310
maybe this could solve your problem?

http://lartc.org/howto/lartc.rpdb.multiple-links.html
0
 

Author Comment

by:williamwlk
ID: 33704439
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
Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

 
LVL 6

Expert Comment

by:Jelcin
ID: 33704630
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
 

Author Comment

by:williamwlk
ID: 33704694
ok :)
0
 
LVL 25

Assisted Solution

by:madunix
madunix earned 250 total points
ID: 33707598
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
 

Author Closing Comment

by:williamwlk
ID: 33817474
We discussed about it.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now