-
-
Save seraphyn/a4b473f8e39b0cc8ac12 to your computer and use it in GitHub Desktop.
Owncloud 6 Sicherheit durch fail2ban. Nochmals die Dateien mit den Einstellungen, da es scheinbar Fehler bei dem kopieren der Daten gibt. Bitte in der jail.conf die Daten hinzufügen nicht ersetzen *Owncloud 8* hinzugefügt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[owncloud] | |
enabled = true | |
port = 80,443 | |
protocol = tcp | |
filter = owncloud | |
logpath = /var/log/syslog | |
maxretry = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Definition] | |
failregex = .*ownCloud.*Login failed:.*, IP:(?P<host>\S*) | |
ignoreregex = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//** Lösche diese Zeile und bennen owncloud8.conf in ownclid.conf um Owncloud 8 Regex | |
[Definition] | |
failregex = .*ownCloud\[\d{1,5}\]: \{core\}.*Login failed: ‘\w+’ \(Remote IP: ''\S+ | |
ignoreregex = |
failregex = .*Login failed:.* IP: '<HOST>\)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hallo seraphyn,
Danke für deine Anleitung. Leider Funktioniert es nicht ganz. Hier das Resultet:
ich habe Owncloud 8.0.4
dort sieht der log folgendermaßen aus:
Jun 18 17:21:14 omv ownCloud[13856]: {core} Login failed: 'testuser' (Remote IP: '::ffff:123.123.123.123', X-Forwarded-For: '')
mit dem Inhalt in der owncloud.conf:
[Definition]
failregex = ._ownCloud[\d{1,5}]: {core}._Login failed: ‘\w+’ (Remote IP: ''\S+
ignoreregex =
bekomme ich folgenden Fehler im Testdurchlauf:
No 'host' group in '._ownCloud[\d{1,5}]: {core}._Login failed: ‘\w+’ (Remote IP: ''\S+'
Cannot remove regular expression. Index 0 is not valid
Results
Failregex
|- Regular expressions:
| [1] ._ownCloud[\d{1,5}]: {core}._Login failed: ‘\w+’ (Remote IP: ''\S+
|
`- Number of matches:
[1] 0 match(es)
Ignoreregex
|- Regular expressions:
|
`- Number of matches:
Summary
Sorry, no match
Look at the above section 'Running tests' which could contain important