How to Install and configure Dansguardian with NTLM auth and multi-group Filtering on Debian Etch
How to Install and configure Dansguardian with NTLM auth and multi-group Filtering on Debian Etch
This how-to describes how to install, configure, and get around some hurdles along the way. Install Debian Etch with the base system only The base system install does not install SSH so we will do that now. apt-get install ssh Now that SSH is installed you can finish the rest of this how-to Add the following line to your /etc/apt/sources.lst
ClamAV in Etch has a bug in that when you start Dansguardian it takes a long time to load. apt-get update Edit /etc/apt/preferences and enter the following:
The above info in /etc/apt/preferences tells Apt to only get ClamAV from backports.org. Run the following: apt-get update Install some software and configure KerberosYou will be asked the following questions: Please specify the workgroup you want this server to appear to be in when queried by clients.<-- exampledomain Modify smb.conf to use WINS settings from DHCP? <-- No Note: It is imperitve that you answer these questions with upper case and lower case letters as in the example below. Kerberos servers for your realm: <-- domaincontroller.EXAMPLEDOMAIN.LOCAL Administrative server for your Kerberos realm: <-- domaincontroller.EXAMPLEDOMAIN.LOCAL dpkg-reconfigure krb5-config And again some more questions. Default Kerberos version 5 realm: <-- EXAMPLEDOMAIN.LOCAL Does DNS contain pointers to your realm's Kerberos Servers? <-- Yes Configure DansguardianEdit /etc/dansguardian/dansguardian.conf and comment out line 3 Now find filterip and enter 127.0.0.1 after it.
And restart Dansguardian. /etc/init.d/dansguardian restart
Install and configure WebminWebmin makes an administrator's work a bit easier since it give you a GUI for most applications that run on Linux so let's install it now. apt-get install webmin libcompress-zlib-perl Run ifconfig and make note of the IP address listed for eth0 ifconfig Now open a web browser on another machine and goto https://IPRecordedEarlier:10000/ and logon with root. On the left hand menu goto Webmin > Webmin Configuration > Webmin Modules Refresh the page after the module has been installed Configure Samba and join the domain.First make a copy of your /etc/samba/smb.conf and then wipe it out. cp /etc/samba/smb.conf /etc/samba/smb.conf.bak Now go back to Webmin - Servers - Samba Windows File Sharing and select Unix Networking under Global Configuration. We don't want Samba listening on all interfaces so we will set it to listen on the local interface Under Network interfaces select use list and enter your internal network IP address and netmask and then click Save. Click Winbind Options Now click Edit Config File. It shoud look like this below.
If all looks well, restart samba, winbind and synchronize the time with the domain controller. net time set -S domaincontroller Now join the domain net ads join -U Administrator If all goes well you shoud be able to run the following with success. wbinfo -t The output should be checking the trust secret via RPC calls succeeded wbinfo -u This should list all users in the domain wbinfo -g This should list all of the groups in the domain Squid needs access to /var/run/samba/winbindd_privileged Edit /etc/init.d/winbind-ch.sh and paste the following into it.
update-rc.d winbind-ch.sh start 21 2 3 4 5 . Configure the Squid Proxy ServerMake a backup of /etc/squid/squid.conf and delete the comments. cp /etc/squid/squid.conf /etc/squid/squid.conf.bak Now go back to Webmin - Servers - Squid Proxy Server and click on Ports and Networking Windows clients have a problem if you don't request NTLM before basic authentication so we will configure NTLM first. In NTLM authentication program enter /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp Go back to Authentication Programs after clicking Save and enter the following... In Basic authentication program enter /usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic Click on Access Control and then create a new ACL by selecting External Auth and click Create new ACL
One final thought. Squid adds a Forwarded-For header to out going requests by default. Ok now for the final test, reboot and point your web browser to use this machines IP address and port 8080 for its proxy.
|



![Creative Commons Attribution License [Creative Commons Attribution License]](http://creativecommons.org/images/public/somerights20.gif)




Recent comments
2 days 3 hours ago
3 days 6 hours ago
3 days 17 hours ago
4 days 8 hours ago
4 days 18 hours ago
4 days 23 hours ago
5 days 5 hours ago
6 days 17 hours ago
6 days 19 hours ago
1 week 17 hours ago