Installing webmin and dansguardian webmin module.
Also, I have successful results to report from installing webmin and the dansguardian module to webmin.
webmin has many tools that allow easy (web) viewing and manipulation of many services - for instance it has an easy web-based log viewer. [This could be dangerous if you tinker with settings you do not understand!]
The dansguardian module also allows customization of many of the dg settings.
I'll describe the install in two steps. One - install webmin, and two - install & configure dg module for webmin.
ONE - install webmin on lmce:
older version reference: http://www.ubuntugeek.com/ubuntu-serverinstall-gui-and-webmin-in-ubuntu-810-intrepid-ibex-guide.html
Preparing your system. First you need to install the additional packages as follows:
sudo aptitude install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
Now download the latest webmin using the following command or from here
Now we have webmin_1.480 _all.deb package install this package using the following command
sudo dpkg -i webmin_1.480_all.deb
This will complete the installation.
Ubuntu in particular doesn’t allow logins by the root user by default. However, the user created at system installation time can use sudo to switch to root. Webmin will allow any user who has this sudo capability to login with full root privileges.
Now you need to open your web browser and enter the followinghttps://192.168.80.1:10000/
and this will show many webmin capabilities - but not the dg third party module.
TWO - Install and configure the Dansguardian Webmin module
references: http://www.howtoforge.com/dansguardian-with-multi-group-filtering-and-squid-with-ntlm-auth-on-debian-etch-p2 http://sourceforge.net/projects/dgwebminmodule/files/dgwebmin-devel/0.7.0beta1b/
Install the Dansguardian Webmin module
Open a web browser to https://192.168.80.1:10000
and log in with madmin (sudoer). Go to Webmin > Webmin Configuration > Webmin Modules. Select "From ftp or http URL" and paste the link below into the dialog box and click Install Module.http://downloads.sourceforge.net/project/dgwebminmodule/dgwebmin-devel/0.7.0beta1b/dgwebmin-0.7.0beta1b.wbm?use_mirror=voxel
You should see:
The following modules have been successfully installed and added to your access control list :
DansGuardian Web Content Filter in /usr/share/webmin/dansguardian (4612 kB) under category Servers
The first time you try to run the dg module, you'll get errors such as:
Warning - DansGuardian binary file not found, maybe you need to update your module config (especially the directory paths). (Expected location: /sbin/dansguardian)
The problem is that the we are using differnet directory locations for many of the files.
So, look at the Configurable options for DansGuardian Web Content Filter (in the upper left corner of the dg page) - and nearly every path needs to be changed. For instance, our binary is in /usr/sbin/dansguardian instead of /sbin/dansguardian, so change that.
Confirm the locations for the rest of the files by running #find as follows (or just use these locations)
dcerouter_1001275:/usr/local/sbin# find / -name dansguardian
When you've finished replacing all of the locations, hit save on the config page and then "stop & restart DG" on the top right of the main DG page.
Then it should work! If not, check your syslog for errors.
You should be able to check the status of DG, review logs with a good viewer, and view and edit many of the detailed configurations.
(we can add this to the wiki as well)