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

    SQUID: Filtering streaming media using regular expressions

    pfSense Packages
    4
    5
    3.1k
    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.
    • E
      elchakal3000
      last edited by

      Hello!

      I recently installed pfSense 2.1.4
      I blocked p2p by using rules.

      Now I am onto filtering audio and video streaming using Squid.

      I found the following expression that blocks most of video and streaming audio:

      (./..(application/octet-stream|video/flv|video/flc|application/x-shockwave-flash$|application/octet-stream$|application/x-mplayer2$|application/x-mplayer2|application/x-oleobject$|application/x-oleobject|application/x-pncmd|video/x-ms-asf$|asf$|afx$|flv$|swf$|x-ms-asf|x-fcs|ms-hdr|mms))

      But there are some online radio sites, where it doesnt work.

      For example this site:

      http://www.radios-on-line.com.ar/

      For the radios which Works with media player plug in, the above filter expression doesnt work.

      Is there anything I am missing?

      Thanks in advance.
      Regards!

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        You could analyze the HTTP stream to see what it's really serving, or you could block the entire domain.

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

          how do you block P2P using rules, can you share ?

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            Please don't hijack an existing thread that is not related to your question.  Please post your request in the Firewall forum and I'm sure you will get some answers.

            1 Reply Last reply Reply Quote 0
            • F
              fmarinhop
              last edited by

              Onde add as expressoes regulares

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