squid3配置与使用
来源:互联网 发布:课表安排软件 编辑:程序博客网 时间:2024/05/18 02:18
squid代理服务器加密码
在配置文件中加入
auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid3/squid_passwd
其中squid_passwd使用passwd产生的密码文件。
acl ncsa_users prox_auth REQUIRED
http_access allow ncsa_users
这样就可以了
我遇到的一个问题
在某些机器上就是不能连接代理,但是个别机器又可以使用。
squid3 -s 提示警告
WARNING: (B) '::/0' is a subnetwork of (A) '::/0'WARNING: because of this '::/0' is ignored to keep splay tree searching predictable
WARNING: You should probably remove '::/0' from the ACL named 'all'
编辑配置注释掉下面的行警告消失,问题得到解决。
acl ncsa_users proxy_auth REQUIRED
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
#acl All src all (注释掉)
http_access allow ncsa_users
#http_access allow All (注释掉)
一些常用命令参数
squid3 -k shutdown (停止服务器)
squid3 -k reconfigure (重新启动装入新的配置)
squid3 -s (后台启动服务器)
squid3 -N -d1 (前台启动并且打印日志)
附资料
http://zyan.cc/book/squid/index.html
- squid3配置与使用
- Squid3反向代理安装与配置
- Squid3反向代理安装与配置
- Squid3.0反向代理的安装与配置
- Linux下Squid3.0反向代理的安装与配置
- squid3配置要点
- 代理服务器Squid3的配置
- ubuntu squid3 配置
- [ubuntu]squid3代理配置
- Squid3.0的安装配置
- Squid3.0的安装配置
- Squid3.1.7源码安装和配置笔记
- ubuntu 设置为代理服务器使用squid3
- squid3配置文件
- Ubuntu14.04代理服务squid3的安装和设置并配置android studio代理
- squid3加速web服务器
- windows 下安装squid3
- squid3正向代理
- hibernate 的 CascadeType 属性
- 设置SUID SGID
- 并发编程2-安全的发布对象
- 国内安卓app完整渠道列表-2015年新年版
- 用户激励—积分体系分析
- squid3配置与使用
- iOS蓝牙CoreBluetooth介绍
- linux中的线程同步:生产者、消费者问题
- Yii中CDbCriteria常用总结
- __asm__ __volatile__内嵌汇编用法简述
- weblogic 下异常 org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken
- Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could no
- IOS第六天——Obj-C的内存管理初步认识
- Android系统将变成下一个微软操作系统?