Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian and Fedora Core in equal measure
Posts: 264
Rep:
Dansguardian Nightmare
Guys,
I'm having a bit of a 'mare with Dansguardian. I want to run dansguardian integrated with Squid, and as far as it goes, that works just great. If I browse to www.bbc.co.uk, I get the page I request, when I try to browse to www.playboy.com, I get an appropriate block message. However, when I try to make the integration between Dansguardian and ClamAV work, I get a problem.
If I try to go to the EICAR page and download a test virus, its clear that the virus is detected by ClamAV. Instead of getting the file downloaded, or the normal block page, it tries to go to http://yourserver.yourdomain/cgi-bin.../eicar.com.txt
which of course doesn't work because yoursever.yourdomain doesn't resolve to anything, so I get an error from Squid (Can't find the webpage, which is correct, as far as it goes).
OK, you may suggest I look in dansguardian.conf, and adjust the line where it says:
accessdeniedaddress ='http://YOURSERVER.YOURDOMAIN/cgi-bin/dansguardian.pl'
to indicate a proper address so I tried that, but it doesn't make any difference, I still get the same behaviour.
I found some hints....the file dansguardian.conf is looking for "YOURSERVER.YOURDOMAIN" (upper Case) before you change it to a proper name/address, but the browser output indicates "yourserver.yourdomain" (lower case), so the URL that Dansguardian is feeding to squid, (and squid is failing to find) is clearly not coming from the dansguardian.conf file.
I can replicate this on both the latest, fully patched Ubuntu or Debian.
If I could just find where in DansGuardian that the "yourserver.yourdomain" configuration is located, I may be able to make progress, but I can't find it despite significant time looking, and I've run Google thin looking!
Distribution: Debian and Fedora Core in equal measure
Posts: 264
Original Poster
Rep:
I see your point, but when I change the "YOURSERVER.YOURDOMAIN" to "192.168.123.88" (the private network address of my server), the URL that DansGuardian is asking Squid to get when DansGuardian has detected a virus in the download is still "yourserver.yourdomain", thus proving that the field in dansguardian.conf is nor being applied (and yes, I did restart Dansguardian )
search the dansguardian files for the text "yourserver" to see where it's configured. No idea what directory to start in though (ie, I doubt /etc/dansguardian is the right place)
Distribution: Debian and Fedora Core in equal measure
Posts: 264
Original Poster
Rep:
Fixed!
The problem turned out to be my stupidity! I was building and testing this setup behind a bastion device also running Squid and DG. Do the thing on the inside of the firewall, but not behind Squid/DG...works fine! D'Oh!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.