Cara Setting Squid 3.1 di CentOS

 Others, Squid

Cara Install dan setting Squid Proxy di CentOS 5 VPS logo

Tutorial cara setting squid proxy versi 3.1 di CentOS 5 / CentOS 6 VPS

  1. Install squid via yum

    yum install squid

    Cara Setting Squid  3.x di CentOS 1

  2. Edit setingan squid.conf pada squid 3.2

    nano /etc/squid/squid.conf

    tambahkan konfigurasi berikut dan letakkan paling atas

    #add define hostname
    visible_hostname jadoel.info

     

    # add auth_params
    auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/password
    auth_param basic children 2
    auth_param basic realm My Proxy Server
    auth_param basic credentialsttl 24 hours
    auth_param basic casesensitive off

     

    # add acl rules
    acl users proxy_auth REQUIRED

     

    # http access rules
    http_access deny !users
    http_access allow users

     

    #hide IP
    forwarded_for off

    request_header_access Allow allow all
    request_header_access Authorization allow all
    request_header_access WWW-Authenticate allow all
    request_header_access Proxy-Authorization allow all
    request_header_access Proxy-Authenticate allow all
    request_header_access Cache-Control allow all
    request_header_access Content-Encoding allow all
    request_header_access Content-Length allow all
    request_header_access Content-Type allow all
    request_header_access Date allow all
    request_header_access Expires allow all
    request_header_access Host allow all
    request_header_access If-Modified-Since allow all
    request_header_access Last-Modified allow all
    request_header_access Location allow all
    request_header_access Pragma allow all
    request_header_access Accept allow all
    request_header_access Accept-Charset allow all
    request_header_access Accept-Encoding allow all
    request_header_access Accept-Language allow all
    request_header_access Content-Language allow all
    request_header_access Mime-Version allow all
    request_header_access Retry-After allow all
    request_header_access Title allow all
    request_header_access Connection allow all
    request_header_access Proxy-Connection allow all
    request_header_access User-Agent allow all
    request_header_access Cookie allow all
    request_header_access All deny all

    Jika ingin mengubah port squid edit sesuai selera pada bagian http_port 3128 ( default port squid 3128 )
    Simpan dan exit
    Cara Setting Squid conf 3.1 di CentOS 2

  3. Untuk langkah selanjutnya ( membuat user pass dan seterusnya pada squid ) baca di postingan sebelumnya  tutorial install dan setting squid proxy 2.6 di centos 5