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

Proxy Content filter SquidGuard, Rewrites

Scheduled Pinned Locked Moved pfSense Packages
7 Posts 4 Posters 11.1k 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.
  • R
    RammsteinTR
    last edited by Jul 16, 2009, 12:58 PM

    Someone can share an example about creating new rewrite rule.

    My origin problem is; i want to block internet medi types like video/x-flv, video/mp4, video/x-m4v, audio/mp4a-latm, video/3gpp, video/quicktime, audio/mp4. i can do this with Destinations. adding new rule and in the expression area i add .*.(wmv|wav|avi|flv|mp4|mp3|on2). but some sites' players open a video file with no file extension. i think i can block it with mime type prevent. some guys said that "you can do it with rewrite rules". is it possible. if it, how can i do?

    Thanks already now for your helps.

    1 Reply Last reply Reply Quote 0
    • D
      dvserg
      last edited by Jul 16, 2009, 1:51 PM

      By mime content type you cant filter(only if changes squid.inc)
      Possible set minimum speed for this content Squid - TrafficManagment -
      Overall bandwidth throttling [ 1 ]
      v Throttle only specific extensions
      v Throttle multimedia files

      It's set for all multimedia files bandwidth 1 kb/s

      SquidGuardDoc EN  RU Tutorial
      Localization ru_PFSense

      1 Reply Last reply Reply Quote 0
      • T
        tHaCuBe
        last edited by Jul 16, 2009, 6:12 PM

        I could be wrong… but if the player loads the file using the IP address, your filter wouldn't block it. At least not if I'm reading it right. It appears to be looking for a .com,.org,etc. then again, it should pick up the last part of the ip, huh? weird... my only other guess would be if some players bypass http and use, for example, mms://?

        1 Reply Last reply Reply Quote 0
        • D
          dvserg
          last edited by Jul 17, 2009, 7:28 AM Jul 17, 2009, 7:26 AM

          Multimedia content may have specific extensions (.wav .wmv  ..) or part of HTTP URL (/video/.. /audio/…), and also may be inplaced in HTML page content(code).
          In first situation - proxy filter work fine - becose this is 'URL filter'
          Second situation - need content filtering (do you view different : URL and content ?). Content can will filter by proxy only (i.e. squid) squid have all possibilities for this, but not via GUI (look /usr/local/pkg/squid.inc)

          SquidGuardDoc EN  RU Tutorial
          Localization ru_PFSense

          1 Reply Last reply Reply Quote 0
          • J
            jigpe
            last edited by Jul 20, 2009, 12:19 AM

            Good morning all. If i use https site, I still can download the .mp4 and 3gp video. No luck for https? Just http only?

            jigp
            Davao City
            1.2.2

            1 Reply Last reply Reply Quote 0
            • D
              dvserg
              last edited by Jul 20, 2009, 12:07 PM

              This is the squid question.
              If squid sent to squidGuard https URLS - then SG can filter this too.

              SquidGuardDoc EN  RU Tutorial
              Localization ru_PFSense

              1 Reply Last reply Reply Quote 0
              • J
                jigpe
                last edited by Sep 17, 2009, 5:08 PM

                Ok ill test it out. Tnx :)

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received