Squid Proxy Server VL4
ProxyServerである”Squid”をインストール及びセットアップしました。
--Squid インストール
# apt-get update
# apt-get install squid
*現行Version squid2.6 STABLE14
--Squid.confの編集
# vi /etc/squid/squid.conf
----
http_port 8080
icp_port 0
cache_effective_user squid
cache_effective_group squid
visible_hostname Proxy01
forwarded_for off
cache_dir ufs /var/spool/squid 100 16 256
maximum_object_size 5MB
cache_mem 8 MB
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
logfile_rotate 4
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
acl localnet src 192.168.10.0/255.255.255.0
acl all src 0.0.0.0/0.0.0.0
http_access allow localnet
http_access deny all
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
----
--Squid キャッシュファイル作成
# squid -z
--Squid 起動
# service squid start
--参考ページ
http://arika.org/doc/sd.200112
http://forums.fedora-fr.org/viewtopic.php?pid=211996
http://rgv250.dyndns.org/squid.htm
http://www.leafgreen.jp/freebsd/squid.html
「Vine Linux 4.xx」カテゴリの記事
- Wine Linux上でWindowsアプリ実行(2010.04.14)
- ntp VL4(2008.02.07)
- SNMP VL4(2008.02.03)
- ssh VL4(2007.12.28)
- Vine Linux4.2(2007.12.27)
The comments to this entry are closed.
Comments