疲れたオジサンのページかもしれない。
Linux_Server 結構面白くなってきました。



 プロキシサーバーの設定

  • 今回はプロキシサーバーの設定ファイルである squid.con について書き留めておきます。

  • cache_effective_user squid
    cache_effective_group squid

    cache_dir ufs /var/spool/squid/cache 200 16 256

    http_port 8080
    icp_port 0

    cache_peer fkuproxy.fku.ed.jp parent 8080 0

    cache_mem 16000000 bytes

    ftp_user admin@suisan.fku.ed.jp

    acl SSL method CONNECT

    acl all src 0.0.0.0/0.0.0.0
    acl manager proto cache_object
    acl localhost src 127.0.0.1/255.255.255.255
    acl to_localhost dst 127.0.0.0/8
    acl SSL_ports port 443
    acl Safe_ports port 80 # http
    acl Safe_ports port 21 # ftp
    acl Safe_ports port 443 # https
    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 10.201.154.0/255.255.255.0

    never_direct allow SSL

    cache_mgr admin@suisan.fku.ed.jp
    #visible_hostname student-proxy3.suisan.local

    #http_access allow manager loclahost
    #http_access deny manager
    http_access deny !Safe_ports
    #http_access allow CONNECT SSL_ports
    #http_access deny CONNECT !SSL_ports
    http_access allow localhost
    http_access allow localnet
    http_access deny all

    refresh_pattern ~ftp: 1440 20% 1008
    refresh_pattern ~gopher: 1440 0% 1440
    refresh_pattern . 0 20% 4320

    #FRESH if expires < now,else STALE
    #STALE if age > max
    #FRESH if lm-factor < percent,else STALE
    #FRESH if age < min
    #else STALE

    #dns_children 5
    #maximum_object_size 512k
    logfile_rotate 7

    #replacement_policy GDSF
    #pid_filename /var/run/squid.pid

    #cache_dir coss /var/spool/squid/coss 40 block-seze=512 max-seze=131072 membufs=6
    #cache_replacement_policy heap GDSF
    #memory_replacement_policy heap GDSF

Copyright (C) 2002-2009 toshi-web All Right Reserved
total [ yesterday / today ]