Debian下webmin的安装和使用

This how-to describs how to install, configure Dansguardian with NTLM auth and multi-group configurations on Debian Etch, and get around some hurdles along the way.

Install Debian Etch with the base system only.

Add the following line to your /etc/apt/sources.lst:

vi /etc/apt/sources.list

deb http://download.webmin.com/download/repository sarge contrib
deb http://www.backports.org/debian etch-backports main contrib non-free

wget -O - http://backports.org/debian/archive.key | apt-key add -

apt-get update
apt-get install debian-backports-keyring

Edit /etc/apt/preferences and enter the following:

vi /etc/apt/preferencesPackage: clamav
Pin: release a=etch-backports
Pin-Priority: 999
Package: clamav-base
Pin: release a=etch-backports
Pin-Priority: 999
Package: clamav-freshclam
Pin: release a=etch-backports
Pin-Priority: 999
Package: libclamav2
Pin: release a=etch-backports
Pin-Priority: 999

apt-get update
apt-get install squid dansguardian samba winbind –y

Edit /etc/dansguardian/dansguardian.conf and comment out line 3.

dpkg-reconfigure dansguardian
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 log on with root.

On the left hand menu goto Webmin > Webmin Configuration > Webmin Modules.

Select Third party module from and click Select.

In the new window that opens search for Dansguardian.

Click it and then click Install Module.

Refresh the page after the module has been installed.

Now on the left hand side of the page go to Servers > Dansguardian and click on View/Edit Config. Enter 127.0.0.1 into the Filter IP dialog and change the filter port to 3130.

Make sure Username Identification (Proxy Auth) is checked and click Save.