如何部署一个squid代理
2016-04-13 00:00
495 查看
摘要: linux squid代理安装过程
1. 检查是否安装 rpm -qa|grep squid
2.安装 yum -y install squid
3.chkconfig --level 35 squid on //开机启动
mv /etc/squid/squid.conf /etc/squid/squid.conf.bak
4.修改配置文件 vim /etc/squid/squid.conf
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
via off
request_header_access X-Forwarded-For deny all
request_header_access user-agent deny all
reply_header_access X-Forwarded-For deny all
reply_header_access user-agent deny all
http_port 8080
http_access allow all
access_log /var/log/squid/access.log
visible_hostname squid.david.dev
cache_mgr 2151@qq.com
5.初始化squid –z
6.启动 service squid start
7.查看 squid access 日志 tail -f /var/log/squid/access.log
8.squid -s reload修改配置后重载
1. 检查是否安装 rpm -qa|grep squid
2.安装 yum -y install squid
3.chkconfig --level 35 squid on //开机启动
mv /etc/squid/squid.conf /etc/squid/squid.conf.bak
4.修改配置文件 vim /etc/squid/squid.conf
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
via off
request_header_access X-Forwarded-For deny all
request_header_access user-agent deny all
reply_header_access X-Forwarded-For deny all
reply_header_access user-agent deny all
http_port 8080
http_access allow all
access_log /var/log/squid/access.log
visible_hostname squid.david.dev
cache_mgr 2151@qq.com
5.初始化squid –z
6.启动 service squid start
7.查看 squid access 日志 tail -f /var/log/squid/access.log
8.squid -s reload修改配置后重载
相关文章推荐
- squid代理
- Squid简介以及代理等配置
- nginx反向代理同一主机多个网站域名
- 均衡负载和反向代理
- nginx页面加载不全或提示502bad gateway,nginx反向代理端口号丢失
- 架构高性能网站秘笈(四)——反向代理缓存
- Nginx服务器作反向代理时的缓存配置要点解析
- nginx1.8.1反向代理、负载均衡功能的实现
- nginx1.8.1反向代理、负载均衡功能的实现
- Nginx反向代理后端多个Tomcat、Nginx+PHP服务器(Nginx的代理和负载功能) 推荐
- Linux学习笔记12——配置ftp、squid、Tomcat、Samba、MySQL主从
- [源码]SQUID的简单内存调试方法
- Nginx反向代理
- Centos7之Nginx反向代理安装
- 为odoo安装反向代理
- 架构高性能网站秘笈(四)——反向代理缓存
- 架构高性能网站秘笈(四)——反向代理缓存
- nginx初步学习-配置反向代理
- Nginx简易配置文件(二)(反向代理)
- 大型网站之网站静态化(反向代理)