Re: [squid-users] Whether we can redirect video traffic to squid 2.7 via porting mirror

From: Antony Stone <Antony.Stone_at_squid.open.source.it>
Date: Thu, 28 Aug 2014 18:10:00 +0200

On Thursday 28 August 2014 at 17:51:04 (EU time), johnzeng wrote:

> Hi , i have a switch , and i hope to redirect video traffic to Cache via
> using Port mirroring feature

> Whether Squid 2.7 can listen and identify mirroring data packet ?

You can't just "feed" traffic in to Squid - it has to request it, otherwise it
won't have a clue what to do with it.

> if Squid 2.7 can identify , i hope to match video part and send 302 http
> packet to end user via url_rewrite_access and redirect the user's
> request to Cache

Why not just tell the client to use Squid as a proxy?

Then:

 - Squid will make the requests and know what to do with the response traffic it
gets back

 - you don't need to send a 302 redirect to the client; it'll just get the
cached content automatically

 - clients will get the benefits of caching for everything else, as well as the
video

In other words, why not just set up Squid "normally"?

Antony.

-- 
Pavlov is in the pub enjoying a pint.
The barman rings for last orders, and Pavlov jumps up exclaiming "Damn!  I 
forgot to feed the dog!"
                                                   Please reply to the list;
                                                         please *don't* CC me.
Received on Thu Aug 28 2014 - 16:10:11 MDT

This archive was generated by hypermail 2.2.0 : Thu Aug 28 2014 - 12:00:07 MDT