Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Proxy Server Support => Topic started by: mervs00024 on September 20, 2009, 10:09:09 AM

Title: Squid as proxy
Post by: mervs00024 on September 20, 2009, 10:09:09 AM
Hi everyone, i am a newbie in linux. i have something to consult in our house we have a dsl internet connection with 10 users
some of them are downloading mp3,movies etc.i am planning to install a linux os on 1 computer to prohibit this kind of downloading ang for going to porn sites.can someone help how can i do this and how can i achieve my goal.our dsl router is act as dhcp.


thanks for the help..
Title: Re: Squid as proxy
Post by: nitinwaves on September 20, 2009, 12:34:52 PM
Hi,

Its simple

just enter the block sites or content or words to block into /etc/squid/squid-block.acl

acl blocksites url_regex "/etc/squid/squid-block.acl"
http_access deny blocksites


for example
.yahoo.com
.gmail.com
sex
gambling



Cheers
Nitin
~~~~~~~
Title: Re: Squid as proxy
Post by: mervs00024 on September 21, 2009, 06:32:57 PM
thanks for the reply, but im still having a problem. i can still browse the website i want to block.
i have my dsl internet router this router is stand as dhcp, i set up my linux and squid with no problem.
is there anything wrong or i need to config on my linux?
Title: Re: Squid as proxy
Post by: kaushalpatel1982 on September 23, 2009, 11:55:58 AM
Have you change the file ownership of /etc/squid/squid-block.acl to "squid" user and "squid" Group?

If not just follow the command

#chown squid:squid /etc/squid/squid-block.acl
#service squid reload

This might help you.

best of luck