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

    Ignroe audio streaming and video in squid

    Scheduled Pinned Locked Moved pfSense Packages
    6 Posts 2 Posters 2.8k 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.
    • S
      serialdie
      last edited by

      How can I set squid to ignore all streaming media?

      Thank You for the help.

      1 Reply Last reply Reply Quote 0
      • S
        serialdie
        last edited by

        Any body?
        This is causing me major issues as the cache gets full and also lags the streams causing it o be bad. :(

        1 Reply Last reply Reply Quote 0
        • N
          Nachtfalke
          last edited by

          I do not have these problems with squid.
          which streams or pages do you use which causes problems ?

          are you using HAVP ?

          1 Reply Last reply Reply Quote 0
          • S
            serialdie
            last edited by

            Nachtfalke,

            I am using shoutcast and various other site for online video like youtube and news sources….
            No I do not use HAVP.
            When I stream video is very slow and choppy. When I stream audio there is a slow down causing audio to chop and garble.
            If I white list the ip of the internal system accessing the sites the issue goes away.
            I am using transparent proxy.

            Thank you for the help

            1 Reply Last reply Reply Quote 0
            • S
              serialdie
              last edited by

              I was able to cook up some rules though I am not sure if they would work….

              Custom options

              acl media rep_mime_type mms                                                                                                                                                                                                                 
              acl mediapr url_regex dvrplayer mediastream ^mms://                                                                                                                                                                                         
              acl media rep_mime_type x-ms-asf                                                                                                                                                                                                           
              acl mediapr urlpath_regex .(afx|asf)(?.)?$                                                                                                                                                                                               
              acl media rep_mime_type video/flv video/x-flv                                                                                                                                                                                               
              acl mediapr urlpath_regex .flv(?.
              )?$                                                                                                                                                                                                     
              acl media rep_mime_type application/x-shockwave-flash                                                                                                                                                                                       
              acl mediapr urlpath_regex .swf(?.)?$                                                                                                                                                                                                     
              acl media rep_mime_type ms-hdr                                                                                                                                                                                                             
              acl media rep_mime_type x-fcs                                                                                                                                                                                                               
              acl media urlpath_regex .(mp3|mp3)(?.
              )?$                                                                                                                                                                                                 
              acl media urlpath_regex -i .mp3$ .wav$ .avi$ .mpeg$                                                                                                                                                                                     
              acl mediapr urlpath_regex .pls(?.*)?$

              Are this valid squid rules? I sort of goth them from examples etc...

              1 Reply Last reply Reply Quote 0
              • N
                Nachtfalke
                last edited by

                Hi,

                to cache custom file-extensions I am using this:

                refresh_pattern -i /.*.(iso|wmv|mov|rm|avi|mp4|mpeg|mpg|divx|xvid|swf|flv|x-flv) 10080 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private;

                This is working BUT the options are only working if it is http.

                Your types could be correct ( I don't know for sure) but I think they are only for allowing or denying access to this kind of files. But I do not think that you are now able to cache these files.

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