一、安装环境
1、硬件环境:
CPU: P4 2.8
memory:512M
2、软件环境:
OS: FreeBSD 6.0-RELEASE
compiler: gcc 3.4.4
perl 5.8.7
make 3.81
二、所需软件
squid-2.5.STABLE13
三、安装软件
1.安装squid-2.5.STABLE13
tar -zxvf squid-2.5.STABLE13.tar.gz
cd squid-2.5.STABLE13
./configure --prefix=/usr/local/squid \
--enable-removal-policies --disable-internal-dns \
--enable-storeio=ufs,null \
--enable-auth="basic" \
--enable-baisc-auth-helpers="NCSA"
make
make install
cd helpers/basic_auth/NCSA/
make
make install
生成basic 认证密码文件
/usr/local/apache2/bin/htpasswd -c /usr/local/squid/etc/passwd livedoorcn
2.配置squid
修改squid.conf
cp /usr/local/squid/etc/squid.conf /usr/local/squid/etc/squid.conf.bak
vi /usr/local/squid/etc/squid.conf
不创建缓存设置
cache_dir null /tmp
http 端口 3128改为1108
加上basic 认证
auth_param basic program /usr/local/squid/libexec/ncsa_auth /usr/local/squid/etc/passwd
Retrieved from ""
阅读(614) | 评论(0) | 转发(0) |