【问题标题】:squid proxy client setup in linux machinelinux机器中的squid代理客户端设置
【发布时间】:2016-04-29 04:14:38
【问题描述】:

在 linux 机器中设置 squid 代理客户端的正确设置是什么我按照文档设置导出变量如下

bash $ export http_proxy="http://10.20.5.48:3128"   
bash $ ping google.com
PING google.com (74.125.228.197) 56(84) bytes of data.
^C
--- google.com ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 922ms

bash $ export http_proxy="http://10.20.5.48:3128/" 
bash $ ping google.com
PING google.com (173.194.123.110) 56(84) bytes of data.

bash $ export HTTP_PROXY="http://10.20.5.48:3128"
bash $ ping google.com                           
PING google.com (74.125.228.196) 56(84) bytes of data.
^C
--- google.com ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1086ms

bash $ export HTTP_PROXY="http://10.20.5.48:3128/"
bash $ ping google.com                            
PING google.com (74.125.228.195) 56(84) bytes of data.
^C
--- google.com ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1160ms

squid 服务器在端口 3128 上运行并且可以访问,并且没有防火墙或 acl squid.conf 也有问题

bash $ telnet 10.20.5.48 3128
Trying 10.20.5.48...
Connected to 10.20.5.48.
Escape character is '^]'.

当我更改 yum.conf 以使用具有相同服务器和 IP 的代理时,yum 配置工作

【问题讨论】:

    标签: linux proxy redhat squid sysadmin


    【解决方案1】:

    Ping 不使用 http-proxy。 尝试 GET / HTTP/1.1 Host: google.com 在您的 telnet 会话中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-05-12
      • 1970-01-01
      • 2013-01-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多