Nombre de host
nano /etc/hostname
nano /etc/hosts
IP servidor
nano /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
ethernets:
ens18:
addresses:
- 10.20.200.104/24
gateway4: 10.20.200.1
nameservers:
addresses:
- 10.20.200.36
search:
- siua.ac.cr
version: 2
Correo
nano /etc/postfix/main.cf
myhostname=web4.siua.ac.cr
X
myhostname=documentos.siua.ac.cr
/etc/init.d/postfix reload
Logwatch
nano /etc/logwatch/conf/logwatch.conf
MailFrom = Logwatch_Asistencia
X
MailFrom = Logwatch_Documentos
Fail2Ban
sendername
sendername = ASISTENCIA_Fail2Ban
X
sendername = DOCUMENTOS_Fail2Ban
service fail2ban restart
- Verificamos la jaulas para ver si son los correctos para el servidor que estamos trabajando
fail2ban-client status