Erlo

squid正向代理使用

2019-02-17 17:25:35 发布   331 浏览  
页面报错/反馈
收藏 点赞

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

 

登录查看全部

参与评论

评论留言

还没有评论留言,赶紧来抢楼吧~~

手机查看

返回顶部

给这篇文章打个标签吧~

棒极了 糟糕透顶 好文章 PHP JAVA JS 小程序 Python SEO MySql 确认