Re: [squid-users] Whether we can redirect video traffic to squid 2.7 via porting mirror
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.
Re: [squid-users] Whether we can redirect video traffic to squid 2.7 via porting mirror
I see , but it will be normal way , we can redirect full http traffic via route-map or Wccp , but if we redirect part video traffic only , porting mirror + 302 http packet will be safe way . 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.
Re: [squid-users] Whether we can redirect video traffic to squid 2.7 via porting mirror
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 29/08/2014 4:17 a.m., johnzeng wrote: I see , but it will be normal way , we can redirect full http traffic via route-map or Wccp , but if we redirect part video traffic only , porting mirror + 302 http packet will be safe way . No, port mirroring is most unsafe way to configure and not possible with HTTP agents. HTTP is designed to work with proxy intermediaries like Squid as part of the messaging system. Perhapse you need to read http://tools.ietf.org/html/rfc7230#section-2.3, which documents how HTTP works with Squid. Maybe also http://tools.ietf.org/html/rfc7230#section-2.3 which documents how caches operate in HTTP. Amos -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.22 (MingW32) iQEcBAEBAgAGBQJT/1uWAAoJELJo5wb/XPRjyxAH/R9Osq5ljHnkEfqh7C84ol5m 7RpX/QL0zE7N8qikhCZbj3cmGz5OTiQIU7cPCj4cWMrU6Ge0txy4g4UoHk7yjW9/ 6+SC8PtibkGKE8nqkDXa7TaAvYfsSIz/wxGXRhPsgQ8GbPv/Fkg6cw/fYae3n2xd xOKWf4wCBrjBt2qwBZvvYnxsHUVts4L57mk/JpB5L33ANk4yJpdAW5MUg5xHKWBw dA0vFOTbFvUsqRnpnFEac419moGFksqXwUL83b0330vos1OSks0F6aooqbhfSHyc JhYA+RfQXHNPwDML9x4nlQbrV8wihsJG3agwJ0P2Ur77BSdv/SwnmWzQ7b2UbdY= =Q5Yd -END PGP SIGNATURE-