您的位置:首页 > 其它

内网机器访问外网代理设置

2016-07-12 13:37 288 查看
1.在能够访问外网的机器上安装squid

2.配置

cd /etc/squid/

cp squid.conf squid.conf_bak

http_access deny all 将其修改为 http_access allow all

service squid start

netstat -nltp

0 0 0.0.0.0:3128 0.0.0.0:* LISTEN 22862/(squid)

3.配置不能访问外网的机器代理

在其他有需要访问外网却没有外网的机器上设置其访问外部网络的代理机器

export http_proxy=http://192.168.1.22:3128    (要能ping通可以访问外网的ip)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: