Koozali.org: home of the SME Server

[ANNOUNCE] new contrib for web filtering

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[ANNOUNCE] new contrib for web filtering
« on: October 15, 2012, 11:35:52 PM »
Hi.

I just want to annonce the availability of a new contrib which adds web filtering capabilities. It uses squidguard to block URLs and squidclamav to scan content preventing viruses. There's a simple panel for the server-manager to configure everything. The contrib also logs every requests in a MySQL database for easy analysis of the traffic.

This contrib was made to be simple to configure. It's not as powerful as dansguardian can be, but is really easier to install and is more user friendly.

You can take a look at the wiki page here: http://wiki.contribs.org/WebFiltering

Regards, Daniel
C'est la fin du monde !!! :lol:

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: [ANNOUNCE] new contrib for web filtering
« Reply #1 on: October 16, 2012, 10:03:45 AM »
Thanks Daniel, sounds great!
Some questions if I may:
- How good is the database for blocked sites, and how to check if and when it was last updated?
- Should Dansguardian be uninstalled before installing your contrib, or will disabling Dans be OK to test?
Thanks.

- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: [ANNOUNCE] new contrib for web filtering
« Reply #2 on: October 16, 2012, 10:10:58 AM »
Some questions if I may:
Of course you may ;-)
Quote from: chris burnat
- How good is the database for blocked sites, and how to check if and when it was last updated?
Databases are quite good, at least for my needs. The adult one (which list porn websites) is the most complete.  If you want to see which database was modified, you can edit /etc/cron.daily/squidGuard and remove 2>&1 > /dev/null at the end. You'll receive an email each night where you'll be able to see which database have changed. You can also disable the autoupdate feature and manage your own list, you can find several databases in squidGuard format on the internet.
Quote from: chris burnat
- Should Dansguardian be uninstalled before installing your contrib, or will disabling Dans be OK to test?
In theory, it should work when dansguardian is installed. I haven't tested thought (I've developed this because I find dansguardian really too much a pain to install and manage).

Regards, Daniel
C'est la fin du monde !!! :lol:

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: [ANNOUNCE] new contrib for web filtering
« Reply #3 on: October 16, 2012, 10:21:56 AM »
(I've developed this because I find dansguardian really too much a pain to install and manage).
Regards, Daniel

Same here, I use Dans a fair bit in community based organisations, and it can be a real pain....  Will test and report problem in Bugzilla if applicable.  Many thanks again. Cheers. cb
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline p-jones

  • *
  • 594
  • +0/-0
Re: [ANNOUNCE] new contrib for web filtering
« Reply #4 on: October 16, 2012, 11:34:34 AM »
Quote
[root@server2 ~]# yum --enablerepo=epel --enablerepo=fws install smeserver-webfilter
Loaded plugins: fastestmirror, protect-packages, smeserver
Error getting repository data for epel, repository not found

Is there a fix for this ??
...

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: [ANNOUNCE] new contrib for web filtering
« Reply #5 on: October 16, 2012, 11:37:16 AM »
Yep, as explained in the wiki page, you need to configure the EPEL repo (and Fws too). See http://wiki.contribs.org/Epel and http://wiki.contribs.org/Fws

Regards, Daniel
C'est la fin du monde !!! :lol:

Offline hawk

  • *
  • 141
  • +0/-0
    • hawkelectronics
Re: [ANNOUNCE] new contrib for web filtering
« Reply #6 on: October 18, 2012, 05:42:38 AM »
hi
just what i have been looking for. never liked Dans and have been using untangle on a separate server for years. this contrib has no bells or whistle, easy and simple.  installed and working great.
thanks very much
john

Offline hawk

  • *
  • 141
  • +0/-0
    • hawkelectronics
Re: [ANNOUNCE] new contrib for web filtering
« Reply #7 on: October 19, 2012, 07:15:56 AM »
hi Daniel

Thanks again this is a great contrib, works wonders for me, only had it running for 24 hours and already there are people starting to dislike me. Please can i ask a few questions?
when the blocked screen comes up there is a place for client name, user & group how do i set this part up?
how can i add information to the the blocked page?
Many thanks
John

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: [ANNOUNCE] new contrib for web filtering
« Reply #8 on: October 19, 2012, 08:42:41 AM »
The username would need to enabled user authentication on squid. This is would require some custom templates to enable it, and to configure all your client to use the proxy (authentication doesn't work in transparent mode). For the group part, it's just because squidGuard support several group of people with different filtering rules. As this contrib was made to be simple, this feature is not really used (well, there's two groups in fact: the default one, which get filtered and the unrestricted one, which is not filtered at all).

The default blocked page is /usr/share/squidGuard/cgi-bin/blocked.cgi (which is available at http://hostname.domainname.com/squidGuard/cgi-bin/blocked.cgi). You can customize the URL to which blocked requests are redirected, for example, just copy /usr/share/squidGuard/cgi-bin/blocked.cgi to /usr/share/squidGuard/cgi-bin/custom.cgi, make the change you want, and set it as the default location for blocked pages:

Code: [Select]
db configuration setprop squidguard RedirectURL \
http://hostname.systemname.com/squidGuard/cgi-bin/custom.cgi?clientaddr=%a&clientname=%n&clientuser=%i&clientgroup=%s&targetgroup=%t&url=%u
signal-event http-proxy-update
C'est la fin du monde !!! :lol:

Offline nicolatiana

  • *
  • 724
  • +0/-0
Re: [ANNOUNCE] new contrib for web filtering
« Reply #9 on: October 22, 2012, 09:31:00 AM »
Hi Daniel
 
I'm testing too; do you plan to put the contrib in "translation" ? If so keep us informed so that I can provide the italian translation.
Many thanks for Your job.
 
Nicola
 
« Last Edit: October 22, 2012, 10:23:06 AM by nicolatiana »
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia.

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: [ANNOUNCE] new contrib for web filtering
« Reply #10 on: October 22, 2012, 10:11:48 AM »
Hello Daniel,
Looking great hey?  You have a lot of good information in this thread, would it be possible to incorporate it in the Wikis, or if time is not available, put a link to this topic flagging additional information being available.  Working for me like a charm on my prod box, thanks for your work.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: [ANNOUNCE] new contrib for web filtering
« Reply #11 on: October 22, 2012, 11:20:47 AM »
The wiki page is now updated
C'est la fin du monde !!! :lol:

Offline nicolatiana

  • *
  • 724
  • +0/-0
Re: [ANNOUNCE] new contrib for web filtering
« Reply #12 on: October 22, 2012, 11:34:55 AM »
Many thanks; I'll deal with italian translation. Maybe I'll leave categories main voice <base> in English just to avoid alphabetical order issues.
If you think possible I'll put the transalation between () something like this:
 
    <entry>
        <base>adult (adulti)</base>
        <trans>Siti per adulti che contengono materiale pornografico sia erotico che hardcore</trans>
    </entry>
 
If not possible I'll leave simply in english

Nicola
« Last Edit: October 22, 2012, 11:37:54 AM by nicolatiana »
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia.

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: [ANNOUNCE] new contrib for web filtering
« Reply #13 on: October 22, 2012, 11:40:11 AM »
Nop, you cannot modify the word in <base>, you just have to translate the <trans> part. Categories names are not translated for now, they appear in the panel just as they appear in the file system (in /var/squidGuard/blacklists)
C'est la fin du monde !!! :lol:

Offline cno

  • *
  • 36
  • +0/-0
Re: [ANNOUNCE] new contrib for web filtering
« Reply #14 on: October 23, 2012, 02:47:04 PM »
Thanks for Excellent web filtering contrib

it works very fine and do the job

but I can't find how to block https sites ?? eg https:\\minecraft.net
........................