E
2011-02-08 12:24:42,782 fail2ban.actions: WARNING [cccam_signaturefailed] xx already banned
2011-02-08 12:24:57,811 fail2ban.actions: WARNING [cccam_signaturefailed] xx already banned
2011-02-08 12:25:05,833 fail2ban.actions: WARNING [cccam_signaturefailed] xx already banned
2011-02-08 12:25:17,863 fail2ban.actions: WARNING [cccam_signaturefailed] xx already banned
2011-02-08 12:25:21,873 fail2ban.actions: WARNING [cccam_signaturefailed] xx already banned
2011-02-08 12:25:28,888 fail2ban.actions: WARNING [cccam_signaturefailed] xx already banned
2011-02-08 12:25:35,902 fail2ban.actions: WARNING [cccam_signaturefailed] xx already banned
2011-02-08 12:25:36,907 fail2ban.actions: WARNING [cccam_signaturefailed] xx already banned
2011-02-08 12:25:56,945 fail2ban.actions: WARNING [cccam_signaturefailed] xx already banned
2011-02-08 12:26:05,964 fail2ban.actions: WARNING [cccam_signaturefailed] xx already banned
2011-02-08 12:26:16,986 fail2ban.actions: WARNING [cccam_signaturefailed] xx already banned
2011-02-08 12:26:26,004 fail2ban.actions: WARNING [cccam_signaturefailed] xx already banned
2011-02-08 12:26:38,026 fail2ban.actions: WARNING [cccam_signaturefailed] xx already banned
2011-02-08 12:26:39,031 fail2ban.actions: WARNING [cccam_signaturefailed] xxx already banned
Feb 10 16:26:57 CCcam: user xyz login attempt from 1.2.3.4
Feb 10 16:26:57 CCcam: client xyz already connected, remove stale connection (1.2.3.4)
Feb 10 16:26:57 asterix CCcam: client xyz@bf0d258fef1ef738, running CCcam 2.1.3
# Fail2Ban configuration file
#
# Author: Cyril Jaquier
#
# $Revision: 510 $
#
[Definition]
# Option: failregex
# Notes.: regex to match the password failures messages in the logfile. The
# host must be matched by a group named "host". The tag "<HOST>" can
# be used for standard IP/hostname matching and is only an alias for
# (?:::f{4,6}:)?(?P<host>\S+)
# Values: TEXT
#
#failregex = CCcam: double login .*, .* \(<HOST>\)
failregex = CCcam: .* already connected, remove stale connection \(<HOST>\)
# Option: ignoreregex
# Notes.: regex to ignore. If this regex matches, the line is ignored.
# Values: TEXT
#
ignoreregex =
Versuchs mal mit
/etc/fail2ban/jail.conf
Code:[cccam_[B]sign[/B]] enabled = true port = 12000 filter = cccam-[B]sign[/B] logpath = /var/log/daemon.log bantime = 1800 maxretry = 10
/etc/fail2ban/filter.d/cccam-sign.conf
Code:# Fail2Ban configuration file # # Author: Cyril Jaquier # # $Revision: 510 $ # [Definition] # Option: failregex # Notes.: regex to match the password failures messages in the logfile. The # host must be matched by a group named "host". The tag "<HOST>" can # be used for standard IP/hostname matching and is only an alias for # (?:::f{4,6}:)?(?P<host>\S+) # Values: TEXT # failregex = CCcam: kick <HOST>, signature failed # Option: ignoreregex # Notes.: regex to ignore. If this regex matches, the line is ignored. # Values: TEXT # ignoreregex =
...die aktuelle iptables Version scheint mit dem target "fail2ban-cccam_signaturefailed" ein Problem zu haben weil es zu viele chars sind (max 29 aber es sind 30)
/EDIT: Für alle die es bereits nach dem 1.Post installiert haben:
ihr braucht nur die Datei cccam-signature.conf umbenennen in cccam-sign.conf -> mv /etc/fail2ban/filter.d/cccam-signature.conf /etc/fail2ban/filter.d/cccam-sign.conf
und in der Datei /etc/fail2ban/jail.conf bennent ihr den Eintrag [cccam_signaturefailed] in [cccam_sign] um
und in der gleichen Datei ändert ihr noch die eine Zeile "filter = cccam-signature" in "filter = cccam-sign"
wobei mir gerade auffällt das man glaub ich nur den einen Eintrag in der jail.conf ändern muss.... [cccam_signaturefailed] in [cccam_sign]
...jetzt bin ich grad selber bissal vewirrt... vllt sollte ich mir doch mal fail2ban anguckn
...also ich glaube dabei is der filter entscheident - danach richtet sich welche datei aus filter.d geladen wird und da steht wiederum drin nach welchem Logeintrag gesucht wird.. der zu lange target-name entsteht durch den chain-name der in der jail.conf eingestellt wurde - also das in den [ ]
...oder verpeil ich das?
/EDIT: Hier die Files die man fürs aktuelle fail2ban brauch...
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?