In this prost we will discribe how to install squid proxy with Active Directory authentication.
The Squid installation it is done on Debian 6.0.4
Firstly, we need to configure the name server.
To connect to the server over SSH, we need to install SSH.
apt-get install ssh
Install NTP Server:
apt-get install ntp-simple
Edit the ntp file and add the frensh ntp servers:
Before installing squid we need to install:
- samba used for connexion between Linux and Windows ;
- krb5-user eand libpam-krb5 used by Kerberos for authenticating users to Active Directory
- ntpdate : Used to synchronize date
- winbind:used by samba to communicate with Active Directory.
After installing Kerberos, we need to synchronize the date using the command
sudo ntpdate 22.214.171.124
After synchronizing the date, we will configure the Kerberos configuration file.
Now we will test Kerberos using the command:
sudo kinit Administrateur
If doesn’t work, try to type [email protected]
And if doesn’t work try to restart the server.
After configuring Kerberos, we will start configuring samba. First, we need to stop Winbind and Samba and modify the file smb.conf:
Now, we will start samba and winbind
Join the domain:
sudo net ads join -U Administrateur
After joining the domain, we will start squid installation:
-get install squid3
After installing squid, we will start squid configuration.