How to redirect Squid Traffic to Another Proxy Server
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
Distribution: Xubuntu today, Lord know what tomorrow!
Posts: 13
Rep:
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?
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?
Distribution: Xubuntu today, Lord know what tomorrow!
Posts: 13
Rep:
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.
Distribution: Xubuntu today, Lord know what tomorrow!
Posts: 13
Rep:
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
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.
Distribution: Xubuntu today, Lord know what tomorrow!
Posts: 13
Rep:
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).
Distribution: Xubuntu today, Lord know what tomorrow!
Posts: 13
Rep:
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.