LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Squid to block all the sites except 1 or 2 sites (https://www.linuxquestions.org/questions/linux-networking-3/squid-to-block-all-the-sites-except-1-or-2-sites-573655/)

winxandlinx 07-31-2007 08:07 AM

Squid to block all the sites except 1 or 2 sites
 
Hi Everyone

I am ubuntu linux and configured squid in that

Actually right now the squid is qllowing all the

sites , But what my need is i need to block all the

sites except one or two sites for ex google and

company website

Anyone helping this issue will be greatly appriciated

kool_kid 07-31-2007 09:25 AM

go get squidGuard n add the source ips and in acl giv access to google n your company website n select none then

welll squidGuard configuration is very much easier if u use it with webmin

good luck

winxandlinx 08-01-2007 07:58 AM

Hi Thanks for reply

But actually i am using only squid

what should i do for getting squid guard

So i cannot able to do this in normal squid ?????

vjn 08-02-2007 01:31 AM

No. You can not use Squid for content filtering. You have to patch it with something like Squid Guard or Dans Guardian for that.

But there are other content filtering proxies like SafeSquid (http://freshmeat.net/projects/safesquid/) that can be used as proxy + web cache + content filtering. It also has a GUI interface for management. You can also forward request from SafeSquid to Squid.

winxandlinx 08-02-2007 03:22 AM

How can i install squid squard

And it like addon kind of setup which we need to add with squid

please suggest me out of this

acid_kewpie 08-02-2007 03:57 AM

who ever asked for content filtering??? you appear to just be advertising your own project, not answering the question at hand.

winxandlinx you can do exactly what you want very very simply with squid. there is no need whatsoever to use other tools in conjunction with it. you just want a dstdomain whitelist and permit everything in that whitelist and then follow up with a blanket deny after it.


acl whitelist dstdomain .google.com .mycompany.com
acl all src 0.0.0.0/0.0.0.0

http_access permit whitelist
http_access deny all

arindam.mistry 11-13-2009 10:35 AM

Thanks to U
 
Quote:

Originally Posted by acid_kewpie (Post 2845245)
who ever asked for content filtering??? you appear to just be advertising your own project, not answering the question at hand.

winxandlinx you can do exactly what you want very very simply with squid. there is no need whatsoever to use other tools in conjunction with it. you just want a dstdomain whitelist and permit everything in that whitelist and then follow up with a blanket deny after it.


acl whitelist dstdomain .google.com .mycompany.com
acl all src 0.0.0.0/0.0.0.0

http_access permit whitelist
http_access deny all

This is working. I implement in my network. This also work in RHEL 5.4.

isaaclw 12-17-2009 03:04 AM

Can you do redirection like this with squid also?

I seem to remember you could...

strakalas 10-27-2010 02:53 AM

Quote:

Originally Posted by acid_kewpie (Post 2845245)

acl whitelist dstdomain .google.com .mycompany.com
acl all src 0.0.0.0/0.0.0.0

http_access permit whitelist
http_access deny all

yes, but anybody could still visit https://www.facebook and other https sites. how to prevent this? I can't force users to use Proxy's, coz I want all control/management to be serverside only.


All times are GMT -5. The time now is 09:57 PM.