Chinaunix首页 | 论坛 | 博客
  • 博客访问: 674606
  • 博文数量: 463
  • 博客积分: 40000
  • 博客等级: 大将
  • 技术积分: 4580
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-15 16:47
文章分类

全部博文(463)

文章存档

2011年(1)

2008年(462)

我的朋友

分类:

2008-10-15 16:53:30


  内核版本: Linux 2.2
  Squid版本: Squid-2.3.stable2
  ()
  发行版本: Redhat Linux 6.0
  
  1. ,编译,安装Squid略
  注意:运行squid作为nobody,不能用root.
  
  假定squid home目录为/usr/local/squid/
  假定squid source目录在/tmp/squid-2.3.STABLE2
  
  2. # cd /tmp/squid-2.3.STABLE2/auth_modules/NCSA
  # make ncsa_auth
  
  3. 拷贝生成的执行文件ncsa_auth到squid执行文件目录
  # cp ncsa_auth /usr/local/squid/bin
  
  4. 从Apache软件包中得到程序htpasswd
  
  5.用htpasswd生成供Squid利用的用户名和密码认证数据库文件
  
  #htpasswd -c /usr/local/squid/etc/passwd
  
  6. 加其它更多的用户
  #htpasswd /usr/loal/squid/etc/passwd
  
  7. 修改squid.conf,enable ncsa_auth用户认证功能
  [root@ etc]# more squid.conf | grep ncsa_auth
  authenticate_program /usr/local/squid/bin/ncsa_auth /usr/local/squid/etc/passwd
  
  8.修改ACL部分,象下面这样:
  [root@ etc]# more squid.conf | grep jephe
  acl isd proxy_auth jephe bob jicon
  http_access allow isd
【责编:admin】

--------------------next---------------------

阅读(393) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~