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

    Squid + squidguard mime type block

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 3 Posters 8.9k 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.
    • V
      vgumus
      last edited by

      hello,

      squid + squidguard application/vnd.ms.wms-hdr.asfv1$ mime type block

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

        Was there supposed to be a question there?

        1 Reply Last reply Reply Quote 0
        • D
          dvserg
          last edited by

          @vgumus:

          Hi,

          In a system with squid + squiguard installed how do I want to ban mimetype

          Example mimetype block
          video/x-ms-asf$
          application/vnd.ms.wms-hdr.asfv1$
          application/x-mms-framed$
          audio/x-pn-realaudio$

          Thanks…

          Edit /usr/local/pkg/squid.inc
          function traffic_resync()

          add

          conf .= <<<eod<br># mime content
          acl mmedia_video rep_mime_type -i ^.video.
          acl mmedia_audio rep_mime_type -i ^.audio.
          acl mmedia_flash rep_mime_type -i ^.flash.
          acl mmedia_image rep_mime_type -i ^.image.

          http_reply_access deny mmedia_video
          http_reply_access deny mmedia_audio
          http_reply_access deny mmedia_flash
          http_reply_access deny mmedia_image

          EOD;</eod<br>

          SquidGuardDoc EN  RU Tutorial
          Localization ru_PFSense

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