Skip to main content

Voraussetzungen und Installation

Installation Ubuntu minimized Server mit fester IPv4 und deaktiviertem IPv6.

Weiter wie folgt:

sudo bash
apt update
apt upgrade
apt install qemu-guest-agent
systemctl enable qemu-guest-agent
wget https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-agent/wazuh-agent_4.7.2-1_amd64.deb && sudo WAZUH_MANAGER='192.168.50.10' WAZUH_AGENT_GROUP='default,DOCKER,LINUX,SERVERS' dpkg -i ./wazuh-agent_4.7.2-1_amd64.deb
sudo systemctl daemon-reload
sudo systemctl enable wazuh-agent
sudo systemctl start wazuh-agent
timedatectl set-timezone Europe/Berlin
init 6

Die benötigte Docker Anpassung in der ossec.conf erfolgt über die Gruppenzuordnung DOCKER.

Nun den DNS Eintrag erstellen für den Server.

Anschließend wird Docker und Pyhton3-PIP installiert:

curl -sSL https://get.docker.com/ | CHANNEL=stable sh
systemctl enable --now docker
systemctl start docker
apt-get install python3-pip
pip3 install docker==4.2.0 urllib3==1.26.18
apt update
apt upgrade
sudo usermod -aG docker pleibling

Nun wird Mailcow installiert:

sudo bash
umask 0022
cd /opt
git clone https://github.com/mailcow/mailcow-dockerized
cd mailcow-dockerized
./generate_config.sh
vi mailcow.conf
docker compose pull
docker compose up -d