Squid problemer
Jeg sidder med et projekt på arbejde, jeg skal sætte en transparant proxy op, og det køre ikke helt...Jeg synters ikke det virker som om at den cacher noget som helst...
Her er mit script:
#!/bin/bash
http_port 3128
icp_port 0
cache_peer h2.unix-lab.dk parent 3128 0 default
#cache_peer 80.166.87.205 parent 3128 0 no-query default
#hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 700 MB
cache_dir ufs /proxy_cache 2048 16 256
maximum_object_size 700 MB
maximum_object_size_in_memory 256 KB
cache_log /var/log/squid/cache.log
cache_access_log /var/log/squid/access.log
cache_store_log /var/log/squid/store.log
dns_nameservers 192.168.1.1
acl all src 0.0.0.0/0.0.0.0
acl lan src 192.168.1.0/255.255.255.0
#acl allowed_hosts scr 192.168.1.0/255.255.255.0
acl localhost src 127.0.0.1/255.255.255.255
acl Safe_ports port 1024-65535
acl Safe_ports port 80
acl Safe_ports port 53
acl Safe_ports port 21
acl Safe_ports port 20
acl Safe_ports port 22
acl Safe_ports port 443
acl Safe_ports port 25
acl Safe_ports port 110
never_direct allow lan
acl SSL_ports port 443 563
acl CONNECT method CONNECT
#http_access allow manager localhost
#http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#http_access deny wordlist
#http_access deny wordfil
http_access allow localhost
http_access allow lan
http_access deny all
cache_mgr root@h2.unix-lab.dk
#icp_access allow all
#cache_effective_user squid
#cache_effective_group squid
visible_hostname h2.unix-lab.dk