LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-12-2009, 07:54 AM   #1
matrix_aash
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Rep: Reputation: 0
How to redirect Squid Traffic to Another Proxy Server


Hi All,

I have managed to successfully install Linux and have also managed to get squid working on it.

The idea of using squid is to cache web traffic and another important thing is to redirect all the http and https request to be diverted to another proxy which will filter data on the basis of content.

For e.g.

If I search for a site which is not allowed the request will go to the squid server and the squid server will redirect it to another external server where is is checked for validation and the results will come back on my screen.

Question is how can I divert all my http and https traffic from my squid server to another external server which is e.g. www.domainname.com

I hope I have posted in the right category and hope the above scenario and question makes sense.

Thanks in advance for the help.

Cheers,

Aash.
 
Old 03-12-2009, 07:35 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Sorry if I've misunderstood your question, but it sounds like you want to join a cache hierarchy. if so, the info at the Squid FAQ may help.
 
Old 03-13-2009, 04:49 AM   #3
matrix_aash
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the reply.

I am new to the site and really appreciate your answer.

What I want to do is my company has a proxy server which is looking at an external site which scan the sites which are used by users and if there is any no-useable site than it blocks it.

I want my linux squid server to be pointed to this server so that all the data is going through that server.

I really want my company to go down the route of squid as I think its cool.

Hope this makes sense.

Thanks,

Aash.
 
Old 03-31-2009, 03:27 PM   #4
CanHasDIY
LQ Newbie
 
Registered: Mar 2009
Location: Southwest Missouri
Distribution: Xubuntu today, Lord know what tomorrow!
Posts: 13

Rep: Reputation: 1
I have a similar issue - here's my situation:

Employees need to access Website A, but Website A has blocked access from our company's IP. I need to be able to set up a proxy that will allow employees to access the site from within the company network; in other words, fool Website A into thinking that the request is coming from somewhere else. There's probably an extremely basic answer, but I'm fairly new to Linux (using it for less than a year) and not quite familiar with everything.


I've got squid up and running with a basic config on Xubuntu 8.04. Any ideas?

Thanks in advance.
 
Old 04-01-2009, 12:18 AM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
You could google anonymizer, but I don't know what else to suggest. What if they had a good reason (e.g. previous abuse) for stopping your company's employees?
 
Old 04-01-2009, 07:14 PM   #6
CanHasDIY
LQ Newbie
 
Registered: Mar 2009
Location: Southwest Missouri
Distribution: Xubuntu today, Lord know what tomorrow!
Posts: 13

Rep: Reputation: 1
Actually, it's kind of funny - We made a deal to work with them, but apparently no one told their IT department. So when they got flooded with requests from our IP suddenly, they must have thought it was a DoS attack and blocked us...

That was a year ago... still blocked...

anyway, I think I have it figured out, just had to spend a little more time researching squid, trial and error, etc., etc. Thanks for the help, it's definitely in the right direction.
 
Old 04-03-2009, 01:55 PM   #7
CanHasDIY
LQ Newbie
 
Registered: Mar 2009
Location: Southwest Missouri
Distribution: Xubuntu today, Lord know what tomorrow!
Posts: 13

Rep: Reputation: 1
OK, squid server is up and running (cache_peer was the key), so now I have a new dilemma; We use Censornet as the main proxy for our company - the squid proxy I built exists solely for access to the one website (website A). Unfortunately, Internet Explorer only allows 1 proxy server for http (Tools-> Internet Options-> Connections-> LAN settings), and it MUST be pointed to the Censornet server. My question is, is there a way to link the proxy servers, so that only requests for the specific URL are directed through the squid server?
To illustrate:

Normal request->Censornet->internet

website A request->Censornet->squid proxy->internet

Any ideas?
 
Old 04-03-2009, 03:19 PM   #8
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It's worth checking through the Squid FAQ site. There's info on joining a cache hierarchy for your first requirement and info on going direct for some sites for your second requirement. The surrounding questions on the site should clarify the info provided.
 
Old 04-04-2009, 09:56 AM   #9
CanHasDIY
LQ Newbie
 
Registered: Mar 2009
Location: Southwest Missouri
Distribution: Xubuntu today, Lord know what tomorrow!
Posts: 13

Rep: Reputation: 1
Talking

I did take some time and check out the squid wiki, but of course the links to information on how to configure squid as an anonymizer led to blank pages...

Not that big of a deal after all, as the owners of the website finally got their act together and fixed the blocking issue. I really appreciate all the help, and believe me when I say this, I will be needing it again (total newbie).
 
Old 06-10-2009, 04:54 PM   #10
CanHasDIY
LQ Newbie
 
Registered: Mar 2009
Location: Southwest Missouri
Distribution: Xubuntu today, Lord know what tomorrow!
Posts: 13

Rep: Reputation: 1
Update: they just un-fixed it a few weeks ago, and I already blew away my old squid config, so now it's back to square one... good thing I enjoy a challenge...
 
Old 07-13-2009, 01:41 AM   #11
dinesh070778
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
how to redirect other proxy using squid
 
Old 02-16-2010, 11:52 AM   #12
jvaldivia
Member
 
Registered: Sep 2007
Distribution: Debian Lenny
Posts: 61
Blog Entries: 2

Rep: Reputation: 19
Solved

For those who may want some help I added a blog entry about this:

http://soad1982.blogspot.com/2010/02...her-proxy.html

regards.
Jose Valdivia
 
  


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
tcp proxy with one nic, redirect traffic to other IP RattleSn@ke Linux - Networking 3 03-09-2009 07:34 AM
how to redirect squid traffic to a specific nic card scream Linux - Newbie 0 03-08-2009 03:57 AM
Howto make a proxy for redirect all traffic gixbie Linux - Newbie 4 12-05-2007 09:04 AM
Squid transparent proxy won't redirect SSL, Help please! cereal83 Linux - Networking 2 08-15-2007 12:53 PM
Squid split traffic proxy stonelee Linux - Networking 0 09-08-2003 11:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:45 PM.

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