« DNS BIND VL4 | Main | Squid 自動設定 VL4 »

Dec 01, 2007

Squid Proxy Server VL4

ProxyServerである”Squid”をインストール及びセットアップしました。

--Squid インストール
# apt-get update
# apt-get install squi
d
*現行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


  ブログランキング

|

« DNS BIND VL4 | Main | Squid 自動設定 VL4 »

Vine Linux 4.xx」カテゴリの記事

Comments

Post a comment



(Not displayed with comment.)


Comments are moderated, and will not appear on this weblog until the author has approved them.



TrackBack

TrackBack URL for this entry:
http://app.cocolog-nifty.com/t/trackback/68055/17238406

Listed below are links to weblogs that reference Squid Proxy Server VL4:

« DNS BIND VL4 | Main | Squid 自動設定 VL4 »