編集Top > squid
squid2.613
# cd /usr/ports/www/squid
# make install clean
# vi /usr/local/etc/squid/squid.conf
http_port 8080
acl localnet src 192.168.0.0/255.255.255.0
http_access allow localnet
forwarded_for off
visible_hostname srv.raj.homeip.net
httpd_accel_port 80
httpd_accel_host
cache mem 8 MB
maximum object size 4098 KB
cache_dir /usr/local/squid/cache 100 16 255
reference age 1 month
透過
httpd_accel_single_host on
httpd_accel_port 80
httpd_accel_with proxy on
httpd_accel_uses_host_header on
ブラックリスト
acl black url_regex "/etc/squid/blacklist.txt"
http_access deny bleck
# vi /etc/squid/blacklist.txt
http://*~~~*
# vi /etc/squid/errors
# vi /usr/share/squid/errors/Japanese/etc/squid/errors
/var/log/squid/~
# squid -Z
# vi /etc/rc.conf
squid_enable="YES"
最終更新:2008年10月20日 10:04