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

    Pfsense can url filter ????????

    Scheduled Pinned Locked Moved pfSense Packages
    10 Posts 7 Posters 25.4k 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.
    • D Offline
      dinhvietbk
      last edited by

      I used pfsense with firewall function…But i don't see url filter function of pfsense..Have pfsense got url filter function ? If has, it where and how configuration ???????

      1 Reply Last reply Reply Quote 0
      • P Offline
        Perry
        last edited by

        Using OpenDNS.com as your DNS Servers is the easy way.
        or you can use Squid + Squidguard which is available as packages.

        /Perry
        doc.pfsense.org

        1 Reply Last reply Reply Quote 0
        • I Offline
          iamthed
          last edited by

          install squid +squidguard then configure..
          solved the problem

          i'm dumb.. but i have a desire to learn

          1 Reply Last reply Reply Quote 0
          • J Offline
            jigpe
            last edited by

            Is it okay to use squid+squidguard if you have traffic shaper enabled? Seems like traffic shaper slow down all of the rules ive set in the Firewall Rules.

            jigp
            Davao City

            1 Reply Last reply Reply Quote 0
            • Z Offline
              zabidin2
              last edited by

              I use squid+squidgard. When i add domain that i want to block in destination tab on proxy filter, user still can access domain that i want to block. Not solved my problem.

              1 Reply Last reply Reply Quote 0
              • Cry HavokC Offline
                Cry Havok
                last edited by

                Is the user using the proxy - if they aren't then of course they can bypass the restrictions in the proxy.

                1 Reply Last reply Reply Quote 0
                • C Offline
                  chudy
                  last edited by

                  squid alone can filter url or anything http

                  1 Reply Last reply Reply Quote 0
                  • Z Offline
                    zabidin2
                    last edited by

                    squid, it self can filter url only not advanced like squidgard. And also, we cannot customize error page on squid. I create page that i customize but image not appear.

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      chudy
                      last edited by

                      First of all SquidGuard runs on squid's feature url_rewrite.

                      Squid can do and SquidGuard cant….
                      Filtering:
                      mac-address
                      browser used
                      referer
                      maximum connections
                      mime-type
                      header

                      SquidGuard can do and Squid cant?
                      so far nothing I've known.

                      Which do you think is not advance? ;) maybe you mean easy  :)
                      You might ask why I don't want to use squidguard? Its because it degrades the reqs/sec.

                      For url filter:
                      you can always use custom configurations under squid and try the following below.

                      If URL you can use url_regex but the problem is what if the client access sites by IP? so ill use dstdom_regex to resolve the IP(not tested).
                      block youporn.com gayporn.com worldsex.com and any domain contains xxx

                      acl porndomain dstdom_regex porn sex xxx;
                      http_access deny porndomain;
                      

                      you might ask why there is ;? Its for webgui custom configurations.
                      If you like to blocked only porn site's videos?

                      acl porndomain dstdom_regex -i porn sex xxx;
                      acl videos urlpath_regex \.flv \.asf \.wmv \.on2;
                      http_access deny porndomain videos;
                      

                      remember all acl are OR logic while all access are AND logic.

                      Custom error pages? edit /usr/local/etc/squid/errors/English/ERR_ACCESS_DENIED
                      i've tried add css and reconfigure  ;D

                      Or

                      acl porndomain dstdom_regex porn sex xxx;
                      deny_info ERR_ACCESS_PORN porndomain;
                      http_access deny porndomain;
                      

                      /usr/local/etc/squid/errors/English/ERR_ACCESS_PORN <- file location if English(default)
                      if you put some images it should be in /usr/local/www unless you want to link inside squids errors directory.

                      How to remove squid footer? add this in error pages.

                      One more thing. Controlling partial download(like DAP)

                      acl maxcon maxconn 2;
                      acl partial rep_header Content-Range .*;
                      http_reply_access deny partial maxcon;
                      
                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        jigpe
                        last edited by

                        After following the steps, my squid package wont run now. I have to reinstall the package..Reinstalling package did the trick but i lost the backup squid configuration.Good thing i backup the xml..

                        jigp
                        Davao City

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