# ポート番号3128なども使う場合があります
http_port 8080
# FTPアドレスの場合PASVにするか
ftp_passive on
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
# キャッシュのディレクトリー
#2048はキャッシュサイズ(2GB)
cache_dir ufs /usr/local/squid/cache 2048 16 256
# アクセス制限
acl local src 192.168.1.0/24
acl all src 0.0.0.0/0
http_access allow local
http_access deny all
icp_access allow local
icp_access deny all
# ftpアドレスの場合anonymousでパスワードに
# メールアドレスを送るデフォルト
ftp_user freebsd@hogehoge.org
# squidを動作させるユーザ cache_effective_user squid
cache_effective_group squid
# 通過させる内容(ローカル名やIPなどを隠す)
# 通常はこの下はなくてもよい
# 以下は最低限これくらい流さないとWindowsUPDATEや掲示板などに書き込めない header_access Allow allow all
header_access Authorization allow all
header_access Cache-Control allow all
header_access Content-Encoding allow all
header_access Content-Length allow all
header_access Content-Type allow all
header_access Expires allow all
header_access If-Modified-Since allow all
header_access Last-Modified allow all
header_access Location allow all
header_access Pragma allow all
header_access Accept allow all
header_access Accept-Charset allow all
header_access Accept-Encoding allow all
header_access Accept-Language allow all
header_access Mime-Version allow all
header_access Retry-After allow all
header_access Title allow all
header_access Connection allow all
header_access Proxy-Connection allow all
header_access Referer allow all
header_access Server allow all
header_access User-Agent allow all
header_access Cookie allow all
forwarded_for off
#ホスト名
visible_hostname hogehoge.org |