SquidGuard and expressionlists
-
Is there a way to use expressionlists in Squidguard in Pfsense? I tried entering them in the spot where regular expressions are entered, using the GUI interface under Target categories, but that failed. I can't find an option for using expressionlists in the GUI anywhere, unless I just missed it. Can anyone help? Thanks
-
Target categories and the field "Expressions" is what you are searching.
What does not work ?Did you click "save" and "Apply" in "General Settings" page ?
-
When I go to the Target categories and create a category, I then have the options of Domain list, URL list and Regular expressions. I grabbed an expression list that is mentioned on the SquidGuard page and pasted it into the Regular expressions section. When I click save it generates an error in the upper right hand side of the window and when I acknowledge the error it bounces me out of the category I was working in. When I go back in, I find that it has cleared everything I put in. I have tried it more than once with the same result. I have attached the text file containing the content I tried to enter.
-
The problem is that you are using the wrong syntax for the GUI. Read this:
dsniff|torrent|edonkey|emule|applejuice|audiogalaxy|gnutella|azureus|bitcomet|bitrocket|bitlord|bitspirit|bittornado|bittyrant|shareaza|jdownloader|warez|.*\.rsdf$|.*\.dlc$|.*\.ccf$|.*\.6x\.to/|.*\.5x\.to/|.*\.met$|.*\.ucoz\.kz/ Enter word fragments of the destination URL. To separate them use | . Example: mail|casino|game|\.rsdf$
Suggestion:
The GUI offers the possibility to upload blacklists like from urlblacklist.com and shallalist.de
URLblacklist.com offers URL, domain and expressions.Download such a blacklist, modifiy the "expressions" with your file and then upload it to pfsense and import it into squidguard.
PS: I checked your regex list and you want to block "weed" so probably some predefinex blacklists like from shalla.de will help you. All these lists will be updates regularily and you can add URLs which are not in the blacklist on the shalla.de webpage.
-
I kind of figured the format might be wrong. Thanks for the input.