Webmin

Revision as of 14:22, 31 July 2014 by WikiFreak (talk | contribs)


Webmin is a nice UI that helps you to manage all your services and settings (DHCP, DNS, Samba, NFS, Users, Security, ...).


Even though the look is a bit 'old fashion' it's still very efficient.


Installation

See the official installation webpage: http://www.webmin.com/deb.html


... July 2014 ...


Update your list of repositories:

vim /etc/apt/sources.list


Add these new entries:

deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib


Add the new GPG key:

cd /root
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc


You will now be able to install with the commands :

apt-get update
apt-get install webmin


Now you can go to https://localhost:10000/

Use a valid UNIX account to log-in.


Webmin behind Apache2 proxy

If you want to use Webmin behind a proxy you must tweak webmin configuration + add a new redirection in your Apache2 v.host


Webmin configuration

Main configuration file:

/etc/webmin/config


Add a default path "/webmin" + a reference to the PROXY + enable PROXY usage

webprefix=/webmin
webprefixnoredir=1
referers_none=0
referers=mySuperServer

!! Don't forget to set referers_none=0


Since you're already using your own certificate with HTTPS, do not let Webmin use its own but rely on Apache's security:

/etc/webmin/miniserv.conf

Disable SSL

ssl=0


Apache2 configuration

Edit your Apache2 configuration:

vim /etc/apache2/sites-enabled/mySuperSite.conf


Set the following settings:

# Enable proxy
ProxyVia On
ProxyPreserveHost On
ProxyRequests Off
ProxyErrorOverride Off
<Proxy *>
    AddDefaultCharset off
    Order deny,allow
    Allow from all
    Satisfy Any
</Proxy>

## Proxy to webmin
<Location /webmin/>
    ProxyPass http://localhost:10000/
    ProxyPassReverse http://localhost:10000/
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1 172.16.50.0/24 192.168.1.0/24
</Location>



Usage

DHCP server management

  • Go to "Servers > DHCP server" (on the left)
  • Then click on "add a new host"