Accéder au contenu principal

Articles

Affichage des articles du 2022

WHM / cPanel Transfer Tool

  Transfer Tool Lors du transfert 131 compte pour 1.65 To. de CentOS7 vers AlamaLinux Cela prends énormémant de temps. Quand le nouveau serveur transfert un compte, il le suspend de l'ancien et changer ces IP vers le nouveau. Pour permmetre au client d'utiliser son compte sur l'ancien serveur le temps du transfert total. Le probleme se pose uniuement quand LIVE TRANSFERT est enable; et il s'activre uniquement qaund le host name est le meme sur les deux servur, pour éviter les probleme mieux changer le host name du nouveu serveur. 1. Nous devons remettre les IPs de l'ancien serveur 2. Suprimer le contenu du doosier  /etc/manualmx   ->  https://support.cpanel.net/hc/en-us/articles/360058681693-Exim-shows-error-remote-host-address-is-the-local-host-when-processing-mail 3. Ensuit nous devons réinistialiser le routage des emails pour qu'il soit en LOCAL ( si il est en local en choisit recommander , on peut revenir vers Local où reste sur recommander qui est deja

forwarders were added to your account

  [15:04:17 mail root@7777/usr/local/cpanel/logs/archive]cPs# zgrep 'roupeso' /usr/local/cpanel/logs/archive/* | grep addfwd | grep POST
 Check IO Wait   #sar -s 10:00:00 #iotop #iostat -x 1 10 #lsblk #sar -urSqB -f /var/log/sa/sa19 -s 04:00:00 -e 05:00:00   ( Stat de la la date 19 et l'heyre 04 -05 ) sar -q -f /var/log/sa/sa23 23 la date du jour  

Consommation Bande passante

 Quand un client un transferer des emails via son ancien hébergeur vers le nouveau via un SCRIPT qui s'execute dans son PC qui connecte les deux serveur via IMAP Disk USAGE était avant le début du transfert à 0 GB

Nouveau Serveur Dédié via WHMM

 le nom est pointer vers le WHM DANS LE NOUVEAU SERVEUR dans la zone de DNS AJOUTER, l'addres IP ( sans le dernier chiffre 0.168.192 in-addr.arpa ) et dedans on ajout un regirretement PTR qui pointe vers le HOSTNAME  l'address IP complete  0.0.168.192 in-addr.arpa  PTR mail.domanie.dz et ajouter cela dans le WHM principle dans la ZOND in-addr-arpa ->  0.0.168.192 in-addr.arpa  PTR mail.domanie.dz Dans le nouveau domaine ( dans le OLD WHM ) on ajoute le DMARC et DKIM et le SFP , on copier du  OLD WHM vers le nouveau

cPanel DDOS attack - Mitigate Slowloris Attacks - mod_qos

Apache mod_evasive Mod_evasive is a module available for the Apache HTTP server that can automatically block attacks by rate-limiting any IP that sends too many requests in a short time. Start by installing the module from WHM’s  EasyApache 4  interface. Select the  Currently Installed Packages  profile, search for  mod_evasive  in the  Apache Modules  section, and then install it. The default settings are good for most servers, but you can tweak them further by editing the configuration file  /etc/apache2/conf.d/300-mod_evasive.conf . You can also whitelist specific IP addresses or classes, so legitimate requests are not blocked. Configure CSF to block attacks While  mod_evasive  works very well, it only protects the Apache webserver. In order to harden other services as well, you can install the free  ConfigServer Security & Firewall  (CSF), which also includes a WHM plugin. As the  root  user, install CSF with these terminal commands: cd /usr/src rm -fv csf.tgz wget https://down

MaxRequestWorkers

J'ai eu une surcharge sur un site web avec l'ouverture des réservations , les visites  ont explosées. Solution : j'ai effectué une redirection vers un serveur héberger a l’étrange où Twitter où Facebook, et j'augmente le   MaxRequestWorkers à 250 You can update the MaxRequestWorkers value in WHM with the following steps: Log in to WHM as the root user. Navigate to  Home »Service Configuration »Apache Configuration »Global Configuration . Update the "Max Request Worker" value. Set the ServerLimit value to something larger than MaxRequestWorkers Select Save.

cPanel limit access APACHE

  how can i limit access APACHE only in "domaine.dz" ? Not necessarily through Apache, however, php-fpm would do this if this domain was set to use the PHP-FPM handler. Activating fpm for this domain would allow them to limit the amount of traffic this user can have concurrently through the max_children variable. Information on this variable will be below. PHP-FPM Performance Tuning Basics I see that the PHP-FPM php handler isn't enabled or installed on this server. So what I'd suggest if you'd like to do this is to install the PHP-FPM handler and set this domain to use this: How to install PHP-FPM How to change PHP handlers   How can i add performance of my APACHE, without disrupting mail which is important then to the APACHE ? I see that the server's Apache installation reached the maxrequestworkers variable which prevented traffic for the server from being processed. The MaxRequestWorkers variable limits the amount of concurrent processes apache is handling

NextCloud installation

 https://www.linuxbabe.com/ubuntu/install-nextcloud-ubuntu-20-04-apache-lamp-stack  

GLBP : Gateway Load Balancing Protocol

Source : http://idum.fr/spip.php?article230   GLBP : Gateway Load Balancing Protocol Ce cours explique comment fonctionne le protocole GLBP, comment le mettre en place, explique le fonctionnement des différentes options possible et comment mettre en place une authentification. Gateway Load Balancing Protocol est un protocole propriétaire Cisco qui permet de faire de la redondance ainsi que de la répartition de charge sur plusieurs routeurs utilisant une seule adresse IP virtuelle, mais plusieurs adresses MAC virtuelles. Sommaire : I) Introduction 1) Principe de fonctionnement 2) Schéma réseau II) Configuration de Base III) Mise en place de GLBP 1) GBLP coté LAN : groupe 1 2) GLBP coté WAN : groupe 2 3) Test de fonctionnement IV) Configurations du load balancing 1) Round Robin 2) Weighted 3) host-dependent V) Configuration d’un track 1) Configurations 2) Observations VI) Authentification GLBP 1) Authentification avec mot de passe 2) Authentification avec une Key-string 3) Authentificati