Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-statistics domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wordpress/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-pagenavi domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wordpress/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wordpress/wp-includes/functions.php on line 6114
Webmin: Administrez votre machine sans ligne de commande - Plessy

Webmin: Administrez votre machine sans ligne de commande

Webmin est une interface web, sous licence BSD, qui permet d’administrer simplement un serveur UNIX ou Linux à distance via n’importe quel navigateur web.

Pour information: Un script est disponible pour les membres.

Installation:

On ajoute la source:

sudo nano /etc/apt/sources.list

Et on ajoute:

deb http://download.webmin.com/download/repository sarge contrib

On récupère la clé on effectue les mise à jour puis l’installation:

cd /tmp
wget http://www.webmin.com/jcameron-key.asc
sudo apt-key add jcameron-key.asc
sudo apt update
sudo apt upgrade
sudo apt install webmin

Par sécurité on change le port de connexion:

sudo sed -i "s/port=10000/port=$PORTWEBMIN/" /etc/webmin/miniserv.conf

Et on redémarre:

sudo /etc/init.d/webmin restart

Firewall:

Si vous avez suivi le tuto concernant la mise ne place d’un pare-feu:

sudo sed -i "/^echo - Initialisation des regles.*/i #Webmin" /etc/init.d/firewall
sudo sed -i "/^echo - Initialisation des regles.*/i iptables -t filter -A INPUT -p tcp --dport $PORTWEBMIN -j ACCEPT" /etc/init.d/firewall
sudo sed -i "/^echo - Initialisation des regles.*/i iptables -t filter -A OUTPUT -p tcp --dport $PORTWEBMIN -j ACCEPT" /etc/init.d/firewall
sudo /etc/init.d/firewall stop
sudo /etc/init.d/firewall start

Fail2Ban:

Si vous avez suivi le tuto concernant Fail2Ban:

sudo sed -i '/^\[webmin-auth\].*/a enabled = true' /etc/fail2ban/jail.local
sudo sed -i "s/= 10000/= $PORTWEBMIN/" /etc/fail2ban/jail.local
sudo service fail2ban restart

Configuration:

Rendez-vous sur “https://$VotreNomDeDomaine:$PORTWEBMIN” ou “https://$VotreIP:$PORTWEBMIN

  • Certificats SSL

Si vous avez suivi le tuto concernant les certificats SSL cliquez sur “Webmin configuration” puis “SSL Encryption” et ajoutez vos certificats.

  • Restreindre les IPs

Cliquez sur “Webmin configuration” puis “IP Access control” et entrez vos adresses IP de confiance