前面曾经写过两篇与 APN 代理有关的文章,自己的APN 也分享给朋友们使用了有1个月,从自己搭建到公测至今,已经有4个月了。可以说APN代理确实要方便太多,但是这当中也发现一些小问题:土豆,优酷无法在 iOS 上观看。如果你是使用 squid 2.7 ,可以加入以下设定解决,起主要作用的是高亮部分:
#Enable Anonymizer (Anonymous Proxy)
acl all src 0.0.0.0/0
#header_replace User-Agent anonymous
forwarded_for off
header_access Accept allow all
header_access Accept-Charset allow all
header_access Accept-Encoding allow all
header_access Accept-Language allow all
header_access Accept-Ranges allow all
header_access Age allow all
header_access Allow allow all
header_access Authorization allow all
header_access Cache-Control allow all
header_access Connection allow all
header_access Content-Base allow all
header_access Content-Disposition allow all
header_access Content-Encoding allow all
header_access Content-Language allow all
header_access Content-Length allow all
header_access Content-Location allow all
header_access Content-MD5 allow all
header_access Content-Range allow all
header_access Content-Type allow all
header_access Cookie allow all
header_access Date allow all
header_access ETag allow all
header_access Expires allow all
header_access From allow all
header_access Host allow all
header_access If-Match allow all
header_access If-Modified-Since allow all
header_access If-None-Match allow all
header_access If-Range allow all
header_access Last-Modified allow all
header_access Link allow all
header_access Location allow all
header_access Max-Forwards allow all
header_access Mime-Version allow all
header_access Pragma allow all
header_access Proxy-Authenticate allow all
header_access Proxy-Authentication-Info allow all
header_access Proxy-Authorization allow all
header_access Proxy-Connection allow all
header_access Public allow all
#header_access Range allow all
header_access Referer allow all
header_access Request-Range allow all
header_access Retry-After allow all
header_access Server allow all
header_access Set-Cookie allow all
header_access Title allow all
header_access Transfer-Encoding allow all
header_access Upgrade allow all
header_access User-Agent allow all
header_access Vary allow all
header_access Via deny all
header_access Warning allow all
header_access WWW-Authenticate allow all
header_access Authentication-Info allow all
header_access X-Cache allow all
header_access X-Cache-Lookup allow all
header_access X-Forwarded-For allow all
header_access X-Request-URI allow all
header_access X-Squid-Error allow all
header_access All deny all
。
还有个问题,就是 pps , pptv 收看时在 iOS上也有问题,这个的修改参数还没有试验出来,我将仍然在这个帖子中更新方法。
#Enable Anonymizer (Anonymous Proxy)
acl all src 0.0.0.0/0
#header_replace User-Agent anonymous
forwarded_for off
header_access Accept allow all
header_access Accept-Charset allow all
header_access Accept-Encoding allow all
header_access Accept-Language allow all
header_access Accept-Ranges allow all
header_access Age allow all
header_access Allow allow all
header_access Authorization allow all
header_access Cache-Control allow all
header_access Connection allow all
header_access Content-Base allow all
header_access Content-Disposition allow all
header_access Content-Encoding allow all
header_access Content-Language allow all
header_access Content-Length allow all
header_access Content-Location allow all
header_access Content-MD5 allow all
header_access Content-Range allow all
header_access Content-Type allow all
header_access Cookie allow all
header_access Date allow all
header_access ETag allow all
header_access Expires allow all
header_access From allow all
header_access Host allow all
header_access If-Match allow all
header_access If-Modified-Since allow all
header_access If-None-Match allow all
header_access If-Range allow all
header_access Last-Modified allow all
header_access Link allow all
header_access Location allow all
header_access Max-Forwards allow all
header_access Mime-Version allow all
header_access Pragma allow all
header_access Proxy-Authenticate allow all
header_access Proxy-Authentication-Info allow all
header_access Proxy-Authorization allow all
header_access Proxy-Connection allow all
header_access Public allow all
#header_access Range allow all
header_access Referer allow all
header_access Request-Range allow all
header_access Retry-After allow all
header_access Server allow all
header_access Set-Cookie allow all
header_access Title allow all
header_access Transfer-Encoding allow all
header_access Upgrade allow all
header_access User-Agent allow all
header_access Vary allow all
header_access Via deny all
header_access Warning allow all
header_access WWW-Authenticate allow all
header_access Authentication-Info allow all
header_access X-Cache allow all
header_access X-Cache-Lookup allow all
header_access X-Forwarded-For allow all
header_access X-Request-URI allow all
header_access X-Squid-Error allow all
header_access All deny all
。
还有个问题,就是 pps , pptv 收看时在 iOS上也有问题,这个的修改参数还没有试验出来,我将仍然在这个帖子中更新方法。
评论
发表评论
读过之后是不是文思泉涌了?,快快让大家拜读一下你的高见吧~~~