Squid ACL CONNECT method

In the recently , I have been add a rule to pass traffic for facebook :
Code:
acl user_to_fb src "/usr/local/etc/squid/facebook"
acl facebook         dstdomain .facebook.com
http_access allow   CONNECT   user_to_fb   facebook
This is working fine .

And I add another rule for youtube
Code:
acl user_to_youtube src "/usr/local/etc/squid/youtube"
acl youtube                   dstdomain .youtube.com .googlevideo.com .ytimg.com .youtu.be
http_access allow  CONNECT   user_to_youtube   youtube
Unfortunately, no working !
So I change
Code:
http_access allow  CONNECT   user_to_youtube   youtube
to
Code:
http_access allow  user_to_youtube   youtube
,and it works!
I think "CONNECT " should be represent allow connecttion from source to destination ,am I worng ?
 
Back
Top