Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
-
bighandsky
- 帖子: 51
- 注册时间: 2009-11-02 12:02
#1
帖子
由 bighandsky » 2011-02-28 14:29
采用这种方法后通过squid代理访问youku中的连续剧时候出现以下错误提示
这个是在访问youku连续剧的时候出现的错误,其他的只有很少一部分能够访问。
squid代理配置如下:
代码: 全选
http_port 192.168.0.201:808 transparent #代理服务器监听的端口
#cache_dir /var/cache/squid 100 16 32
#缓存目录 大小(兆) 第一级子目录个数 第二级子目录个数
#cache_access_log /var/log/squid/access.log
#cache_log /var/log/squid/cache.log
acl all src 0.0.0.0/0.0.0.0
acl head src 192.168.0.136/255.255.255.255 192.168.0.137/255.255.255.255 192.168.0.210/255.255.255.255 192.168.0.211/255.255.255.255 192.168.0.212/255.255.255.255
#acl normal src 192.168.0.21-192.168.0.99/255.255.255.255
#acl denysite dstdomain tw net
#acl denyip dst 61.136.135.04/255.255. 255.255
#acl dnsport port 53
http_access allow head
#http_access deny denysite
#http_access deny denyip
#http_access allow normal
#http_access deny dnsport
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
Ubuntu 10.04
squid版本2.7
-
thorne
- 帖子: 660
- 注册时间: 2008-10-08 22:01
#2
帖子
由 thorne » 2011-02-28 14:42
百度图片看不到 啊 看不到
-
thorne
- 帖子: 660
- 注册时间: 2008-10-08 22:01
#4
帖子
由 thorne » 2011-02-28 15:29
我的代理的用户也是向我抱怨有这样的问题
当然我自己上youku是毫无问题的
同求解
-
bighandsky
- 帖子: 51
- 注册时间: 2009-11-02 12:02
#5
帖子
由 bighandsky » 2011-03-02 11:49
thorne 写了:我的代理的用户也是向我抱怨有这样的问题
当然我自己上youku是毫无问题的
同求解
对于代理主机来说,上youku是没有问题的,可惜我那个代理的主机很慢,平时我都不怎么动的,我自己也是通过代理机子上网的,
等有空发邮件问squid的作者吧
-
smalloldman
- 帖子: 94
- 注册时间: 2007-12-08 20:45
- 来自: 兰州
#6
帖子
由 smalloldman » 2011-03-06 1:31
我也遇到了这种情况 并且PPlive的某些视频也无法播放了
不过我的系统是pfsense..
-
smalloldman
- 帖子: 94
- 注册时间: 2007-12-08 20:45
- 来自: 兰州
#7
帖子
由 smalloldman » 2011-03-07 10:09
代码: 全选
# Do not edit manually !
http_port 192.168.3.1:3128
http_port 127.0.0.1:80 transparent
icp_port 0
pid_filename /var/run/squid.pid
cache_effective_user proxy
cache_effective_group proxy
error_directory /usr/local/etc/squid/errors/Traditional_Chinese
icon_directory /usr/local/etc/squid/icons
visible_hostname localhost
cache_mgr smalloldman@sohu.com
access_log /var/squid/logs/access.log
cache_log /var/squid/logs/cache.log
cache_store_log none
logfile_rotate 30
shutdown_lifetime 3 seconds
# Allow local network(s) on interface(s)
acl localnet src 192.168.3.0/255.255.255.0
forwarded_for off
httpd_suppress_version_string on
uri_whitespace deny
cache_mem 16 MB
maximum_object_size_in_memory 32 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LRU
cache_dir ufs /var/squid/cache 64 4 256
minimum_object_size 0 KB
maximum_object_size 4 KB
offline_mode off
cache_swap_low 90
cache_swap_high 95
# No redirector configured
# Setup some default acls
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 3128 1025-65535
acl sslports port 443 563
acl manager proto cache_object
acl purge method PURGE
acl connect method CONNECT
acl dynamic urlpath_regex cgi-bin \?
acl allowed_subnets src 192.168.3.0/24
cache deny dynamic
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !safeports
http_access deny CONNECT !sslports
# Always allow localhost connections
http_access allow localhost
request_body_max_size 0 KB
reply_body_max_size 0 deny all
delay_pools 1
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_initial_bucket_level 100
delay_access 1 allow all
# Setup allowed acls
# Allow local network(s) on interface(s)
http_access allow allowed_subnets
http_access allow localnet
# Default block all to be sure
http_access deny all
我的配置文件 现在访问已经正常了
-
bighandsky
- 帖子: 51
- 注册时间: 2009-11-02 12:02
#8
帖子
由 bighandsky » 2011-03-28 16:54
非常感谢smalloldman
还没有试验过,希望能够通过吧
如果能够给出问题到底是出在设置的什么地方就好了!