December 15, 2017, 06:17:43 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Squid as proxy  (Read 1873 times)

Offline mervs00024

  • Linux Noob !
  • *
  • Posts: 5
Squid as proxy
« 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..

Offline nitinwaves

  • New Member
  • Posts: 3
Re: Squid as proxy
« Reply #1 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
~~~~~~~

Offline mervs00024

  • Linux Noob !
  • *
  • Posts: 5
Re: Squid as proxy
« Reply #2 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?

Offline kaushalpatel1982

  • LST CareTaker
  • Linux Learner
  • *****
  • Posts: 87
Re: Squid as proxy
« Reply #3 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