SQUID: Filtering streaming media using regular expressions



  • 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!



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



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



  • 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.



  • Onde add as expressoes regulares


Log in to reply