Friday, January 22, 2010

Mamadzus - Username / password SQUID

Untuk menambahkan username / password SQUID
1. root@mamadzus:~# touch /etc/squid/squid_password
2. root@mamadzus:~# chmod 777 /etc/squid/squid_password
3. root@mamadzus:~# htpasswd /etc/squid/squid_password afauzi
New password:
Re-type new password:
Adding password for user afauzi
4. root@mamadzus:~# locate ncsa_auth
/usr/lib/squid/ncsa_auth
/usr/share/doc/squid/README.auth_module.ncsa_auth.gz
5. nano /etc/squid/squid.conf
#mamadzus authentication parameter
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_password

#
# Add this to the bottom of the ACL section of squid.conf
#
acl ncsa_users proxy_auth REQUIRED

#
# Add this at the top of the http_access section of squid.conf
#
http_access allow ncsa_users





regard,
Mamadzus
ma2d_te@yahoo.com
+62 817 540 4448

3 comments:

Achmad said...

ga jelas..
gak penting..
gak selesai bikin blog nya haahhahhaa

kangkam said...

dialog login pass nya kok nggak muncul ya bos ?

kangkam said...

ternyata gak bisa jalan bareng transparent proxy ya bos

cmiiw