CentOS6.2下64位squid 透明代理配置过程

本文详细介绍如何通过yum安装Squid代理服务器,并提供具体的配置示例,包括设置监听端口、日志文件路径及权限控制等。文章还介绍了如何在不同位数的系统中进行认证参数的设置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

 
yum install squid 
 
 
在 /etc/squid/passwd 中写入:
test:cuUEnEwyMTcGY
帐号test密码:1234
 
 
vi /etc/squid/squid.conf
 
http_port 3128
#icp_prot 3130
cache_dir ufs /var/spool/squid 100 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
pid_filename /var/run/squid.pid
#auth_param basic children 5
#auth_param basic realm Squid proxy-caching web server
#auth_param basic credentialsttl 2 hours
#http_access allow all
cache_effective_user squid
cache_effective_group squid
cache_mgr ppabc@126.com
visible_hostname feng-squid
auth_param basic program  /usr/lib64/squid/ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic credentialsttl 2 hours
acl auth_user proxy_auth REQUIRED
http_access allow auth_user
http_access deny all
 
 
32位使用
auth_param basic program  /usr/lib/squid/ncsa_auth /etc/squid/passwd
64位使用
auth_param basic program  /usr/lib64/squid/ncsa_auth /etc/squid/passwd
 
 
 
 
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值