11
Topic 12. Global configuration tool: Webmin Computer System Design and Administration José Ángel Herrero Velasco Department of Computer and Electrical Engineering This work is published under a License: Creative Commons BY-NC-SA 4.0

Computer System Design and Administration · Topic 12. Global configuration tool: Webmin Computer System Design and Administration José Ángel Herrero Velasco OpenLDAP client SSL

  • Upload
    others

  • View
    37

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Computer System Design and Administration · Topic 12. Global configuration tool: Webmin Computer System Design and Administration José Ángel Herrero Velasco OpenLDAP client SSL

Topic 12. Global configuration tool: Webmin

Computer System Design and Administration

José Ángel Herrero Velasco Department of Computer and

Electrical Engineering

This work is published under a License: Creative Commons BY-NC-SA 4.0

Page 2: Computer System Design and Administration · Topic 12. Global configuration tool: Webmin Computer System Design and Administration José Ángel Herrero Velasco OpenLDAP client SSL

Topic 12. Global configuration tool: Webmin

Computer System Design and Administration

José Ángel Herrero Velasco

Ope

nLD

AP

clie

nt

SSL Clients

NFSv4 CIFS SSH

Network file server/ MS Windows-Linux/UNIX interoperability

NFSv4 RAID/LVM

IMAP (mail client)

SMTP (Postfix) ç

Secure e-Mail Server

IMAP (Dovecot) SS

L

Secure web Server & control “panel” (config/monitor)

Apache2

WordPress

SSL

LDAP MySQL PHP

Virt

ual

Hos

ts

Webmin (server)

Ganglia Monitor (gmond/gmted)

Nagios3 (server)

Config & graphs

Config & módules

Config & módules

Secure Information Server

ISC DHCP

ISC NTP

ISC DNS Open

LDAP SSL

DB LDAP

Puzzle

Active Directory

SAMBA

Page 3: Computer System Design and Administration · Topic 12. Global configuration tool: Webmin Computer System Design and Administration José Ángel Herrero Velasco OpenLDAP client SSL

Topic 12. Global configuration tool: Webmin

Computer System Design and Administration

José Ángel Herrero Velasco

•   Deployment  of  a  unified  control  system  to  configure  and  monitor  a  whole  compu&ng  environment,  based  on:  

–   Global  configura4on:  •   Webmin.  

–   Global  monitoring:  •   Ganglia-­‐monitor.  •   Nagios  3.  

–   Others:  •   Log  File  Viewers:    

–   Webalizer  Logfile  Analysis  (Webmin  module).  

–   Ksystemlog.  –   Logwatch.  

•   Linux  tools:  –   System:  

»   sysstat, lsof –   Accoun4ng:  

»   acct (lastcomm, sa) –   Networking:  

»   iptraf, netstat, nmap  

Target: Control panel (configuration)

Page 4: Computer System Design and Administration · Topic 12. Global configuration tool: Webmin Computer System Design and Administration José Ángel Herrero Velasco OpenLDAP client SSL

Topic 12. Global configuration tool: Webmin

Computer System Design and Administration

José Ángel Herrero Velasco

•  Webmin:  –   Web  based  tool  for  the  management  (configura;on)  

of  UNIX/Linux  systems:  •   Web  “front  end”    Control  panel.    •   To  fully  configure  the  system.    

–   It  is  based  on  a  set  of  configura;on  tools  from  Open  Solaris,  Linux  and  other  UNIX:  •   E.g.:  Linuxconf  (deprecated).  

–   It  is  integrated  and  runs  automa4cally  on  a  Web  service,  over  the  target  server:  

•   Secure  communica;ons  (SSL).  •   Using  TCP  port:  10000:  

–   default.  •   Restricted  access:  

–   root/operator.  

–   Enables  the  syadmin  to  configure  a  couple  of  servers  remotely,  from  a  central  “control”  server.  

•   Very  suitable  tool  for  DATA  CENTERS,  with  LINUX  servers.  

Webmin: Description

Page 5: Computer System Design and Administration · Topic 12. Global configuration tool: Webmin Computer System Design and Administration José Ángel Herrero Velasco OpenLDAP client SSL

Topic 12. Global configuration tool: Webmin

Computer System Design and Administration

José Ángel Herrero Velasco

•  Its  aim  is,  through  a  (friendly)  web  interface,  to  set  up:–  The  OS  Internals:  kernel...–  Applica;ons,  services,  modules…  

•  Independent  architecture  soVware.  • Modular…

–  More  than  90%  of  its  func;onality  comes  from  the  Webmin  modules:•  “Bootup  and  Shutdown”,  “Scheduler  Cron  Jobs”,  “Webalizer  LogFile  Analysis”…  •  h^p://www.webmin.com/standard.html.  

•  Portable:  –  You  can  run  it  on  a  very  large  number  of  system  pla`orms:  

•  UNIX/Linux,  OSX,  Windows…–  Availability.  –  2  versions:  

•  OpenSource    1.791.  •  Pro  version    (Commercial):    

–  Visit  hXp://www.virtualmin.com/.

•  SoVware,  documenta;on,  wiki…  and  more  details:  –  h^p://www.webmin.com.  

Everything  

Webmin: Main features

Page 6: Computer System Design and Administration · Topic 12. Global configuration tool: Webmin Computer System Design and Administration José Ángel Herrero Velasco OpenLDAP client SSL

Topic 12. Global configuration tool: Webmin

Computer System Design and Administration

José Ángel Herrero Velasco

Webmin: Main features

Page 7: Computer System Design and Administration · Topic 12. Global configuration tool: Webmin Computer System Design and Administration José Ángel Herrero Velasco OpenLDAP client SSL

Topic 12. Global configuration tool: Webmin

Computer System Design and Administration

José Ángel Herrero Velasco

•   Secure  web  server  access  (https).  •   Divides  server  administra;on  into  several  sec4ons:  

–   Webmin.  –   System.  –   Servers.  –   Networking.  –   Hardware.  –   Cluster.  –   Others.  

•   Standard  modules  for  basic  administra;on  tasks:    –   System  start/stop  management.  –   SoZware  management  (apt-get/dpkg  integrated).  –   User  management.  –   Local  file  system  management  (FS).  –   Security  management:  Firewall.  –   Centralized  printer  management:  LPD.  –   Basic  parts  of  the  system:  

•   Logs,  crond,  PAM,  process  control,  manuals…  –   ...  

Webmin: Global configuration

Page 8: Computer System Design and Administration · Topic 12. Global configuration tool: Webmin Computer System Design and Administration José Ángel Herrero Velasco OpenLDAP client SSL

Topic 12. Global configuration tool: Webmin

Computer System Design and Administration

José Ángel Herrero Velasco

•   Specific  modules  for  user  and  webmin  access  management:  –   Usermin.  

•   Specific  modules  for  hardware  management:  –   Disk  management:  

•   Par;;oning  and  formacng  of  local  disks.  –   iSCSI.  –   Linux  RAID  and  LVM  systems.  

•   Specific  modules  for  networking  management  (networking):  –   Networking  services  and  protocols.  –   NFS.  –   SSL  Tunnels.  –   Firewall.  

•   Specific  modules  for  network  services  management:  –   Informa4on  services:  LDAP,  NIS...  –   Data  bases  services:  MySQL,  Postgres…  –   E-­‐Mail  services:  Sendmail,  Exim4,  Pos`ix,  Dovecot…  –   Web  services:  Apache.  –   Name  resolu4on  services:  BIND.  –   Dynamic  hosts  configura4on  services:  DHCP.  

•   Specific  modules  for  clusters  management:  –   Remote  execu;on  (parallel)  of  commands  in  cluster;  one  command    Mul;ple  nodes.  –   Coordinated  management  of  clustered  soVware.  –   Cluster  user/group  management.  –   …  

•   Specific  modules  for  HA  (High  Ability)  management:  –   Heartbeat  monitoring.  

Webmin: Services configuration

Page 9: Computer System Design and Administration · Topic 12. Global configuration tool: Webmin Computer System Design and Administration José Ángel Herrero Velasco OpenLDAP client SSL

Topic 12. Global configuration tool: Webmin

Computer System Design and Administration

José Ángel Herrero Velasco

•   Unified  server  management  with  Webmin  systems.  

•  Many  webmin  systems  connected  is  possible:  •   Client-­‐server  schema.  

–   Simplifies  tasks  in  homogeneous  environments:  •   SoVware  management.  

Webmin: webmin environment configuration

Page 10: Computer System Design and Administration · Topic 12. Global configuration tool: Webmin Computer System Design and Administration José Ángel Herrero Velasco OpenLDAP client SSL

Topic 12. Global configuration tool: Webmin

Computer System Design and Administration

José Ángel Herrero Velasco

•   Op4on  A:  (heavy):  –   Downloading  and  installing  (dpkg)  the  webmin  package.deb  manually.  

•   Op4on  B:  (simple):  –   Using  the  webmin  repository.  

–   Add  to  the  file  /etc/apt/sources.list:  deb http://download.webmin.com/download/repository sarge contrib

–   Download  the  repository  key  and  install  it  into  the  system  “Key  ring”:  $ cd /root $ wget http://www.webmin.com/jcameron-key.asc $ apt-key add jcameron-key.asc

–   Install  webmin  soVware  (and  dependences)  from  repository:    $ apt-get update $ apt-get install apt-transport-https    $ apt-get install webmin  

Webmin: Installation (debian)

Page 11: Computer System Design and Administration · Topic 12. Global configuration tool: Webmin Computer System Design and Administration José Ángel Herrero Velasco OpenLDAP client SSL

Topic 12. Global configuration tool: Webmin

Computer System Design and Administration

José Ángel Herrero Velasco

•  Access  to  webmin  “control  panel”:–  https://monitor:10000  

Webmin: Installation (debian)