当前位置: 移动技术网 > 科技>操作系统>Linux > squid正向代理使用

squid正向代理使用

2019年02月18日  | 移动技术网科技  | 我要评论

朱桦整容前照片,赵誉博扒皮,莫言演讲稿

 环境:
  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默认代理端口,此设置默认为所有协议进行代理

 

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网