@@ -14,13 +14,12 @@ require cip-core-image.inc
DESCRIPTION = "CIP Core image including security packages"
IMAGE_INSTALL += "security-customizations"
+IMAGE_INSTALL += "fail2ban-config"
# Debian packages that provide security features
IMAGE_PREINSTALL += " \
openssl \
- fail2ban \
openssh-server openssh-sftp-server openssh-client \
- syslog-ng-core syslog-ng-mod-journal \
aide \
nftables \
libpam-pkcs11 \
new file mode 100644
@@ -0,0 +1,23 @@
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2024
+#
+# Authors:
+# Quirin Gylstorff <quirin.gylstorff@siemens.com>
+#
+# SPDX-License-Identifier: MIT
+#
+DESCRIPTION = "Basic fail2ban config with systemd as backend"
+
+inherit dpkg-raw
+
+DPKG_ARCH = "all"
+
+SRC_URI += "file://systemd-defaults.conf"
+
+DEBIAN_DEPENDS += "fail2ban, python3-systemd, python3-pyinotify"
+
+do_install[cleandirs] = "${D}/etc/fail2ban/jail.d/"
+do_install() {
+ install -m 644 ${WORKDIR}/systemd-defaults.conf ${D}/etc/fail2ban/jail.d/
+}
new file mode 100644
@@ -0,0 +1,11 @@
+[DEFAULT]
+
+syslog_backend = systemd
+sshd_backend = systemd
+dropbear_backend = systemd
+proftpd_backend = systemd
+pureftpd_backend = systemd
+wuftpd_backend = systemd
+postfix_backend = systemd
+dovecot_backend = systemd
+