インストール
# yum -y install squid
設定
/etc/squid/squid.conf を編集
# http_port 3128
http_port 8080
acl CONNECT method CONNECT
acl lan src 192.168.1.0/255.255.255.0 ← アクセス制御リスト
http_access allow localhost
http_access allow lan ← 許可
http_access deny all
# forwarded_for on
forwarded_for off ← ローカルIPアドレスを隠す
↓プロキシ経由でアクセスしていることを隠す
request_header_access X-Forwarded-For deny all
request_header_access Via deny all
request_header_access Cache-Control deny all
起動と停止
# /etc/init.d/squid start
# /etc/init.d/squid stop
自動起動の設定
# chkconfig squid on
# chkconfig --list squid
squid 0:off 1:off 2:on 3:on 4:on 5:on 6:off