пятница, 23 августа 2013 г.

Installing Squid 3.3 on CentOS 6.


* Find files in CentOS / Поиск файлов в CentOS

yum groupinstall 'Development Tools' -y
yum install libtool
mkdir /home/squid
cd /home/squid
wget http://www.squid-cache.org/Versions/v3/3.3/squid-3.3.8.tar.gz
tar xvfz squid-3.3.8.tar.gz
cd squid-3.3.8
./configure
make
checkinstall

Authentication in Active Directory
Test User/Password:
echo "test q123456" | /usr/lib64/squid/squid_ldap_auth -R -b "dc=domain,dc=lan" -D "cn=Administrator,cn=Users,dc=domain,dc=lan" -w "Q654321" -f sAMAccountName=%s -h 192.168.0.10

Test User/Group:
echo "korotkov _Proxy_ALL" | /usr/lib64/squid/squid_ldap_group -R -b "dc=sovet,dc=lan" -D "cn=,cn=Users,dc=sovet,dc=lan" -w "" -f "(&(objectclass=person)(sAMAccountName=%v)(memberof=cn=%a,ou=GROUP_OU,dc=sovet,dc=lan))" -h 192.168.5.254


Fix for errors:

squid WARNING cache_mem is larger than total disk cache space!

Add this after:
cache_dir ufs /usr/local/squid/var/cache/squid 100 16 256
cache_mem 50 MB

Комментариев нет:

Отправить комментарий