<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have a proxy squid 3.5.2 that has an app to connect to it remotely to access YouTube Links<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This App some time works and open the link without problems and its response as below :<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>==============<o:p></o:p></p><p class=MsoNormal>1433246384.626 245 195.154.200.58 TCP_MISS/200 38660 GET http://www.youtube.com/get_video_info? - HIER_DIRECT/195.95.178.110 application/x-www-form-urlencoded<o:p></o:p></p><p class=MsoNormal>1433246384.802 62 195.154.200.58 TCP_MISS/200 454 HEAD http://r2---sn-8pgbpohxqp5-ac5e.googlevideo.com/videoplayback? - HIER_DIRECT/82.15.95.141 video/mp4<o:p></o:p></p><p class=MsoNormal>1433246385.027 125 195.154.200.58 TCP_MISS/200 454 HEAD http://r2---sn-8pgbpohxqp5-ac5e.googlevideo.com/videoplayback? - HIER_DIRECT/82.15.95.141 video/webm<o:p></o:p></p><p class=MsoNormal>1433246386.239 123 195.154.200.58 TCP_MISS/200 453 HEAD http://r2---sn-8pgbpohxqp5-ac5e.googlevideo.com/videoplayback? - HIER_DIRECT/82.15.95.141 video/mp4<o:p></o:p></p><p class=MsoNormal>1433246386.469 121 195.154.200.58 TCP_MISS/200 455 HEAD http://r2---sn-8pgbpohxqp5-ac5e.googlevideo.com/videoplayback? - HIER_DIRECT/82.15.95.141 video/x-flv<o:p></o:p></p><p class=MsoNormal>1433246386.709 139 195.154.200.58 TCP_MISS/200 454 HEAD http://r2---sn-8pgbpohxqp5-ac5e.googlevideo.com/videoplayback? - HIER_DIRECT/82.15.95.141 video/3gpp<o:p></o:p></p><p class=MsoNormal>1433246386.941 121 195.154.200.58 TCP_MISS/200 453 HEAD http://r2---sn-8pgbpohxqp5-ac5e.googlevideo.com/videoplayback? - HIER_DIRECT/82.15.95.141 video/3gpp<o:p></o:p></p><p class=MsoNormal>1433246387.181 131 195.154.200.58 TCP_MISS/200 454 HEAD http://r2---sn-8pgbpohxqp5-ac5e.googlevideo.com/videoplayback? - HIER_DIRECT/82.15.95.141 video/mp4<o:p></o:p></p><p class=MsoNormal>1433246387.334 61 195.154.200.58 TCP_MISS/200 454 HEAD http://r2---sn-8pgbpohxqp5-ac5e.googlevideo.com/videoplayback? - HIER_DIRECT/82.15.95.141 video/webm<o:p></o:p></p><p class=MsoNormal>1433246387.756 61 195.154.200.58 TCP_MISS/200 453 HEAD http://r2---sn-8pgbpohxqp5-ac5e.googlevideo.com/videoplayback? - HIER_DIRECT/82.15.95.141 video/mp4<o:p></o:p></p><p class=MsoNormal>And im some youtube videos , it don’t work and has the repsonce as below :<o:p></o:p></p><p class=MsoNormal>433246591.307 128 195.154.200.58 TCP_MISS/403 353 HEAD http://r8---sn-8pgbpohxqp5-ac5l.googlevideo.com/videoplayback? - HIER_DIRECT/62.252.232.19 text/plain<o:p></o:p></p><p class=MsoNormal>1433246591.530 129 195.154.200.58 TCP_MISS/403 353 HEAD http://r8---sn-8pgbpohxqp5-ac5l.googlevideo.com/videoplayback? - HIER_DIRECT/62.252.232.19 text/plain<o:p></o:p></p><p class=MsoNormal>1433246591.752 121 195.154.200.58 TCP_MISS/403 353 HEAD http://r8---sn-8pgbpohxqp5-ac5l.googlevideo.com/videoplayback? - HIER_DIRECT/62.252.232.19 text/plain<o:p></o:p></p><p class=MsoNormal>1433246591.977 120 195.154.200.58 TCP_MISS/403 353 HEAD http://r8---sn-8pgbpohxqp5-ac5l.googlevideo.com/videoplayback? - HIER_DIRECT/62.252.232.19 text/plain<o:p></o:p></p><p class=MsoNormal>1433246592.218 125 195.154.200.58 TCP_MISS/403 353 HEAD http://r8---sn-8pgbpohxqp5-ac5l.googlevideo.com/videoplayback? - HIER_DIRECT/62.252.232.19 text/plain<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The question here is , can I know why squid on some youtube movies give error 403 and some videos it works ???<o:p></o:p></p><p class=MsoNormal>Can I fix the issue of ((TCP_MISS/403)) of those vides ?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Here is my squid.conf :<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>squid -v<o:p></o:p></p><p class=MsoNormal>Squid Cache: Version 3.5.2<o:p></o:p></p><p class=MsoNormal>Service Name: squid<o:p></o:p></p><p class=MsoNormal>configure options: '--prefix=/usr' '--includedir=/include' '--mandir=/share/man' '--infodir=/share/info' '--sysconfdir=/etc' '--enable-cachemgr-hostname=Ahmad-Allzaeem' '--localstatedir=/var' '--libexecdir=/lib/squid' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-silent-rules' '--srcdir=.' '--datadir=/usr/share/squid' '--sysconfdir=/etc/squid' '--mandir=/usr/share/man' '--enable-inline' '--enable-async-io=8' '--enable-storeio=ufs,aufs,diskd,rock' '--enable-removal-policies=lru,heap' '--enable-delay-pools' '--enable-cache-digests' '--enable-underscores' '--enable-icap-client' '--enable-follow-x-forwarded-for' '--enable-auth' '--enable-basic-auth-helpers=LDAP,MSNT,NCSA,PAM,SASL,SMB,YP,DB,POP3,getpwnam,squid_radius_auth,multi-domain-NTLM' '--enable-ntlm-auth-helpers=smb_lm' '--enable-digest-auth-helpers=ldap,password' '--enable-negotiate-auth-helpers=squid_kerb_auth' '--enable-esi' '--disable-translation' '--with-logdir=/var/log/squid' '--with-pidfile=/var/run/squid.pid' '--with-filedescriptors=131072' '--with-large-files' '--with-default-user=squid' '--enable-linux-netfilter' '--enable-ltdl-convenience' '--enable-ssl' '--enable-ssl-crtd' '--enable-arp-acl' 'CXXFLAGS=-DMAXTCPLISTENPORTS=20000' '--with-openssl' '--enable-snmp' '--with-included-ltdl'<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>config :<o:p></o:p></p><p class=MsoNormal>root@box2:~# cat /etc/squid/squid.conf<o:p></o:p></p><p class=MsoNormal>cache_effective_user squid<o:p></o:p></p><p class=MsoNormal>cache_effective_group squid<o:p></o:p></p><p class=MsoNormal>#########################################<o:p></o:p></p><p class=MsoNormal>#dns_nameservers 8.8.8.8<o:p></o:p></p><p class=MsoNormal>#client_dst_passthru off<o:p></o:p></p><p class=MsoNormal>#host_verify_strict off<o:p></o:p></p><p class=MsoNormal>#range_offset_limit -1 <o:p></o:p></p><p class=MsoNormal>#quick_abort_min -1<o:p></o:p></p><p class=MsoNormal>#This is special work for best proxy worker "Ahmed M H Allzaeem"###<o:p></o:p></p><p class=MsoNormal>##https://www.elance.com/s/edit/noshutdown/######<o:p></o:p></p><p class=MsoNormal>########################################################################<o:p></o:p></p><p class=MsoNormal># Lockdown Procedures<o:p></o:p></p><p class=MsoNormal>#auth_param basic program /lib/squid/basic_ncsa_auth /etc/squid/squid_user<o:p></o:p></p><p class=MsoNormal>#acl ncsa_users proxy_auth REQUIRED<o:p></o:p></p><p class=MsoNormal>#http_access allow ncsa_users<o:p></o:p></p><p class=MsoNormal>############################<o:p></o:p></p><p class=MsoNormal>####################################<o:p></o:p></p><p class=MsoNormal>#<o:p></o:p></p><p class=MsoNormal># Recommended minimum configuration:<o:p></o:p></p><p class=MsoNormal>#<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># Example rule allowing access from your local networks.<o:p></o:p></p><p class=MsoNormal># Adapt to list your (internal) IP networks from where browsing<o:p></o:p></p><p class=MsoNormal># should be allowed<o:p></o:p></p><p class=MsoNormal>acl localnet src 10.0.0.0/8 # RFC1918 possible internal network<o:p></o:p></p><p class=MsoNormal>acl localnet src 172.16.0.0/12 # RFC1918 possible internal network<o:p></o:p></p><p class=MsoNormal>acl localnet src xxxxxx/xxxx possible internal network<o:p></o:p></p><p class=MsoNormal>acl localnet src fc00::/7 # RFC 4193 local private network range<o:p></o:p></p><p class=MsoNormal>acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>acl SSL_ports port 443<o:p></o:p></p><p class=MsoNormal>acl Safe_ports port 80 # http<o:p></o:p></p><p class=MsoNormal>acl Safe_ports port 21 # ftp<o:p></o:p></p><p class=MsoNormal>acl Safe_ports port 443 # https<o:p></o:p></p><p class=MsoNormal>acl Safe_ports port 70 # gopher<o:p></o:p></p><p class=MsoNormal>acl Safe_ports port 210 # wais<o:p></o:p></p><p class=MsoNormal>acl Safe_ports port 1025-65535 # unregistered ports<o:p></o:p></p><p class=MsoNormal>acl Safe_ports port 280 # http-mgmt<o:p></o:p></p><p class=MsoNormal>acl Safe_ports port 488 # gss-http<o:p></o:p></p><p class=MsoNormal>acl Safe_ports port 591 # filemaker<o:p></o:p></p><p class=MsoNormal>acl Safe_ports port 777 # multiling http<o:p></o:p></p><p class=MsoNormal>acl CONNECT method CONNECT<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>#<o:p></o:p></p><p class=MsoNormal># Recommended minimum Access Permission configuration:<o:p></o:p></p><p class=MsoNormal>#<o:p></o:p></p><p class=MsoNormal># Deny requests to certain unsafe ports<o:p></o:p></p><p class=MsoNormal>http_access deny !Safe_ports<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># Deny CONNECT to other than secure SSL ports<o:p></o:p></p><p class=MsoNormal>http_access deny CONNECT !SSL_ports<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># Only allow cachemgr access from localhost<o:p></o:p></p><p class=MsoNormal>http_access allow localhost manager<o:p></o:p></p><p class=MsoNormal>http_access deny manager<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># We strongly recommend the following be uncommented to protect innocent<o:p></o:p></p><p class=MsoNormal># web applications running on the proxy server who think the only<o:p></o:p></p><p class=MsoNormal># one who can access services on "localhost" is a local user<o:p></o:p></p><p class=MsoNormal>#http_access deny to_localhost<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>#<o:p></o:p></p><p class=MsoNormal># INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS<o:p></o:p></p><p class=MsoNormal>#<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># Example rule allowing access from your local networks.<o:p></o:p></p><p class=MsoNormal># Adapt localnet in the ACL section to list your (internal) IP networks<o:p></o:p></p><p class=MsoNormal># from where browsing should be allowed<o:p></o:p></p><p class=MsoNormal>http_access allow localnet<o:p></o:p></p><p class=MsoNormal>http_access allow localhost<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># And finally deny all other access to this proxy<o:p></o:p></p><p class=MsoNormal>http_access deny all<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># Squid normally listens to port 3128<o:p></o:p></p><p class=MsoNormal>#http_port 3128<o:p></o:p></p><p class=MsoNormal>######################################<o:p></o:p></p><p class=MsoNormal>################################################<o:p></o:p></p><p class=MsoNormal># Uncomment and adjust the following to add a disk cache directory.<o:p></o:p></p><p class=MsoNormal>#cache_dir ufs /var/cache/squid 100 16 256<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># Leave coredumps in the first cache dir<o:p></o:p></p><p class=MsoNormal>coredump_dir /var/cache/squid<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>#<o:p></o:p></p><p class=MsoNormal># Add any of your own refresh_pattern entries above these.<o:p></o:p></p><p class=MsoNormal>#<o:p></o:p></p><p class=MsoNormal>refresh_pattern ^ftp: 1440 20% 10080<o:p></o:p></p><p class=MsoNormal>refresh_pattern ^gopher: 1440 0% 1440<o:p></o:p></p><p class=MsoNormal>refresh_pattern -i (/cgi-bin/|\?) 0 0% 0<o:p></o:p></p><p class=MsoNormal>refresh_pattern . 0 20% 4320<o:p></o:p></p></div></body></html>