nouveau fichier : sisr1/srv-dhcp/dhcpd.conf
nouveau fichier : sisr1/srv-dhcp/interfaces nouveau fichier : sisr1/srv-dhcp/isc-dhcp-server nouveau fichier : sisr1/srv-dhcp/nat.sh nouveau fichier : sisr1/srv-dns1/db.sio1lab.lan nouveau fichier : sisr1/srv-dns1/db.sio1lab.lan.rev nouveau fichier : sisr1/srv-dns1/interfaces nouveau fichier : sisr1/srv-dns1/named.conf.local nouveau fichier : sisr1/srv-dns1/named.conf.options nouveau fichier : sisr1/srv-dns1/resolv.conf nouveau fichier : sisr1/srv-dns1/sshd_config nouveau fichier : sisr1/srv-dns2/db.sio1lab.lan nouveau fichier : sisr1/srv-dns2/db.sio1lab.lan.rev nouveau fichier : sisr1/srv-dns2/interfaces nouveau fichier : sisr1/srv-dns2/named.conf.local nouveau fichier : sisr1/srv-dns2/named.conf.options nouveau fichier : sisr1/srv-dns2/resolv.conf
This commit is contained in:
19
sisr1/srv-dns1/db.sio1lab.lan
Normal file
19
sisr1/srv-dns1/db.sio1lab.lan
Normal file
@@ -0,0 +1,19 @@
|
||||
;
|
||||
; BIND data file for local loopback interface
|
||||
;
|
||||
$TTL 604800
|
||||
@ IN SOA deb-dns1-jb.sio1lab.lan. root.sio1lab.lan. (
|
||||
2 ; Serial
|
||||
604800 ; Refresh
|
||||
86400 ; Retry
|
||||
2419200 ; Expire
|
||||
604800 ) ; Negative Cache TTL
|
||||
;
|
||||
@ IN NS deb-dns1-jb.
|
||||
|
||||
deb-dns1-jb IN A 192.168.0.160
|
||||
deb-dhcp-jb IN A 192.168.0.161
|
||||
|
||||
|
||||
dhcp IN CNAME deb-dhcp-jb
|
||||
dns1 IN CNAME deb-dns1-jb
|
22
sisr1/srv-dns1/db.sio1lab.lan.rev
Normal file
22
sisr1/srv-dns1/db.sio1lab.lan.rev
Normal file
@@ -0,0 +1,22 @@
|
||||
;
|
||||
; BIND data file for local loopback interface
|
||||
;
|
||||
$TTL 604800
|
||||
@ IN SOA deb-dns1-jb.sio1lab.lan. root.sio1lab.lan. (
|
||||
2 ; Serial
|
||||
604800 ; Refresh
|
||||
86400 ; Retry
|
||||
2419200 ; Expire
|
||||
604800 ) ; Negative Cache TTL
|
||||
;
|
||||
@ IN NS deb-dns1-jb.sio1lab.lan.
|
||||
|
||||
deb-dns1-jb IN A 192.168.0.120
|
||||
deb-dhcp-jb IN A 192.168.0.121
|
||||
|
||||
|
||||
dhcp IN CNAME deb-dhcp-jb
|
||||
dns1 IN CNAME deb-dns1-jb
|
||||
|
||||
160 IN PTR deb-dhcp-jb
|
||||
161 IN PTR deb-dns1-jb
|
19
sisr1/srv-dns1/interfaces
Normal file
19
sisr1/srv-dns1/interfaces
Normal file
@@ -0,0 +1,19 @@
|
||||
# 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
|
||||
allow-hotplug enp0s3
|
||||
iface enp0s3 inet static
|
||||
address 192.168.0.161/24
|
||||
gateway 192.168.0.1
|
||||
|
||||
auto enp0s8
|
||||
iface eth0 inet static
|
||||
address 192.168.2.1/24
|
||||
|
19
sisr1/srv-dns1/named.conf.local
Normal file
19
sisr1/srv-dns1/named.conf.local
Normal file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// Do any local configuration here
|
||||
//
|
||||
// zone directe
|
||||
zone "sio1lab.lan" {
|
||||
type master;
|
||||
file "/etc/bind/db.sio1lab.lan";
|
||||
};
|
||||
|
||||
// zone inverse
|
||||
zone "0.168.192.in-addr.arpa" {
|
||||
type master;
|
||||
notify no;
|
||||
file "/etc/bind/db.sio1lab.lan.rev";
|
||||
};
|
||||
// Consider adding the 1918 zones here, if they are not used in your
|
||||
// organization
|
||||
//include "/etc/bind/zones.rfc1918";
|
||||
|
25
sisr1/srv-dns1/named.conf.options
Normal file
25
sisr1/srv-dns1/named.conf.options
Normal file
@@ -0,0 +1,25 @@
|
||||
options {
|
||||
directory "/var/cache/bind";
|
||||
|
||||
// If there is a firewall between you and nameservers you want
|
||||
// to talk to, you may need to fix the firewall to allow multiple
|
||||
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
|
||||
|
||||
// If your ISP provided one or more IP addresses for stable
|
||||
// nameservers, you probably want to use them as forwarders.
|
||||
// Uncomment the following block, and insert the addresses replacing
|
||||
// the all-0's placeholder.
|
||||
|
||||
forwarders {
|
||||
10.121.38.7;
|
||||
10.121.38.8;
|
||||
};
|
||||
|
||||
//========================================================================
|
||||
// If BIND logs error messages about the root key being expired,
|
||||
// you will need to update your keys. See https://www.isc.org/bind-keys
|
||||
//========================================================================
|
||||
dnssec-validation auto;
|
||||
|
||||
listen-on-v6 { any; };
|
||||
};
|
4
sisr1/srv-dns1/resolv.conf
Normal file
4
sisr1/srv-dns1/resolv.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
domain sio1lab.lan
|
||||
search sio1lab.lan
|
||||
nameserver 127.0.0.1
|
||||
|
122
sisr1/srv-dns1/sshd_config
Normal file
122
sisr1/srv-dns1/sshd_config
Normal file
@@ -0,0 +1,122 @@
|
||||
|
||||
# This is the sshd server system-wide configuration file. See
|
||||
# sshd_config(5) for more information.
|
||||
|
||||
# This sshd was compiled with PATH=/usr/local/bin:/usr/bin:/bin:/usr/games
|
||||
|
||||
# The strategy used for options in the default sshd_config shipped with
|
||||
# OpenSSH is to specify options with their default value where
|
||||
# possible, but leave them commented. Uncommented options override the
|
||||
# default value.
|
||||
|
||||
Include /etc/ssh/sshd_config.d/*.conf
|
||||
|
||||
#Port 22
|
||||
#AddressFamily any
|
||||
#ListenAddress 0.0.0.0
|
||||
#ListenAddress ::
|
||||
|
||||
#HostKey /etc/ssh/ssh_host_rsa_key
|
||||
#HostKey /etc/ssh/ssh_host_ecdsa_key
|
||||
#HostKey /etc/ssh/ssh_host_ed25519_key
|
||||
|
||||
# Ciphers and keying
|
||||
#RekeyLimit default none
|
||||
|
||||
# Logging
|
||||
#SyslogFacility AUTH
|
||||
#LogLevel INFO
|
||||
|
||||
# Authentication:
|
||||
|
||||
#LoginGraceTime 2m
|
||||
PermitRootLogin yes
|
||||
#StrictModes yes
|
||||
#MaxAuthTries 6
|
||||
#MaxSessions 10
|
||||
|
||||
#PubkeyAuthentication yes
|
||||
|
||||
# Expect .ssh/authorized_keys2 to be disregarded by default in future.
|
||||
#AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
|
||||
|
||||
#AuthorizedPrincipalsFile none
|
||||
|
||||
#AuthorizedKeysCommand none
|
||||
#AuthorizedKeysCommandUser nobody
|
||||
|
||||
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
|
||||
#HostbasedAuthentication no
|
||||
# Change to yes if you don't trust ~/.ssh/known_hosts for
|
||||
# HostbasedAuthentication
|
||||
#IgnoreUserKnownHosts no
|
||||
# Don't read the user's ~/.rhosts and ~/.shosts files
|
||||
#IgnoreRhosts yes
|
||||
|
||||
# To disable tunneled clear text passwords, change to no here!
|
||||
#PasswordAuthentication yes
|
||||
#PermitEmptyPasswords no
|
||||
|
||||
# Change to yes to enable challenge-response passwords (beware issues with
|
||||
# some PAM modules and threads)
|
||||
KbdInteractiveAuthentication no
|
||||
|
||||
# Kerberos options
|
||||
#KerberosAuthentication no
|
||||
#KerberosOrLocalPasswd yes
|
||||
#KerberosTicketCleanup yes
|
||||
#KerberosGetAFSToken no
|
||||
|
||||
# GSSAPI options
|
||||
#GSSAPIAuthentication no
|
||||
#GSSAPICleanupCredentials yes
|
||||
#GSSAPIStrictAcceptorCheck yes
|
||||
#GSSAPIKeyExchange no
|
||||
|
||||
# Set this to 'yes' to enable PAM authentication, account processing,
|
||||
# and session processing. If this is enabled, PAM authentication will
|
||||
# be allowed through the KbdInteractiveAuthentication and
|
||||
# PasswordAuthentication. Depending on your PAM configuration,
|
||||
# PAM authentication via KbdInteractiveAuthentication may bypass
|
||||
# the setting of "PermitRootLogin prohibit-password".
|
||||
# If you just want the PAM account and session checks to run without
|
||||
# PAM authentication, then enable this but set PasswordAuthentication
|
||||
# and KbdInteractiveAuthentication to 'no'.
|
||||
UsePAM yes
|
||||
|
||||
#AllowAgentForwarding yes
|
||||
#AllowTcpForwarding yes
|
||||
#GatewayPorts no
|
||||
X11Forwarding yes
|
||||
#X11DisplayOffset 10
|
||||
#X11UseLocalhost yes
|
||||
#PermitTTY yes
|
||||
PrintMotd no
|
||||
#PrintLastLog yes
|
||||
#TCPKeepAlive yes
|
||||
#PermitUserEnvironment no
|
||||
#Compression delayed
|
||||
#ClientAliveInterval 0
|
||||
#ClientAliveCountMax 3
|
||||
#UseDNS no
|
||||
#PidFile /run/sshd.pid
|
||||
#MaxStartups 10:30:100
|
||||
#PermitTunnel no
|
||||
#ChrootDirectory none
|
||||
#VersionAddendum none
|
||||
|
||||
# no default banner path
|
||||
#Banner none
|
||||
|
||||
# Allow client to pass locale environment variables
|
||||
AcceptEnv LANG LC_*
|
||||
|
||||
# override default of no subsystems
|
||||
Subsystem sftp /usr/lib/openssh/sftp-server
|
||||
|
||||
# Example of overriding settings on a per-user basis
|
||||
#Match User anoncvs
|
||||
# X11Forwarding no
|
||||
# AllowTcpForwarding no
|
||||
# PermitTTY no
|
||||
# ForceCommand cvs server
|
Reference in New Issue
Block a user