首页 > 其他 > 详细

squid正向代理使用

时间:2019-02-17 17:49:36      阅读:205      评论:0      收藏:0      [点我收藏+]

 环境:
  Squid Cache: Version 3.5.20

  操作系统: centos7.6 

 

squid安装配置

  yum install -y squid

       systemctl  start  squid

       systemctl  enable squid

       配置文件:/etc/squid//squid.conf

         默认端口3128 ;软件默认允许私网10.0.0.0/8,192.168.0.0/16,172.16.0.0/12 使用squid服务器;若源IP为公网ip,最好把http_access deny all 更改为 http_access permit all

       

centos客户端:

  url wget等需要使用环境变量; yum等应用需要单独设置

  [root@test01 ~]# cat /etc/profile.d/proxy.sh 

  export http_proxy=http://192.168.0.71:3128
  export https_proxy=http://192.168.0.71:3128
  export ftp_proxy=http://192.168.0.71:3128
  export no_proxy=http://192.168.0.

  source /etc/profile

windows系统:

  浏览器设置:

  3128端口为squid默认代理端口,此设置默认为所有协议进行代理

技术分享图片

技术分享图片

 

squid正向代理使用

原文:https://www.cnblogs.com/ebean/p/10391565.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!