LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-28-2008, 09:31 PM   #1
please
Member
 
Registered: Apr 2007
Posts: 195

Rep: Reputation: 30
Squid Proxy Server


Hi All

How can I put configuration with parent proxy servers?
I have 2 ISP. One has proxy address other one has not proxy address(I can use with no proxy from client browser).

How can I do for these 2 ISP?

Thanks
 
Old 12-29-2008, 01:12 AM   #2
BugZRevengE
Member
 
Registered: Oct 2005
Location: Australia
Distribution: Slackware & Kubuntu & CentOS
Posts: 106

Rep: Reputation: 17
I have not played with squid for some time, but I used to do heaps with it...
From your message, I understand that you want to use 2 ISP at the same time via squid.

The best way, is to add a route to the linux system for the ISP with a proxy, so it knows the route to the proxy server, but use the no-proxy ISP as your default gateway.
Add rules so that certain domains go via the parent proxy, and others go direct (using the no-proxy isp, because that is the default gateway). This, i believe is part of the parent rule, and is documented.
From when I was dealing with squid on a regular basis, there was no way of configuring direct and parent proxy load ballancing other then via top level or sub-level domains....
A good mix is to put .com via the parent proxy, and others direct, and mixing more into the mix as required.

Hope this helps
 
Old 12-29-2008, 05:29 AM   #3
pnorten462
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Rep: Reputation: 0
Thumbs up RE : Squid Proxy Server

I don't understand this can you give me explanation for this? i have one resource you can check it.if this is useful.
 
Old 12-29-2008, 04:13 PM   #4
BugZRevengE
Member
 
Registered: Oct 2005
Location: Australia
Distribution: Slackware & Kubuntu & CentOS
Posts: 106

Rep: Reputation: 17
Hopefully you understand the routing part, but it is basically:
route add 10.1.1.30 gw 192.168.1.1
route add default gw 192.168.1.2
where 10.1.1.30 is the ip of the proxy server, 192.168.1.1 is the router to the proxy isp and 192.168.1.2 is the router to the no-proxy isp

It would be easier if both ISPs have a proxy, as this would make configuration much easier such as:
http://www.christianschenk.org/blog/...xy-with-squid/
Howerver if they don't (you should ask them to check - because they might, and not advertise it), you will need to define some acl rules on which way to go:

cache_peer 10.1.1.30 parent 3128 0 name=isp1proxy default
cache_peer_access isp1proxy allow all

acl directdomains dstdomain .com
never_direct deny directdomains
never_direct allow all

replacing 10.1.1.30 with the ip address of the parent proxy, and 3128 with the port of the parent proxy

Hope this helps...
 
Old 12-29-2008, 11:14 PM   #5
please
Member
 
Registered: Apr 2007
Posts: 195

Original Poster
Rep: Reputation: 30
Hi

Thanks for your reply

I will be test and I will be post again when not OK
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
squid proxy server configuration & distribution of internet without proxy gaurav_gupta082 Linux From Scratch 2 07-31-2010 11:25 AM
Squid Proxy Server AndyRowland Linux - Networking 7 12-01-2008 08:09 AM
Using ISA Server as Parent Proxy and want to setup Squid as dwonstream proxy tauseef1 Red Hat 1 04-09-2008 01:03 AM
Squid Proxy Server blackfish Linux - Server 2 03-31-2007 04:07 PM
squid proxy server cmardhekar Linux - Newbie 0 09-29-2001 05:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration