Untuk apa anonymous proxy ? silahkan googling sendiri. Disini software proxy yang akan digunakan adalah squid-2.6.STABLE21-3.el5.
Pertama-tama :
yum -y groupinstall “Development Tools”
yum -y install rpm-build openjade linuxdoc-tools openldap-devel pam-devel openssl-devel httpd rpm-devel
lalu install squidnya dengan perintah :
yum install squid -y
edit file squid.conf yang berada di /etc/squid/squid.conf dengan editor kesayangan anda. pada contoh saya menggunakan nano.
nano /etc/squid/squid.conf
di bawah
#auth_param basic credentialsttl 2 hours
tambahkan :
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
- Create proxy_auth acl
dibawah # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS tambahkan :
acl ncsaauth proxy_auth REQUIRED
http_access allow ncsaauth
- Enable Anonymizer (Anonymous Proxy)
pada bagian paling bawah dari squid.conf tambahkan baris berikut :
header_access Allow allow all
header_access Authorization allow all
header_access WWW-Authenticate allow all
header_access Proxy-Authorization allow all
header_access Proxy-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 Pragma 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 Connection allow all
header_access Proxy-Connection allow all
header_access User-Agent allow all
header_access Cookie allow all
header_access All deny all
buat sebuah file sebagai tempat penyimpanan password dan username :
touch /etc/squid/squid_passwd
tambahkan user
htpasswd /etc/squid/squid_passwd blogkaro
sesudah menekan enter anda akan diminta memasukkan password 2 kali. Dan yang terakhir jalankan squidnya:
service squid start
sekarang coba gunakan proxy yang baru dibuat di browser anda, dan jangan lupa untuk mengecek sudah benar-benar anonymous atau belum di situs ip2location.com
acl ncsaauth proxy_auth REQUIRED
http_access allow ncsaauth