(1)A机器,IP:yy.yy.yy.yy 安装squid
yum install squid
vi /etc/squid/squid.conf
acl allowed_ip src xx.xx.xx.xx
http_access allow allowed_ip
http_access deny all
systemctl restart squid
开放3128端口
(2)B机器,IP:xx.xx.xx.xx,
export http_proxy=http://yy.yy.yy.yy:3128
export https_proxy=http://yy.yy.yy.yy:3128
sdk install