| # yum install squid |
# 使用するポート番号を8080に設定 |
| acl MYAREA src 192.168.0.0/24 |
| acl REAL_AUDIO port 554 |
| acl EIZOU dst 192.168.0.20 |
| # S:日 M:月 T:火 W:水 H:木 F:金 A:土 acl WORKING time MTWHF 08:30-17:30 |
| http_access allow !WORKING MYAREA REAL_AUDIO EIZOU |
| ^http://.*sex.* ^http://.*realgals\.com.* |
| # rm /etc/squid/errors # ln -s /usr/share/squid/errors/Japanese /etc/squid/errors |
| # /etc/init.d/squid start |
| # chkconfig squid on |

Webサーバー構築後に,プロキシ設定ファイルを同サーバーに登録して,クライアント(Windows 2000)のプロキシ設定の自動化を図ります。
| application/x-ns-proxy-autoconfig pac |
| # /etc/init.d/httpd restart |
|
| # chmod 744 /var/www/html/proxy.pac |
