Initial Build
This commit is contained in:
parent
dbd3264338
commit
ebf7ec173a
27
wazuhdebian.sh
Executable file
27
wazuhdebian.sh
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Descargar e instalar el agente de Wazuh
|
||||||
|
wget -qO - https://packages.wazuh.com/key/GPG-KEY-WAZUH | apt-key add -
|
||||||
|
echo "deb https://packages.wazuh.com/4.x/apt/ stable main" | tee /etc/apt/sources.list.d/wazuh.list
|
||||||
|
apt-get update
|
||||||
|
|
||||||
|
# Obtener la clave del agente del servidor Wazuh
|
||||||
|
echo "Ingrese la dirección IP o nombre de host del servidor Wazuh: "
|
||||||
|
read server_ip
|
||||||
|
echo "Ingrese el key del agente: "
|
||||||
|
read agent_key
|
||||||
|
|
||||||
|
WAZUH_MANAGER="$server_ip" apt-get install wazuh-agent
|
||||||
|
/var/ossec/bin/manage_agents -i $agent_key
|
||||||
|
|
||||||
|
# Iniciar el agente de Wazuh
|
||||||
|
systemctl daemon-reload
|
||||||
|
systemctl enable wazuh-agent
|
||||||
|
systemctl start wazuh-agent
|
||||||
|
|
||||||
|
# Desactivar las actualizaciones automáticas del agente
|
||||||
|
echo "Desactivando actualizaciones del wazuh-agent"
|
||||||
|
sed -i "s/^deb/#deb/" /etc/apt/sources.list.d/wazuh.list
|
||||||
|
apt-get update
|
||||||
|
|
||||||
|
|
7
wazuhdebian.sh.asc.sig
Normal file
7
wazuhdebian.sh.asc.sig
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
iIoEABYIADIWIQRFi3VFYtlWy+Zyp4AvKHk3FVpDgAUCZF/R3RQca211bm96QGNv
|
||||||
|
bmRvcmJzLm5ldAAKCRAvKHk3FVpDgNUMAP9bIAm7BbxhpGP8Tu0mSCym3/XMP60b
|
||||||
|
jOozQTpXcISbEwEAzMw228QzvfLLk5s6AFZECb4B7231da4FVagJIdmbEQs=
|
||||||
|
=E2UD
|
||||||
|
-----END PGP SIGNATURE-----
|
Loading…
Reference in New Issue
Block a user