Cahier 2017 groupe n°1

De Wiki de Projets IMA

Introduction

Cahier des charges

Séance 1 : Installation des routeurs et câblage

Configuration du serveur SSH sur la machine virtuelle

apt install ssh
service ssh stop
vim /etc/ssh/sshd_config 
PermitRootLogin Prohibited 
PermitRootLogin yes
service ssh restart 

Configuration DNS

apt install bind9
service bind9 stop
vim /etc/default/bind9

On modifie :

OPTIONS="-4 -u bind"
vim /etc/bind/dns.goyave.space


$TTL    604800
@       IN      SOA     dns.goyave.space. root.goyave.space (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
        IN      NS      dns.goyave.space.
ns      IN      A       193.48.57.182
www     IN      A       193.48.57.182


vim /etc/bind/named.conf.local
 zone "goyave.space" {
       type master;
       file "/etc/bind/dns.goyave.space";
};
vim /etc/bind/named.conf.options
options {
        directory "var/cache/bind"
        dnssec-validation auto;
        auth-nxdomain no;
        allow-transfer {"allowed_to_transfer";}
        listen-on-v6 {any;}
}
acl "allowed_to_transfer" {
        217.70.177.40/32;
}