LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-15-2012, 02:11 AM   #1
ACiD GRiM
LQ Newbie
 
Registered: Mar 2009
Posts: 17

Rep: Reputation: 0
Squid intercept proxy: Can't play youtube videos while logged in


I've been having a very difficult getting squid to play nicely with youtube while logged in. I always get "an error has occured" unless I log out, then youtube works just fine. I've tried numerous configuration changes to try to get it to play, and I'm looking into icap to see if it may help, but I'm sure there's something simple I'm missing. I'm not really interested in caching dynamic content or even youtube right now, I just want to at least get squid making direct requests on behalf of my clients.

I'm using a WCCPv2 infrastructure, and this is for personal use.

Below is my current config:

Code:
#
# Recommended minimum configuration:
#
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8	# RFC1918 possible internal network
acl localnet src 172.16.0.0/12	# RFC1918 possible internal network
acl localnet src 192.168.0.0/16	# RFC1918 possible internal network
acl localnet src fc00::/7       # RFC 4193 local private network range
acl localnet src fe80::/10      # RFC 4291 link-local (directly plugged) machines

tcp_outgoing_address 192.168.254.2
udp_outgoing_address 192.168.254.2

acl SSL_ports port 443
acl Safe_ports port 80		# http
acl Safe_ports port 21		# ftp
acl Safe_ports port 443		# https
acl Safe_ports port 70		# gopher
acl Safe_ports port 210		# wais
acl Safe_ports port 1025-65535	# unregistered ports
acl Safe_ports port 280		# http-mgmt
acl Safe_ports port 488		# gss-http
acl Safe_ports port 591		# filemaker
acl Safe_ports port 777		# multiling http
acl CONNECT method CONNECT

#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager

# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
http_access deny to_localhost

#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#
#include /etc/squid/acl.extended.conf

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost

# And finally deny all other access to this proxy
http_access deny all

# Squid normally listens to port 3128
http_port 192.168.254.2:3080 intercept

# We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ? &
strip_query_terms off 

# Uncomment and adjust the following to add a disk cache directory.
cache_dir aufs /mnt/data/squid 9000 16 256
cache_mem 256 MB
maximum_object_size_in_memory 128 KB

# Leave coredumps in the first cache dir
coredump_dir /mnt/data/squid

# WCCP Router IP
wccp2_router 192.168.254.1

# forwarding 1=gre 2=l2
wccp2_forwarding_method 1

# GRE return method gre|l2
wccp2_return_method 1

# Assignment method hash|mask
wccp2_assignment_method hash

# standard web cache, no auth
wccp2_service dynamic 52
wccp2_service_info 52 protocol=tcp priority=240 ports=80

maximum_object_size 700 MB
minimum_object_size 4 KB

#icap_enable on
icap_preview_size -1
server_persistent_connections off
icap_service service_req reqmod_precache 1 routing=on  icap://127.0.0.1:1344/request
adaptation_access service_req allow all

acl infoaccess dstdomain icap.info
icap_service service_info reqmod_precache 1 routing=on icap://127.0.0.1:1344/info
adaptation_service_set class_info service_info
adaptation_access class_info deny !infoaccess

half_closed_clients off
quick_abort_min 0 KB
quick_abort_max 0 KB
vary_ignore_expire on
reload_into_ims on
log_fqdn off
memory_pools off
cache_swap_low 98
cache_swap_high 99
max_filedescriptors 65536
fqdncache_size 16384
retry_on_error on
offline_mode off
pipeline_prefetch on

# Add any of your own refresh_pattern entries above these.
#include /etc/squid/refresh.extended.conf
refresh_pattern -i (/cgi-bin/|\?|\&) 0 0% 0
refresh_pattern .            0 20% 4320
 
Old 06-26-2012, 07:15 AM   #2
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Why do you have two ACLs for port 443?

acl SSL_ports port 443
acl Safe_ports port 443 # https
 
Old 09-13-2012, 07:31 PM   #3
darqtanian
LQ Newbie
 
Registered: Aug 2011
Location: Philippines
Distribution: CentOS
Posts: 6

Rep: Reputation: Disabled
Hi Rch,
I believe that's the squid conf default.

by the way acid_grim, have you figured out your problem?
 
Old 09-14-2012, 03:10 AM   #4
ACiD GRiM
LQ Newbie
 
Registered: Mar 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Believe it or not it was my client computer the whole time. After pulling my hair out for a week, I happended to open my laptop on the same network and WHAT!?! it's works! Not sure what could be causing that since I had the same version of Fedora 17 software on both computers, so a reinstall did infact fix the issue. Wierd...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't play youtube videos vinic222 Linux - Newbie 29 10-13-2010 05:05 PM
Do you have to use flash player to play youtube videos? ilikelinux55 Linux - Newbie 15 05-20-2010 08:48 AM
[SOLVED] Not able to upload videos to youtube using the Squid proxy server chandramani_yadav Linux - Server 4 08-13-2009 02:26 AM
How to play youtube videos under slackware dissociative Slackware 2 07-27-2007 10:14 PM
youtube videos wont play dark_negotiator Fedora 7 07-02-2007 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration