install squid as proxy server

to install squid as proxy server just follow this instruction:

  1. wget http://www.squid-cache.org/Versions/v2/2.5/squid-2.5.STABLE10.tar.gz
  2. cp squid-2.5.STABLE10.tar.gz /usr/src/
  3. cd /usr/src/
  4. tar xvzf squid-2.5.STABLE10.tar.gz
  5. cd squid-2.5.STABLE10
  6. /configure
  7. make
  8. make install
  9. rm -f /usr/local/squid/etc/squid.conf
  10. pico /usr/local/squid/etc/squid.conf, and fill it, such as under the ago save this

fill of squid.conf:

http_port 8080
tcp_outgoing_address 210.23.79.44
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin ?
no_cache deny QUERY
cache_mem 100 MB
cache_swap_low 90
cache_swap_high 95
ipcache_size 10240
ipcache_low 90
ipcache_high 95
fqdncache_size 8192
maximum_object_size 10240 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 40 KB
cache_dir ufs /usr/local/squid/var/cache 100 16 256
cache_access_log /usr/local/squid/var/logs/access.log
cache_log /usr/local/squid/var/logs/cache.log
cache_store_log /usr/local/squid/var/logs/store.log
emulate_httpd_log off
log_ip_on_direct on
mime_table /usr/local/squid/etc/mime.conf
pid_filename /usr/local/squid/var/logs/squid.pid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
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 SSL_ports port 443 563 # SSL
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 IP-Saya src 210.23.79.44 210.23.79.39 210.23.79.41 210.23.79.38 210.23.79.45
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow IP-Saya
http_access deny all
http_reply_access allow all
cache_mgr Gua@Domain.Com
cache_effective_user nobody
visible_hostname off
coredump_dir /usr/local/squid/var/cache
ie_refresh on
half_closed_clients off
forwarded_for off
header_access Allow allow all
header_access Authorization allow all
header_access WWW-Authenticate allow all
header_access Cache-Control allow all
header_access Content-Encoding allow all
header_access Content-Length allow all
header_access Content-Type allow all
header_access Date allow all
header_access Expires allow all
header_access Host allow all
header_access If-Modified-Since allow all
header_access Last-Modified allow all
header_access Location allow all
header_access Accept allow all
header_access Accept-Charset allow all
header_access Accept-Encoding allow all
header_access Accept-Language allow all
header_access Content-Language allow all
header_access Mime-Version allow all
header_access Retry-After allow all
header_access Title allow all
header_access Cookie allow all
header_access Set-Cookie allow all
header_access All deny all
11. chmod 777 /usr/local/squid/var/logs/
12. chmod 777 /usr/local/squid/var/
13. run squid first time : /usr/local/squid/sbin/squid -z
14. /usr/local/squid/sbin/squid &
if squid goes slow down:

  1. killall squid
  2. pico /usr/local/squid/var/logs/access.log (ererase all)
  3. pico /usr/local/squid/var/logs/cache.log (erase all)
  4. pico /usr/local/squid/var/logs/store.log (erase all)
  5. run back again : /usr/local/squid/sbin/squid &

5 Responses to “install squid as proxy server”

  1. Amazing Weight Loss Story says:
    Using Netscape Navigator Netscape Navigator 4.7 on Windows Windows 2000

    Thanks for writing, I very much liked your latest post. I think you should post more frequently, you clearly have talent for blogging!

  2. My Amazing Weight Loss Story says:
    Using Opera Opera 9.00 on Windows Windows XP

    Thanks for writing, I very much enjoyed your most recent post. I think you should post more frequently, you obviously have natural ability for blogging!

  3. AnnaHopn says:
    Using Internet Explorer Internet Explorer 6.0 on Windows Windows ME

    Ugh, I liked! So clear and positively.
    AnnaHopn

  4. Elcorin says:
    Using Opera Opera 9.00 on Windows Windows XP

    Not sure that this is true:), but thanks for a post.
    Elcorin

  5. Alpina Cars says:
    Using Mozilla Firefox Mozilla Firefox 3.5.3 on Windows Windows XP

    Nice post…Thank you for sharing some good things.

Leave a Reply

:) :( :d :"> :(( \:d/ :x 8-| /:) :o :-? :-" :-w ;) [-( :)>- more »

Google
Web seseorang.org