Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Squid3 whitelist

    Scheduled Pinned Locked Moved Cache/Proxy
    3 Posts 2 Posters 920 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.
    • A
      aspenpilot
      last edited by

      pfSense 2.2.4
      Squid3 0.3.4

      Test the blacklist function in squid3 by placing the entry .cnn.com in the blacklist box.  User receives default squid3 access denied page.  I then removed the blacklist entry and put it in the whitelist box.  Users are able to go to any website which has not been entered in whitelist box.  I understood the whitelist to be only the sites which are permitted..no others will be allowed.  Am I doing something incorrectly?  Any help would be greatly appreciated.

      UPDATE: Not sure if this is the best way, but I have figured out how to do a whitelist.  I put .com in the blacklist section, and then put the specific sites which are to be allowed in the whitelist section.

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        Perhaps you could try these instead for you whitelist?

        
        *.cnn.com/*
        
        

        or even

        
        ^(http|https|mms)://([^/]+[.])?(?i:cnn[.]com)(/.*)?$
        
        

        On another note - blacklisting something like *.com is not a viable approach to usable web, nor it this maintainable in any reasonable way.  :o ::)

        1 Reply Last reply Reply Quote 0
        • A
          aspenpilot
          last edited by

          Thanks for the suggestion.  I'll try it in a few hours.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.