LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How do I block web pages/sites? Is squid what I should use? (http://www.linuxquestions.org/questions/linux-networking-3/how-do-i-block-web-pages-sites-is-squid-what-i-should-use-435167/)

RHLinuxGUY 04-14-2006 03:06 PM

How do I block web pages/sites? Is squid what I should use?
 
If this should be in software, then please move this thread there.

A few years ago an old friend of mine and I were playing around with some software that I believe was called squid. He was able to block anyone on his network to entering certain sites. I cannot seem to do this with my recent installation of squid (through synaptic). Is there a web address I should go to much like TeamSpeak where I can tune my squid? Is squid the right program for this job, or could it have been something else that I have seen?

puntjuh 04-14-2006 03:12 PM

Yes squid guard will do that what you want. Download the latest version here:

http://www.squidguard.org/

Here's a config file you can view:

http://aplawrence.com/Unixart/squidguard.html

And if needed.. an installation howto:


http://www.aeronetworks.ca/squidguard-howto.html

I believe the last link is the best one.. it has a lot of info that you should read.

good luck,

puntjuh

RHLinuxGUY 04-14-2006 11:55 PM

I am having a problem. I downloaded squidGaurd via synaptic and after I went through the sgaurd howto I came to a problem...

... when I try to reconfigure my squid (# squid -k reconfigure) it spews out the following...

Code:

root@georgescomp1:/etc/squid# squid -k reconfigure
squid: ERROR: Could not send signal 1 to process 19813: (3) No such process
root@georgescomp1:/etc/squid#


... if I just do
Code:

# squid
, I get the following...

Code:

root@georgescomp1:/etc/squid# squid
FATAL: redirect_program /usr/bin/squidGaurd: (2) No such file or directory
Squid Cache (Version 2.5.STABLE10): Terminated abnormally.
CPU Usage: 0.005 seconds = 0.001 user + 0.004 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Aborted
root@georgescomp1:/etc/squid#

I'm not too sure what I should give, I'll will be uploading my config files to my server but in a few minutes. I'll post links afterwards.

iseymur 02-06-2010 01:07 PM

I like block different users different sites
 
Example I have 3 user list and 3 file with block site names

acl group1 src 192.168.0.2 192.168.0.3 192.168.0.4/24
acl group2 src 192.168.0.5 192.168.0.6 192.168.0.7/24
acl group3 src 192.168.0.8 192.168.0.9 192.168.0.10/24

and

acl blocksites1 url_regex -i "/etc/squid/block1.txt"
acl blocksites2 url_regex -i "/etc/squid/block2.txt"
acl blocksites3 url_regex -i "/etc/squid/block3.txt"

I like block blocksites1 for group1, blocksites2 for group2,
blocksites3 for group3,

help me please


All times are GMT -5. The time now is 08:39 PM.