快捷搜索:   nginx

squid 透明代理配置文件

http_port 10.50.50.254:3128   transparent
cache_mem 1000 MB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /opt/cache/squid 8000 16 256
cache_access_log /usr/local/squid/var/logs/access.log
cache_store_log /usr/local/squid/var/logs/store.log
dns_nameservers 210.21.4.130
maximum_object_size 409600 KB
maximum_object_size_in_memory 64000 KB
emulate_httpd_log on
ipcache_size 1024
ipcache_low 90
ipcache_high 95
fqdncache_size 1024
forwarded_for off
coredump_dir /opt/cache/squid/coredump

http_port 80
httpd_accel_host 10.100.100.100
#httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_single_host on
httpd_accel_uses_host_header off

acl 0 src 192.168.0.0/24
acl 1 src 192.168.1.0/24
acl 60 src 10.60.60.0/24
acl 100 src 10.100.100.0/24

http_access allow 0
http_access allow 1
http_access allow 60
http_access allow 100

cache_effective_user squid
cache_effective_group squid
cache_mgr
visible_hostname 10.50.50.254

顶(0)
踩(0)

您可能还会对下面的文章感兴趣:

最新评论