LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 720|回复: 1

请分析一下我的squid.conf有什么问题没有,谢谢

[复制链接]
发表于 2003-9-10 09:38:49 | 显示全部楼层 |阅读模式
我试了一下,
1。私网机器设置代理192.168.1.1:3333可以上网
2。不设置也可以上网,

基本实现我的要求,就是不知真正的性能如何,请高手品评一下:

http_port 3333
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

#
cache_mem 64 MB
maximum_object_size 4096 KB
cache_dir ufs /usr/local/squid/cache 2000 16 256
cache_access_log /usr/local/squid/var/logs/squid/access.log
cache_log /usr/local/squid/var/logs/squid/cache.log

#user&group
cache_effective_user squid
cache_effective_group squid

#
visible_hostname star.starpointcomm.com

pid_filename /var/run/squid.pid
dns_nameservers 192.168.1.1

acl starpointcomm src 192.168.1.0/24
acl all src 0.0.0.0/0
http_access allow starpointcomm
http_access deny all
 楼主| 发表于 2003-9-10 10:05:10 | 显示全部楼层

请解释一下squid透明代理和httpd加速的关系

我看到的配置是
http_port 3333
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
再配置iptables重定向
iptables -t nat -A PREROUTING -s 192.168.1.0/24 -p tcp --dport 80 -j DNAT --to 192.168.1.1:3333

这样的做法确实可以。
我不太明白什么是http加速,什么是透明代理,他们能共存吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表