- 论坛徽章:
- 0
|
1.squid设好之后,有的网站解析失败,而用iptables 直接出就没有问题,
2.squid有时侯变得很慢,不知道是什么原因.
恳请赐教.谢谢!
squid设置如下:
http_port 192.168.0.11:808
cache_mem 20 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size = 1024
cache_dir ufs /etc/squid/var/cache 100 16 256
cache_access_log /etc/squid/var/logs/access.log
cache_log /etc/squid/var/logs/cache.log
ftp_user squid@
acl all src 0.0.0.0/0.0.0.0
acl ourclient src 192.168.0.0/24
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 #http
memory_pools on
memory_pools_limit 256MB
acl Safe_ports port 21 #ftp
acl Safe_ports port 23
acl Safe_ports port 25
acl Safe_ports port 110
acl Safe_ports port 443 563 #ftp
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 480
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow ourclient
http_access allow Safe_ports
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
icp_access allow all |
|