跳板机上设置
1、squid配置
$vi /etc/squid/squid.conf
设置
# And finally deny all other access to this proxy by benjen
http_access allow all
# Squid normally listens to port 3128
http_port 10.47.118.128:3128
启动
$service squid start
查看日志:
$cd /var/log/squid
2、客户机配置
$vi /etc/yum/conf增加
proxy=http://10.47.118.128:3128
$vi /etc/profile
#set proxy
http_proxy=10.47.118.128:3128
https_proxy=10.47.118.128:3128
ftp_proxy=10.47.118.128:3128
export http_proxy https_proxy ftp_proxy
$source profile