Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    SquidGuard and expressionlists

    Scheduled Pinned Locked Moved pfSense Packages
    5 Posts 2 Posters 5.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      macgvr
      last edited by

      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

      1 Reply Last reply
      Reply Quote 0
      • N
        Nachtfalke
        last edited by

        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 ?

        1 Reply Last reply
        Reply Quote 0
        • M
          macgvr
          last edited by

          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.

          expresionlist.txt

          1 Reply Last reply
          Reply Quote 0
          • N
            Nachtfalke
            last edited by

            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.

            1 Reply Last reply
            Reply Quote 0
            • M
              macgvr
              last edited by

              I kind of figured the format might be wrong. Thanks for the input.

              1 Reply Last reply
              Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
              Privacy Policy · Cookie Policy