VideoCache

Video cache and anonymous proxy running ad zapper

by Anonymous on 6 Apr 2009

I think I have tried just about everything I could think of to get this to work. Can someone point me in the right direction? I can get the videocache to work, but then the ad zapper does not work. I think "url_rewrite_access" is the problem, but I am lost. Here is my squid.conf (w/o the videocache mods added):

acl ads dstdom_regex "/etc/squid/ad_block.txt"
http_access deny ads
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.0.0.0/8 # RFC1918 internal network
acl localnet src 172.16.0.0/12  # RFC1918 internal network
acl localnet src 192.168.0.0/16 # RFC1918 internal network
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
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl our_networks src 192.168.1.0/24 5.0.0.0/8  
http_access allow our_networks
acl ncsaauth proxy_auth REQUIRED
http_access allow ncsaauth
http_access allow localnet
http_access allow localhost
http_access deny all
icp_access allow localnet
icp_access deny all
htcp_access allow localnet
htcp_access deny all
http_port 3128
acl ip1 myip 192.168.1.200
tcp_outgoing_address 192.168.1.200 ip1
acl ip2 myip 192.168.1.201
tcp_outgoing_address 192.168.1.201 ip2
acl ip3 myip 192.168.1.202
tcp_outgoing_address 192.168.1.202 ip3
acl ip4 myip 192.168.1.203
tcp_outgoing_address 192.168.1.203 ip4
acl ip5 myip 192.168.1.204
tcp_outgoing_address 192.168.1.204 ip5
hierarchy_stoplist cgi-bin ?
cache_mem 256 MB
cache_dir ufs /var/spool/squid 4000 16 256
access_log /var/log/squid/access.log squid
refresh_pattern ^ftp:       1440    20% 10080
refresh_pattern ^gopher:    1440    0%  1440
refresh_pattern (cgi-bin|\\?)   0   0%  0
refresh_pattern .       0   20% 4320
cache_mgr conman@conman.com 
icp_port 3130
forwarded_for off
coredump_dir /var/spool/squid
request_header_access Allow allow all 
request_header_access Authorization allow all 
request_header_access WWW-Authenticate allow all 
request_header_access Proxy-Authorization allow all 
request_header_access Proxy-Authenticate allow all 
request_header_access Cache-Control allow all 
request_header_access Content-Encoding allow all 
request_header_access Content-Length allow all 
request_header_access Content-Type allow all 
request_header_access Date allow all 
request_header_access Expires allow all 
request_header_access Host allow all 
request_header_access If-Modified-Since allow all 
request_header_access Last-Modified allow all 
request_header_access Location allow all 
request_header_access Pragma allow all 
request_header_access Accept-Charset allow all 
request_header_access Accept-Encoding allow all 
request_header_access Accept-Language allow all 
request_header_access Content-Language allow all 
request_header_access Mime-Version allow all 
request_header_access Retry-After allow all 
request_header_access Title allow all 
request_header_access Connection allow all 
request_header_access Proxy-Connection allow all 
request_header_access User-Agent allow all 
request_header_access Cookie allow all 
request_header_access All deny all 
redirect_program /usr/local/bin/squid_redirect

1 Answers

by Kulbir Saini on 6 Apr 2009

Anonymous,

I think the tutorial "Install with SquidGuard + AdZapper + FreeBSD" will be of help to you.

Thank You!

You need to sign in. Please sign in to add answer to this question.