Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-05-2010, 11:55 PM   #1
LQ Newbie
Registered: Dec 2010
Posts: 4

Rep: Reputation: 1
Configuring squid with dansguardian

Hello all, first of all I want to say thanks before for your help.

I have installed squid and dansguardian on my server, I also setup my iptables to forward port 80 communication to port 3128 (squid).
I also have remove the comment on /etc/dansguardian/dansguardianf1.conf (line "bannedextensionlist") hoping that my server would block download.

But it isn't, it still download file no matter I add in /etc/dansguardian/lists/bannedextensionlist.

Oh yeah, I also add this line to my /etc/squid/squid.conf
cache_peer parent 8080 0 no-query default
so that squid will consider dansguardian as it's parent.

Thanks for your help ^^.
Old 12-07-2010, 09:33 AM   #2
Registered: Jan 2006
Distribution: Fedora, Ubuntu, Slackware
Posts: 56

Rep: Reputation: 15
Try reversing them, filter through dansguardian first
in your /etc/dansguardian/dansguardian.conf file set proxyport = 3128
tell dansguardian to listen to port 8080: filterport = 8080 and forward port 80 on your router to 8080

Last edited by cpuobsessed; 12-07-2010 at 09:35 AM. Reason: updated response
Old 12-08-2010, 10:31 AM   #3
LQ Newbie
Registered: Dec 2010
Posts: 4

Original Poster
Rep: Reputation: 1
Thanks for you reply cpuobsessed, I really appreciate that ^^.
Actually, I've already done that, and it work and block the file listed on /etc/dansguardian/lists/bannedextensionlist.
But I got into another problem, my acl on squid isn't working using that way.
I have separated some IP's, some who can browse the web, and some who cannot. When I set Dansguardian first, they all can browse.
That is the reason why I put squid first.

Well, anyway, thanks for the help ^^.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Squid+DansGuardian not working properly. squid blocking sites that should be linuxlover.chaitanya Linux - Server 13 11-10-2014 11:34 AM
[SOLVED] Dansguardian+squid struggled_newbie Linux - Newbie 1 11-19-2010 08:06 AM
squid and dansguardian vansugar24 Linux - Networking 1 07-24-2010 12:47 PM
Dansguardian and Squid yeeha! Linux - Networking 4 08-21-2006 02:22 AM
Dansguardian/Squid HELP! Prizam Linux - Software 3 09-23-2005 07:30 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration