diff --git a/fail2ban-fix-openssh98.patch b/fail2ban-fix-openssh98.patch
new file mode 100644
index 0000000..e09353e
--- /dev/null
+++ b/fail2ban-fix-openssh98.patch
@@ -0,0 +1,13 @@
+Index: fail2ban-1.0.2/config/filter.d/sshd.conf
+===================================================================
+--- fail2ban-1.0.2.orig/config/filter.d/sshd.conf
++++ fail2ban-1.0.2/config/filter.d/sshd.conf
+@@ -16,7 +16,7 @@ before = common.conf
+ 
+ [DEFAULT]
+ 
+-_daemon = sshd
++_daemon = sshd(?:-session)?
+ 
+ # optional prefix (logged from several ssh versions) like "error: ", "error: PAM: " or "fatal: "
+ __pref = (?:(?:error|fatal): (?:PAM: )?)?
diff --git a/fail2ban.changes b/fail2ban.changes
index 800372d..6f0e5a2 100644
--- a/fail2ban.changes
+++ b/fail2ban.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Wed Sep  4 07:54:06 UTC 2024 - Marcus Meissner <meissner@suse.com>
+
+- fail2ban-fix-openssh98.patch: fix to work with openssh 9.8 (bsc#1230101)
+
 -------------------------------------------------------------------
 Mon Feb 26 08:17:28 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
 
diff --git a/fail2ban.spec b/fail2ban.spec
index a50b44e..6200663 100644
--- a/fail2ban.spec
+++ b/fail2ban.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package fail2ban
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -50,6 +50,8 @@ Patch201:       %{name}-0.10.4-env-script-interpreter.patch
 Patch300:       fail2ban-opensuse-service-sfw.patch
 # PATCH-FEATURE-OPENSUSE harden_fail2ban.service.patch jsegitz@suse.com -- Added hardening to systemd service(s) bsc#1181400
 Patch301:       harden_fail2ban.service.patch
+# PATCH-FIX-OPENSUSE fail2ban-fix-openssh98.patch meissner@suse.com -- support openssh9.8 bsc#1230101
+Patch302:       fail2ban-fix-openssh98.patch
 BuildRequires:  fdupes
 BuildRequires:  logrotate
 BuildRequires:  python-rpm-macros
@@ -140,6 +142,7 @@ sed -i -e 's/^before = paths-.*/before = paths-opensuse.conf/' config/jail.conf
 %patch -P 300 -p1
 %endif
 %patch -P 301 -p1
+%patch -P 302 -p1
 
 rm 	config/paths-arch.conf \
 	config/paths-debian.conf \