TP sysres IMA2a5 2018/2019 G1 : Différence entre versions

De Wiki d'activités IMA
Ligne 39 : Ligne 39 :
 
       bridge_hw 00:22:4d:7a:f0:70
 
       bridge_hw 00:22:4d:7a:f0:70
  
 +
      '''/etc/dhcp/dhclient.conf'''
 +
      # Configuration file for /sbin/dhclient.
 +
      #
 +
      # This is a sample configuration file for dhclient. See dhclient.conf's
 +
      #    man page for more information about the syntax of this file
 +
      #    and a more comprehensive list of the parameters understood by
 +
      #    dhclient.
 +
      #
 +
      # Normally, if the DHCP server provides reasonable information and does
 +
      #    not leave anything out (like the domain name, for example), then
 +
      #    few changes must be made to this file, if any.
 +
      #
 +
     
 +
      option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
 +
     
 +
      send host-name = gethostname();
 +
      request subnet-mask, broadcast-address, time-offset, routers,
 +
          domain-name, domain-name-servers, domain-search, host-name,
 +
          dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
 +
          netbios-name-servers, netbios-scope, interface-mtu,
 +
          rfc3442-classless-static-routes, ntp-servers;
 +
 +
      #send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
 +
      #send dhcp-lease-time 3600;
 +
      #supersede domain-name "fugue.com home.vix.com";
 +
      #prepend domain-name-servers 127.0.0.1;
 +
      #require subnet-mask, domain-name-servers;
 +
      timeout 180;
 +
      retry 180;
 +
      #reboot 10;
 +
      #select-timeout 5;
 +
      #initial-interval 2;
 +
      #script "/sbin/dhclient-script";
 +
      #media "-link0 -link1 -link2", "link0 link1";
 +
      #reject 192.33.137.209;
 +
     
 +
      #alias {
 +
      #  interface "eth0";
 +
      #  fixed-address 192.5.5.213;
 +
      #  option subnet-mask 255.255.255.255;
 +
      #}
 +
     
 +
      #lease {
 +
      #  interface "eth0";
 +
      #  fixed-address 192.33.137.200;
 +
      #  medium "link0 link1";
 +
      #  option host-name "andare.swiftmedia.com";
 +
      #  option subnet-mask 255.255.255.0;
 +
      #  option broadcast-address 192.33.137.255;
 +
      #  option routers 192.33.137.250;
 +
      #  option domain-name-servers 127.0.0.1;
 +
      #  renew 2 2000/1/12 00:00:01;
 +
      #  rebind 2 2000/1/12 00:00:01;
 +
      #  expire 2 2000/1/12 00:00:01;
 +
      #}
  
  

Version du 2 octobre 2018 à 08:53

Axel & Bastien COMMUTATEUR


Introduction

Ce TP consiste en la réalisation d’une maquette de réseau permettant de manipuler les protocoles de redondance réseau ainsi que le protocole réseau IPv6. D’un point de vue système nous avons à installer une machine virtuelle Xen avec l'OS Devian ainsi qu'implanter un auto-commutateur et un point d'accès. Nous effectuerons pas la suite des tests d'intrusion sur ces points d'accès afin de voir la vulnérabilité des différents protocoles de clé (WEP / WPA-PSK).

Installation des systèmes d'exploitation

Configuration de l'accès internet sur la Zabeth08

L’accès internet ne fonctionnait pas car l’utilitaire bridge-utils n’était pas installé, on a donc modifié le /etc/network/interfaces pour se connecter au serveur DHCP et avoir un accès internet temporaire et télécharger les paquets de cet utilitaire. Une fois ces paquets installés la connexion de pont a pu être réalisée, on a donc essayé de se connecter de nouveau, mais la connexion ne fonctionnait toujours pas. On a donc modifié le fichier /etc/dhcp/dhclient.conf pour ajouter un timeout et un retry de 180. Voici ces fichiers:

     /etc/network/interfaces
     
     # This file describes the network interfaces available on your system
     # and how to activate them. For more information, see interfaces(5).
     
     source /etc/network/interfaces.d/*
     
     # The loopback network interface
     auto lo
     iface lo inet loopback
     
     # The primary network interface (IPv4)
     auto eth0
     iface eth0 inet manual
     up ip link set dev $IFACE up
     
     # A secondary network interface (IPv4)
     auto eth1
     iface eth1 inet manual
     up ip link set dev $IFACE up
     
     # Bridge
     auto bridge
     iface bridge inet dhcp
     bridge_ports eth0 eth1
     bridge_hw 00:22:4d:7a:f0:70
     /etc/dhcp/dhclient.conf
     # Configuration file for /sbin/dhclient.
     #
     # This is a sample configuration file for dhclient. See dhclient.conf's
     #    man page for more information about the syntax of this file
     #    and a more comprehensive list of the parameters understood by
     #    dhclient.
     #
     # Normally, if the DHCP server provides reasonable information and does
     #    not leave anything out (like the domain name, for example), then
     #    few changes must be made to this file, if any.
     #
     
     option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
     
     send host-name = gethostname();
     request subnet-mask, broadcast-address, time-offset, routers,
         domain-name, domain-name-servers, domain-search, host-name,
         dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
         netbios-name-servers, netbios-scope, interface-mtu,
         rfc3442-classless-static-routes, ntp-servers;
     #send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
     #send dhcp-lease-time 3600;
     #supersede domain-name "fugue.com home.vix.com";
     #prepend domain-name-servers 127.0.0.1;
     #require subnet-mask, domain-name-servers;
     timeout 180;
     retry 180;
     #reboot 10;
     #select-timeout 5;
     #initial-interval 2;
     #script "/sbin/dhclient-script";
     #media "-link0 -link1 -link2", "link0 link1";
     #reject 192.33.137.209;
     
     #alias {
     #  interface "eth0";
     #  fixed-address 192.5.5.213;
     #  option subnet-mask 255.255.255.255;
     #}
     
     #lease {
     #  interface "eth0";
     #  fixed-address 192.33.137.200;
     #  medium "link0 link1";
     #  option host-name "andare.swiftmedia.com";
     #  option subnet-mask 255.255.255.0;
     #  option broadcast-address 192.33.137.255;
     #  option routers 192.33.137.250;
     #  option domain-name-servers 127.0.0.1;
     #  renew 2 2000/1/12 00:00:01;
     #  rebind 2 2000/1/12 00:00:01;
     #  expire 2 2000/1/12 00:00:01;
     #}


Installation avec Xen

Architecture réseau

Services internet

Tests d'intrusion