LinuxQuestions.org
Visit Jeremy's Blog.
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 07-31-2007, 08:07 AM   #1
winxandlinx
Member
 
Registered: May 2006
Posts: 141

Rep: Reputation: 15
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
 
Old 07-31-2007, 09:25 AM   #2
kool_kid
Member
 
Registered: Sep 2004
Location: Dubai, UAE
Distribution: RHL
Posts: 350

Rep: Reputation: 30
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
 
Old 08-01-2007, 07:58 AM   #3
winxandlinx
Member
 
Registered: May 2006
Posts: 141

Original Poster
Rep: Reputation: 15
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 ?????
 
Old 08-02-2007, 01:31 AM   #4
vjn
LQ Newbie
 
Registered: Jul 2007
Posts: 12

Rep: Reputation: 0
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.
 
Old 08-02-2007, 03:22 AM   #5
winxandlinx
Member
 
Registered: May 2006
Posts: 141

Original Poster
Rep: Reputation: 15
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
 
Old 08-02-2007, 03:57 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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

Last edited by acid_kewpie; 08-02-2007 at 03:59 AM.
 
Old 11-13-2009, 10:35 AM   #7
arindam.mistry
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
Thumbs up Thanks to U

Quote:
Originally Posted by acid_kewpie View Post
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.
 
Old 12-17-2009, 03:04 AM   #8
isaaclw
Member
 
Registered: Dec 2009
Posts: 36

Rep: Reputation: 15
Can you do redirection like this with squid also?

I seem to remember you could...
 
Old 10-27-2010, 02:53 AM   #9
strakalas
LQ Newbie
 
Registered: Oct 2010
Distribution: CentOS, Ubuntu
Posts: 6

Rep: Reputation: 0
Exclamation

Quote:
Originally Posted by acid_kewpie View Post

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.
 
  


Reply

Tags
content, filtering, proxy



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
How do I block web pages/sites? Is squid what I should use? RHLinuxGUY Linux - Networking 3 02-06-2010 12:07 PM
how to block sites 4ajaysingh Linux - Networking 1 01-23-2007 09:01 AM
Squid block sites linuxnirmal Linux - Security 5 11-15-2006 10:59 AM
block some sites nkutty Linux - Security 1 10-03-2005 04:15 AM
how to block sites with squid.conf boakiba Linux - Networking 1 08-11-2003 05:45 AM

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

All times are GMT -5. The time now is 03:06 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