Skip to content

Command Line

Command Line published on Aucun commentaire sur Command Line

Ligne de command / Monitor :

  • Top : Monitor les performances.
  • Vmstat : Monitor les statistiques de la mémoire virtuelle des processus, des disques …. (Installer sysstat).
  • Lsof : Monitor la liste des fichiers ouvert.
  • Tcpdump : Analyse les paquets réseau : ex: tcpdump -i eth0
  • Netstat : Monitor le trafic entrant et sortant.
  • Htop : Monitor les processus.
  • iotop : Même fonction que Ttop mais monitor les entrées / sorties disques.
  • iostat : Monitor les performances des disques.
  • iptraf : Monitor en temps réel le trafic réseau.
  • Suricata : Monitor les intrusions.
  • Ping
  • Ifconfig :
  • ifup & ifdown : monte et démonte une interface (eth0 – wan0 – br0 …..)
  • route : voir la table de routage
  • TCPDump : capture de paquets
  • nload : Monitore le trafic entrant et sortant
  • iftop : Comme NLOAD mais les sockets sont séparés
  • Iptraf

Migration Virtual Box to VmWare

Migration Virtual Box to VmWare published on Aucun commentaire sur Migration Virtual Box to VmWare

Comment migrer un machine virtuelle sous  « Virtual Box » vers  « VmWare » ?

  • Copier VDI : VBoxmanage.exe clonehd (chemin ou se trouve votre .vdi) par exemple : c:\export\xx2.vdi c:\export\xx2.vmdk –format
  • Il suffit de créer un nouvelle VM dan VMWareet d »‘importer le fichier vmdk précédemment créé.

ZABBIX : Installation

ZABBIX : Installation published on Aucun commentaire sur ZABBIX : Installation

Comment installer ZABBIX : Site officiel

zabbix_logo

 

 

– serveur:

1 : Serveur:

– wget http://repo.zabbix.com/zabbix/2.2/debian/pool/main/z/zabbix-release/zabbix-release_2.2-1+wheezy_all.deb
ou wget http://repo.zabbix.com/zabbix/2.4/debian/pool/main/z/zabbix-release/zabbix-release_2.4-1+wheezy_all.deb
– dpkg -i zabbix-release_2.2-1+wheezy_all.deb
– apt-get update
– apt-get install zabbix-server-mysql zabbix-frontend-php

-> creation de la base

– nano /etc/zabbix/apache.conf

– […]
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value date.timezone Europe/Paris
[…]

– service apache2 restart
– http://ip-address/zabbix – suivre installation
– http://ip-address/zabbix ‘admin / zabbix)
2 : Agent sur machine serveur

– apt-get install zabbix-agent

– nano /etc/zabbix/zabbix_agentd.conf

– Server=127.0.0.1
– ServerActive=127.0.0.1

– client Linux :

– wget http://repo.zabbix.com/zabbix/2.2/debian/pool/main/z/zabbix-release/zabbix-release_2.2-1+wheezy_all.deb
– dpkg -i zabbix-release_2.2-1+wheezy_all.deb
– apt-get install zabbix-agent
– nano /etc/zabbix/zabbix_agentd.conf
– Server=IP DU SERVEUR ZABBIX
– ListenPort=10050
– ListenIP=IP AGENT ZABBIX
– ServerActive=IP DU SERVEUR ZABBIX
– Hostname=NOM DE L HOTE (hostname)
– /etc/init.d/zabbix-agent restart

– client Windows :

– Télécharger l’agent Windows

  • Mettre le fichier de config et l’exécutable dans c:\zabbix
  • Modifier le fichier de conf :
    • In the config file.
      Server = Mettre IP du serveur Zabbix
      # ListenPort = 10050 (ou autre en fonction …)
      ServerActive = 127.0.0.1
  • Excuter dans une console : Afin de créer un service
    • C:\Zabbix\zabbix_agentd.exe –config C:\Zabbix\zabbix_agentd.win.conf –install
    • Démarrer le service

Sécuriser son Apache

Sécuriser son Apache published on Aucun commentaire sur Sécuriser son Apache

Comment sécuriser son Apache ?

  • Editer et remplacer dans : nano /etc/apache2/conf-available/security.conf


ServerTokens Prod

ServerSignature Off

  • Dans le fichier /etc/php5/apache2/php.ini, modifiez les options suivantes comme suit:
    • Mettre sur Off : expose_php off
  • Installer mod-security et libapache2-mod-evasive :
    • apt-get install libapache2-mod-security2
    • apt-get install libapache2-mod-evasive
  • Installer la protection Anti DDOS
    • Modifier : nano /etc/apache2/apache2.conf
      • MaxClients 150
        KeepAlive On
        MaxKeepAliveRequests 100
        KeepAliveTimeout 10

Primary Sidebar