Professional Documents
Culture Documents
1-Monter le cd de CentOS [root@localhost ~]# Mount /dev/cdrom /mnt 2-Se dplacer dans le rpertoire de montage (mnt) [root@localhost ~]# Cd /mnt [root@localhost mnt]# 3-Lister le contenu du rpertoire de montage (mnt) [root@localhost mnt]# Ls CentOS EULA GPL Images Isolinux NOTES RELEASE-NOTES-en RELEASE-NOTES-en.html RELEASE-NOTES-en_US RELEASE-NOTES-nl RELEASE-NOTES-nl.html RELEASE-NOTES-pt_BR
RELEASE-NOTES-es.html RELEASE-NOTES-fr
RELEASE-NOTES-cs
RPM-GPG-KEY-CentOS-5 TRANS.TBL
4-Se Dplacer dans le rpertoire contenant les fichiers d installations : CentOS [root@localhost mnt]# Cd CentOS [root@localhost CentOS]# 5-Installation des packages de nmap
[root@localhost CentOS]# Rpm -ivh nmap-4.11-1.1.i386.rpm 6-installation des packages de xinetd.d [root@localhost CentOS]# Rpm -ivh xinetd-2.3.14-10.el5.i386.rpm 7-Installation des packages de Telnet-server [root@localhost CentOS]# Rpm -ivh telnetTelnet-0.17-39.el5.i386.rpm telnet-server-0.17-39.el5.i386.rpm
[root@localhost ~]# Cd /etc/xinetd.d [root@localhost xinetd.d]# VI telnet # Default: on # Description: The telnet server serves telnet sessions; it uses \ # unencrypted username/password pairs for authentication.
= no = root = /usr/sbin/in.telnetd
log_on_failure += USERID Disable } 5-Changer le disable en mettant no la place yes # Default: on # Description: The telnet server serves telnet sessions; it uses \ # unencrypted username/password pairs for authentication. = yes
= no = root = /usr/sbin/in.telnetd
log_on_failure += USERID
Disable }
= no
6-Enregistrez le fichier de configuration de Telnet Echapp : wq ou : x ou : ZZ 7-Redmarrer le service Telnet [root@localhost ~]# Service xinetd restart Stopping xinetd: Starting xinetd: [root@localhost ~]# 8-Cration d un utilisation [root@localhost ~]# Adduser Ruben [root@localhost ~]# Passwd Ruben Changing password for user Ruben. New UNIX password: BAD PASSWORD: it is too short Retype new UNIX password: Passwd: all authentication tokens updated successfully. [root@localhost ~]# 9-Vrifier si le serveur est un ouvert sur un port [root@localhost ~]# Nmap 192.168.100.11 Starting Nmap 4.11 (http://www.insecure.org/nmap/) at 2012-04-27 07:56 PDT mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled. Try using -system-dns or specify valid servers with --dns_servers Interesting ports on 192.168.100.11: Not shown: 1676 closed ports PORT STATE SERVICE 22/tcp open Ssh 23/tcp open telnet [OK] [OK]
Nmap finished: 1 IP address (1 host up) scanned in 0.192 seconds [root@localhost ~]#
C:\>ping 192.168.100. Rsultat Envoi d'une requte 'Ping' sur 192.168.100.11 avec 32 octets de donnes : Rponse de 192.168.100.11 : octets=32 temps=42 ms TTL=64 Rponse de 192.168.100.11 : octets=32 temps<1ms TTL=64 Rponse de 192.168.100.11 : octets=32 temps<1ms TTL=64 Rponse de 192.168.100.11 : octets=32 temps<1ms TTL=64 Statistiques Ping pour 192.168.100.11: Paquets : envoys = 4, reus = 4, perdus = 0 (perte 0%), Dure approximative des boucles en millisecondes : Minimum = 0ms, Maximum = 42ms, Moyenne = 10ms C:\> 3-Se connecter la machine du serveur C:\>telnet 192.168.100.11 Rsultat CentOS release 5.5 (Final) Kernel 2.6.18-194.el5 on an i686 Login: Ruben Password: Loc [Ruben@localhost ~]$ su Password: passer [root@localhost ~]# Ou
-Doucliquez sur le logiciel putty -Host name (or IP address): 192.168.100.11 -Cochez Telnet -Cliquez sur open Rsultat CentOS release 5.5 (Final) Kernel 2.6.18-194.el5 on an i686 Login: Ruben Password: Loc [Ruben@localhost ~]$ su Password: passer [root@localhost ~]#
1-Attribution l adresse IP la machine [root@localhost ~]# Ifconfig eth0 192.168.20.1 up [root@localhost ~]# 2-Briser les chaines de scurit [root@localhost ~]# Iptables flush ou iptables -F [root@localhost ~]# 3-Vrification du fichier de configuration ssh [root@localhost ~]# Rpm -qa|grep Ssh Openssh-askpass-4.3p2-41.el5 Openssh-4.3p2-41.el5
Openssh-server-4.3p2-41.el5 Openssh-clients-4.3p2-41.el5 [root@localhost ~]# 4-Ouvrir le fichier de configuration de ssh [root@localhost ~]# vi /etc/ssh/sshd_config Une Partie du Rsultat #Port 22 (1) #Protocol 2,1 Protocol 2 #LoginGraceTime 2m (2) #PermitRootLogin yes (3) #StrictModes yes #MaxAuthTries 6 #PasswordAuthentication yes #PermitEmptyPasswords no (4) PasswordAuthentication yes 5-Enlever le caractre # sur les lignes numrots de 1 4 Partie du rsultat Port 22 (1) #Protocol 2,1 Protocol 2 LoginGraceTime 2m (2) PermitRootLogin yes (3) #StrictModes yes #MaxAuthTries 6 #PasswordAuthentication yes PermitEmptyPasswords no (4)
PasswordAuthentication yes 6-Enregistrez le fichier de configuration de ssh Echapp : wq ou : x ou : ZZ 7-Redmarrer le service ssh [root@localhost ~]# Service sshd restart Stopping sshd: Starting sshd: [root@localhost ~]# 8-Visualiser le port de serveur ssh [root@localhost ~]# Nmap 192.168.20.1 Starting Nmap 4.11 (http://www.insecure.org/nmap/ ) at 2012-04-27 08:51 PDT mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled. Try using -system-dns or specify valid servers with --dns_servers Interesting ports on 192.168.20.1: Not shown: 1676 closed ports PORT STATE SERVICE 22/tcp open Ssh 23/tcp open telnet 111/tcp open rpcbind 741/tcp open netgw Nmap finished: 1 IP address (1 host up) scanned in 0.116 seconds [root@localhost ~]# 9-Cration d un fichier dans le rpertoire tmp [root@localhost ~]# Echo "ceci est un test">/tmp/file [root@localhost ~]# [OK] [OK]
1-Attribution de l adresse IP la machine -Cliquez sur dmarrer -Cliquez sur Excuter -Tapez la commande cmd -Tapez la commande cd\ -Tapez la commande ncpa.cpl -Cliquez droit connexion rseau local -Cliquez sur proprit -Slectionnez protocole internet (TCP/IP) -Cliquez sur proprit -cochez utiliser l adresse IP suivant : Adresse IP : 192.168.20.2 Masque de rseau : 255.255.255.0 -Cliquez sur Ok -Cliquez sur Fermer Microsoft Windows XP [version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\Administrateur>cd\ C:\>ncpa.cpl C:\> 2-Pinger l adresse IP du serveur C:\>ping 192.168.20.1 Envoi d'une requte 'Ping' sur 192.168.20.1 avec 32 octets de donnes : Rponse de 192.168.20.1 : octets=32 temps=5 ms TTL=64 Rponse de 192.168.20.1 : octets=32 temps<1ms TTL=64
Rponse de 192.168.20.1 : octets=32 temps<1ms TTL=64 Rponse de 192.168.20.1 : octets=32 temps<1ms TTL=64 Statistiques Ping pour 192.168.20.1: Paquets : envoys = 4, reus = 4, perdus = 0 (perte 0%), Dure approximative des boucles en millisecondes : Minimum = 0ms, Maximum = 5ms, Moyenne = 1ms C:\> 3-Se connecter la machine du serveur -Doucliquez sur le logiciel putty -Host name (or IP address): 192.168.20.1 -Cochez SSH -Cliquez sur open Rsultat Login as: root root@192.168.20.1's password: Last login: Wed Apr 25 16:30:34 2012 [root@localhost ~]# 4-Copier le fichier cr sur le serveur dans le rpertoire tmp vers le client -Douclique sur Winscp -Host name: 192.168.20.1 -User name: root -Password: passer -Slectionnez SCP -Cliquez sur LOGIN -Doucliquez sur le rpertoire tmp -Cliquez sans lcher sur le fichier et dplacer vers la machine cliente Ouvrir le fichier
-Doucliquez sur le fichier copi Rsultat Ceci est un test Ou 3-Se connecter sur la machine serveur -Doucliquez sur le logiciel SSH Secure Shell client -Cliquez sur la petite icne en forme d cran d ordinateur (connecte) -Host name: 192.168.20.1 -User name: root -Cliquez sur connect -Password: passer -Cliquez sur Ok -Cliquez sur New File Transfer window (SSH secure shell transfert client) [root@localhost ~]# vi /tmp/files.txt (au niveau du serveur) Rsultat Ceci est un test de makaya ndoulou de Carl chrubin
3-Lister le contenu du rpertoire de montage (mnt) [root@localhost mnt]# Ls CentOS EULA GPL Images Isolinux NOTES RELEASE-NOTES-en RELEASE-NOTES-en.html RELEASE-NOTES-en_US RELEASE-NOTES-nl RELEASE-NOTES-nl.html RELEASE-NOTES-pt_BR
RELEASE-NOTES-es.html RELEASE-NOTES-fr
RELEASE-NOTES-cs
RPM-GPG-KEY-CentOS-5 TRANS.TBL
RELEASE-NOTES-de.html RELEASE-NOTES-ja.html [root@localhost mnt]# 4-Se Dplacer dans le rpertoire CentOS [root@localhost mnt]# Cd CentOS [root@localhost CentOS]# 5-Installer les packages de Nfs [root@localhost Centos]# Rpm -ivh nfs Nfs4-acl-tools-0.3.3-1.el5.i386.rpm Nfs-utils-1.0.9-44.el5.i386.rpm Nfs-utils-lib-1.0.8-7.6.el5.i386.rpm Nfs-utils-lib-devel-1.0.8-7.6.el5.i386.rpm [root@localhost CentOS]# Rpm -ivh Nfs-utilsNfs-utils-1.0.9-44.el5.i386.rpm Nfs-utils-lib-1.0.8-7.6.el5.i386.rpm Nfs-utils-lib-devel-1.0.8-7.6.el5.i386.rpm [root@localhost CentOS]# Rpm -ivh Nfs-utils-
[root@localhost Centos]# Rpm -ivh Nfs-utils-1.0.9-44.el5.i386.rpm [root@localhost Centos]# Rpm -ivh Nfs-utils-lib-1.0.8-7.6.el5.i386.rpm [root@localhost CentOS]# Rpm -ivh Nfs-utils-lib-devel-1.0.8-7.6.el5.i386.rpm
8-Enregistrer le fichier de configuration de Nfs Echapp : wq ou : x ou : ZZ 9-Redmarrer le service Nfs et Portmap [root@localhost ~]# Service nfs restart Shutting down NFS mountd: Shutting down NFS daemon: Shutting down NFS quotas: Shutting down NFS services: Starting NFS services: Starting NFS quotas: Starting NFS daemon: Starting NFS mountd: [root@localhost ~]# [root@localhost ~]# Service portmap restart Stopping portmap: Starting portmap: [root@localhost ~]# 10-Visualiser le port de Nfs [root@localhost ~]# Nmap 192.168.20.1 Starting Nmap 4.11 (http://www.insecure.org/nmap/ ) at 2012-04-27 17:44 PDT mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled. Try using -system-dns or specify valid servers with --dns_servers Interesting ports on 192.168.20.1: Not shown: 1673 closed ports PORT STATE SERVICE [OK] [OK] [OK] [OK] [OK] [OK] [OK] [OK] [OK] [OK]
739/tcp open unknown 954/tcp open unknown 968/tcp open unknown 2049/tcp open nfs
Nmap finished: 1 IP address (1 host up) scanned in 0.226 seconds [root@localhost ~]# 11-Autoriser le montage du rpertoire licence [root@localhost ~]# Exportfs a ou exportfs -r [root@localhost ~]# Pour ne pas autoriser le montage d un rpertoire : exportfs -ua 12-Pinger l adresse du client aprs avoir attribution l adresse la machine cliente [root@localhost ~]# Ping 192.168.20.2 PING 192.168.20.2 (192.168.20.2) 56(84) bytes of data. 64 bytes from 192.168.20.2: icmp_seq=1 ttl=64 time=0.655 ms 64 bytes from 192.168.20.2: icmp_seq=2 ttl=64 time=0.263 ms 64 bytes from 192.168.20.2: icmp_seq=3 ttl=64 time=0.197 ms
--- 192.168.20.2 Ping statistics --3 packets transmitted, 3 received, 0% packet loss, time 2422ms Rtt min/avg/max/mdev = 0.197/0.371/0.655/0.203 ms [root@localhost ~]#
1-Attribution de l adresse IP la machine client : 192.168.20.2 [root@localhost root]# Ifconfig eth0 192.168.20.2 up [root@localhost root]# 2-Briser les chaines de securit [root@localhost root]# Iptables F ou iptables --flush [root@localhost root]# 3-Pinger l adresse du server [root@localhost root]# Ping 192.168.20.1 PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. 64 bytes from 192.168.20.1: icmp_seq=1 ttl=64 time=20.9 ms 64 bytes from 192.168.20.1: icmp_seq=2 ttl=64 time=0.298 ms 64 bytes from 192.168.20.1: icmp_seq=3 ttl=64 time=0.203 ms --- 192.168.20.2 Ping statistics --3 packets transmitted, 3 received, 0% packet loss, time 2006ms Rtt min/avg/max/mdev = 0.203/7.143/20.930/9.748 ms [root@localhost root]#
4-Cration d un rpertoire rception du rpertoire mont [root@localhost root]# Mkdir /master [root@localhost root]# 4-Monter le repertoire Cree [root@localhost root]# Mount t Nfs 192.168.20.1:/var/licence /master [root@localhost root]# 5-Se Dplacer dans le rpertoire master [root@localhost root]# Cd /master [root@localhost master]# 6-Lister le contenu du rpertoire
[root@localhost master]# Ls Test [root@localhost master]# 7-Visualiser le contenu du fichier [root@localhost root]#cat test Ceci EST UN test [root@localhost root]# Pour Dmonter le rpertoire mont: umount /master/
NOTES
RELEASE-NOTES-es.html RELEASE-NOTES-fr
RELEASE-NOTES-cs
RPM-GPG-KEY-CentOS-5 TRANS.TBL
RELEASE-NOTES-de.html RELEASE-NOTES-ja.html [root@localhost mnt]# 4-Se Dplacer dans le rpertoire CentOS [root@localhost mnt]# Cd CentOS [root@localhost CentOS]# 5-Installer les packages DHCP [root@localhost Centos]# Rpm -ivh dhcp Dhcp-3.0.5-23.el5.i386.rpm Dhcp-devel-3.0.5-23.el5.i386.rpm
dhcpv6-1.0.10-18.el5.i386.rpm dhcpv6-client-1.0.10-18.el5.i386.rpm
[root@localhost ~]# Iptables -F ou iptables --flush [root@localhost ~]# 3-Vrifier le fichier de configuration si c est installer [root@localhost ~]# Rpm -qa|grep dhcp dhcp-3.0.5-23.el5 dhcpv6-client-1.0.10-18.el5 [root@localhost ~]# 4-Copier le fichier install dans un autre fichier [root@localhost ~]# Rpm -ql dhcp Partie du rsultat /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample [root@localhost ~]# Cp /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample /etc/dhcpd.conf Cp: overwrite `/etc/dhcpd.conf'? Yes [root@localhost ~]# 5-Ouvrir le fichier de configuration [root@localhost ~]# vi /etc/dhcpd.conf Partie du rsultat Subnet 192.168.0.0 netmask 255.255.255.0 { Range dynamic-bootp 192.168.0.128 192.168.0.254; Default-lease-time 21600; Max-lease-time 43200; } 6-Configurer le fichier Ddns-update-style interim; Ignore client-updates; Subnet 192.168.10.0 netmask 255.255.255.0 {
Range dynamic-bootp 192.168.10.1 192.168.10.20; Default-lease-time 86400; max-lease-time 172800; } 7-Enregistrer le fichier de configuration de DHCP Echapp : wq ou : x ou : ZZ 8-Redmarrer le service DHCP [root@localhost ~]# Service dhcpd restart Shutting down dhcpd: Starting dhcpd: [root@localhost ~]# [OK] [OK]
Pour les clients Windows, cochez obtenir une adresse IP automatiquement Microsoft Windows XP [version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\Administrateur>ipconfig /all Configuration IP de Windows Nom de l'hte . . . . . . . . . . : carl-6475b0d88e Suffixe DNS principal . . . . . . : Type de noud . . . . . . . . . . : Inconnu Routage IP activ . . . . . . . . : Non Proxy WINS activ . . . . . . . . : Non Carte Ethernet Connexion au rseau local: Suffixe DNS propre la connexion : Description . . . . . . . . . . . : VMware Accelerated AMD PCNet Adapter Adresse physique . . . . . . . . .: 00-0C-29-42-0C-7E DHCP activ. . . . . . . . . . . : Oui Configuration automatique active . . . . : Oui Adresse IP . . . . . . . . . . . . : 192.168.10.19 Masque de sous-rseau. . . . . . : 255.255.255.0 Passerelle par dfaut. . . . . . : Serveur DHCP. . . . . . . . . . . : 192.168.10.21 Bail obtenu . . . . . . . . . . . : samedi 28 avril 2012 03:10:59 Bail expirant . . . . . . . . . . : dimanche 29 avril 2012 03:10:59 C:\Documents and Settings\Administrateur> C:\Documents and Settings\Administrateur>getmac (pour voir l adresse mac) Adresse physique Nom du transport =================== ==========================================================
1-Monter le cdrom de CentOS dans le rpertoire mnt [root@localhost ~]# mount /dev/cdrom /mnt Mount: block device /dev/cdrom is write-protected, mounting readonly [root@localhost ~]# 2-Se Dplacer dans le rpertoire de montage: mnt [root@localhost ~]# Cd /mnt [root@localhost mnt]# 3-Lister le contenu du rpertoire de montage mnt. [root@localhost mnt]# Ls CentOS EULA RELEASE-NOTES-en RELEASE-NOTES-en.html RELEASE-NOTES-nl RELEASE-NOTES-nl.html
RELEASE-NOTES-en_US
RELEASE-NOTES-pt_BR
RELEASE-NOTES-en_US.html RELEASE-NOTES-
RELEASE-NOTES-es
RELEASE-NOTES-es.html RELEASE-NOTES-fr
RELEASE-NOTES-cs
RPM-GPG-KEY-CentOS-5 TRANS.TBL
RELEASE-NOTES-de.html RELEASE-NOTES-ja.html [root@localhost mnt]# 4-Se Dplacer dans le rpertoire du cdrom CentOS. [root@localhost mnt]# Cd CentOS [root@localhost CentOS]# 5-Installer le package de NTP. [root@localhost CentOS]# Rpm -ivh ntp-4.2.2p19.el5.centos.2.1.i386.rpm
Warning: ntp-4.2.2p1-9.el5.centos.2.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897 Preparing... ########################################### [100%] Package ntp-4.2.2p1-9.el5.centos.2.1.i386 is already installed [root@localhost CentOS]#
1-Vrification du fichier de configuration NTP. [root@localhost CentOS]# Rpm -qa|grep ntp Chkfontpath-1.10.1-1.1 Ntp-4.2.2p1-9.el5.centos.2.1 [root@localhost CentOS]# Ou [root@localhost CentOS]# Rpm -q ntp ntp-4.2.2p1-9.el5.CentOS.2.1 [root@localhost CentOS]# 2-Ouvrir le fichier de configuration [root@localhost CentOS]# vi /etc/ntp.conf Partie du fichier { #restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap Server 127.127.1.0 clock). # local clock (Laissez par dfaut l @IP et le local
A la fin du fichier ajout : server 192.168.1.1 } 3-Modification de la ligne restrict et ajouter la ligne : server @IP serveur { Restrict 192.168.20.0 mask 255.255.255.0 nomodify notrap Server 192.168.20.1 ( la fin du fichier).
} 4-Enregistrer le fichier Echapp : x ou : wq ou : ZZ 5-Attribution de l adresse IP [root@localhost CentOS]# Ifconfig eth0 192.168.20.1 up [root@localhost CentOS]# 6-Briser les chaines de scurit [root@localhost CentOS]# Iptables F ou iptables --flush [root@localhost CentOS]# 7-Monter le serveur NTP sur le port 123. [root@localhost ~]# Iptables -I INPUT -p udp --dport 123 -j ACCEPT [root@localhost ~]# 8-Redmarrer le serveur NTP. [root@localhost CentOS]# Service ntpd restart Shutting down ntpd: Starting ntpd: [root@localhost CentOS]# 9-Personnaliser la date au format de la ville ou tu est situe. [root@localhost ~]# Tzselect Please identify a location so that time zone rules can be set correctly. Please select a continent or ocean. 1) Africa 2) Americas 3) Antarctica [OK] [OK]
4) Arctic Ocean 5) Asia 6) Atlantic Ocean 7) Australia 8) Europe 9) Indian Ocean 10) Pacific Ocean 11) None - I want to specify the time zone using the Posix TZ format. #? 10-Taper le chiffre 1(Africa) #? 1 Please select a country. 1) Algeria 2) Angola 3) Benin 4) Botswana 5) Burkina Faso 6) Burundi 7) Cameroon 18) Gabon 19) Gambia 20) Ghana 21) Guinea 22) Guinea-Bissau 23) Kenya 24) Lesotho 35) Rwanda 36) Sao Tome & Principe 37) Senegal 38) Sierra Leone 39) Somalia
40) South Africa 41) Spain 42) Sudan 43) Swaziland 44) Tanzania 45) Togo 46) Tunisia
10) Congo (Dem. Rep.) 11) Congo (Rep.) 12) Cote d'Ivoire
27) Malawi
11-Taper le chiffre 37(Sngal). #? 37 The following information has been given: Senegal Therefore TZ='Africa/Dakar' will be used. Local time is now: Fri May 11 01:31:53 GMT 2012.
Universal Time is now: Fri May 11 01:31:53 UTC 2012. Is the above information OK? 1) Yes 2) No #? 12-Taper le chiffre 1(Yes) #? 1 You can make this change permanent for yourself by appending the line TZ='Africa/Dakar'; export TZ To the file '.profile' in your home directory; then log out and log in again. Here is that TZ value again, this time on standard output so that you
Can use the /usr/bin/tzselect command in shell scripts: Africa/Dakar [root@localhost ~]# Ou Utiliser la commande Timeconfig
13-Afficher la date de la machine serveur [root@localhost ~]# Date Fri May 11 01:38:27 GMT 2012 [root@localhost ~]#
Ou
Partie du fichier {
Restrict 192.168.20.0 mask 255.255.255.0 notrust nomodify notrap (cette ligne peut se masque aprs l enregistrement).
Restrict 192.168.20.0 mask 255.255.255.0 notrust nomodify notrap (cette ligne peut se masque aprs l enregistrement).
Restrict 192.168.20.0 mask 255.255.255.0 notrust nomodify notrap (cette ligne peut se masque aprs l enregistrement).
CONFIGURATION DU CLIENT
1-Attribution de l adresse IP -cliquez sur Dmarrer -cliquez sur Excuter -Taper la commande : ncpa.cpl -cliquez sur Ok -clique droit sur connexion rseau local -cliquez sur Proprit -Slectionnez protocole internet TCP/IP -cliquez sur Proprits -cochez utiliser l adresse IP suivant -Adresse IP : 192.168.20.3 -Masque de rseau : 255 .255.255.0 -cliquez sur Ok. 2-Pinger l adresse IP du serveur. -cliquez sur Dmarrer -cliquez sur Excuter -Taper la commande : cmd
-Double clique sur l horloge -Cliquez sur l onglet temps internet -serveur : 192.168.20.1 -cliquez sur mettre jour
3-Configuration le fichier syslog.conf Ce placez a la du fichier, ajoutez la ligne suivante : *.* @192.168.20.1 4-Attribution de l adresse IP : 192.168.20.1
CONFIGURATION DU CLIENT
1-Attribution de l adresse IP : 192.168.20.2 -Cliquez sur Dmarrer -Cliquez sur Excuter -Taper la commande : ncpa.cpl -cliquez sur Ok -clique droit sur connexion rseau local -cliquez sur Proprit
-Slectionnez protocole internet TCP/IP -cliquez sur Proprits -cochez utiliser l adresse IP suivant -Adresse IP : 192.168.20.3 -Masque de rseau : 255 .255.255.0 -cliquez sur Ok. 2-Pinger l adresse IP du serveur. -cliquez sur Dmarrer -cliquez sur Excuter -Taper la commande : cmd
3-Visualiser le journal d erreur. -Cliquez sur Dmarrer -Cliquez poste de travail -Cliquez panneau de configuration -Cliquez sur outils d administration -Cliquez sur observateur d vnement
La commande dmsg : permet les messages concernant le noyau. La commande tail f messages : permet d afficher les messages. La commande cat messages : contient les messages.
Partie du fichier
9-Configurer le fichier
10-Enregistrer le fichier
Echappe : x ou : wq : ZZ
16-Attribution de l adresse IP
Copier
CONFIGURATION DU CLIENT
1-Attribution de l adresse IP
-Cliquez sur Dmarrer -Cliquez sur Excuter -Taper la commande : ncpa.cpl -cliquez sur Ok -clique droit sur connexion rseau local -cliquez sur Proprit -Slectionnez protocole internet TCP/IP -cliquez sur Proprits -cochez utiliser l adresse IP suivant -Adresse IP : 192.168.20.2 -Masque de rseau : 255 .255.255.0 -cliquez sur Ok. 2-Pinger l adresse IP du serveur
4-Dsactiver le pare-feu
-Cliquez sur Dmarrer -Cliquez sur Excuter -Taper la commande : firewall.cpl -Cocher Dsactiver -Cliquez sur Ok.
4-Vrification de l adresse IP
Enregistrer Echappe : x ou : wq ou : ZZ
Rechercher la chaine ServerName : Mettre le nom de la machine et le domaine. Rechercher la chaine DocumentRoot :
Rechercher la chaine DirectoryIndex : Ajouter le fichier html que nous allons crer Modification du fichier
5-Tester la configuration
Ou
Ou
Dans le fichier DefaultRoot /tmp/ftp Defaultchdir /tmp/ftp puis enregistrer le fichier : Echappe : x
Ou
-cliquez sur Proprit -Cocher utiliser l adresse IP suivant et utiliser l adresse du serveur DNS
-cliquez sur Avanc, cliquez sur DNS, cliquez Ajouter pour ajouter l adresse IP, cliquez sur Ajoutez pour ajoutez le suffixe du domaine et entrer sur la ligne suffixe du Domain et cocher utiliser le suffixe du Domain de cette connexion
4-Excuter le FTP
Ou lancer filezilla client entrer l adresse IP, utilisateur, mot de passe, port et cliquez sur connexion et transfrer les fichiers
-Slectionnez protocole internet (TCP/IP) puis cliquez sur proprit -Cochez Utiliser l adresse IP suivant puis cliquez sur OK et Fermer
Aprs avoir configur le DNS, on peut procder l installation et configuration de postfix Installation des packages de postfix #rpm ivh postfix-2.3.3-2.1.el5.2.i386.rpm
Dcommenter la ligne 255 et saisir l adresse du rseau 192.168.100.0 /24 (@IP du serveur 192.168.100.1) : mynetworks=192.168.100.0/24, 127.0.0.1/8
Dcommenter la ligne 438 et clique droit, ouvrir un nouveau onglet et saisir : #whereis procmail Procmail : /usr/bin/procmail Mail_command=/usr/bin/procmail
Dmarrer et redmarrer le service postfix #service postfix start #service postfix restart
Compte existant
Aprs avoir configur DNS et Postfix, il faut procder l installation et la configuration de Dovecot Installation de perl-DBI #rpm ivh perl-DBI-1.52-2.el5.i386.rpm
Ok et Fermer
OK
Dsactiv le pare-feu en tapant dans la boite d excution : firewall.cpl ou en ligne de commande et cocher Dsactiv. Pinger l adresse IP du serveur
Lancer Outlook Cliquez sur identit si Outlook est dj configur, Slectionn ajout une identit, saisir le compte et ok
Suivant
Suivant
Suivant
Suivant
Terminer
Cliquer sur boite de rception puis outil, envoyer et recevoir, envoyer et recevoir tout pour voir le message crit au niveau du serveur
La ligne 28 saisir : $domain= postfix.com ; la ligne 29 saisir @IP : $imapserverAddress= 192.168.100.1 ; la ligne 30 : $imapPort=143 ; la ligne 31 $useSendmail= false ; la ligne 32 $smtpserverAdrress= 192.168.100.1 ; et la ligne 33 $smtpPort=25 ;
Cration d un lien qui pointe vers le chemin de squirrelmail #ln s /usr/share/squirrelmail /var/www/webmail