由于要进行网速限制,所以我用的squid是用源码编译的,但是经过好几番修改,squid启动起来了,防火墙规则也写了一条,但是就是不能代理客户机上网,我做的是透明代理,下面是我的配置文件,自己写的,大家帮看看有什么错:
[root@localhost /]# cat /etc/squid/squid.conf
http_port 192.168.11.112:3128 transparent
cache_mem 800 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 32768 KB
maximum_object_size_in_memory 128 KB
visible_hostname cosiway
cache_dir ufs /usr/local/squid/cache 1200 16 256
cache_access_log /usr/local/squid/logs/access.log
cache_log /usr/local/squid/logs/cache.log
dns_nameservers 211.167.97.67
acl clients src 172.16.16.0/24
http_access allow clients
# http_access deny all
cache_effective_user nobody
cache_effective_group nobody
http_access allow all
ipcache_size 1024
ipcache_low 90
ipcache_high 95
fqdncache_size 1024
# cache_replacement_policy lru # qingchu changshijiande weifangwende huancun
# memory_replacement_policy lru # qing neicun
delay_pools 1
delay_class 1 1
delay_access 1 allow all
delay_parameters 1 50000/50000
delay_initial_bucket_level 50
pid_filename /usr/local/squid/logs/squid.pid
我的目的是代理172.16.16.0/24 上网,请大家看看有什么错,谢谢了