[gelöst] Gescheiterte Anmeldungen werden nur von WEBphone protokolliert

Begonnen von TomHB, 19 August 2019, 20:39:06

Vorheriges Thema - Nächstes Thema

TomHB

Hallo Zusammen,

ich habe da ein etwas seltsames Problem.
Bei der Einrichtung von fail2ban ist mir aufgefallen, das mein FHEM gar nicht sauber fehlgeschlagenen Anmeldungen protokolliert.

Eingerichtet sind bei mir die (Standard?) FHEMWEBs: WEB, WEBphone und WEBtablet.
Seltsamerweise meldet nur WEBphone etwas ins Log.
Ich habe die Konfigurationen verglichen, aber keinen großen Unterschied gefunden, was dies aus machen könnte.


Konfig für WEB

attr WEB HTTPS 1
attr WEB JavaScripts codemirror/fhem_codemirror.js
attr WEB allowfrom xxxx
attr WEB csrfToken xxxx
attr WEB editConfig 1
attr WEB endPlotNow 1
attr WEB icon it_internet
attr WEB plotfork 1
attr WEB refresh 3600
attr WEB room System
define allowed_WEB allowed
setuuid allowed_WEB xxxx
attr allowed_WEB basicAuth xxxx
attr allowed_WEB room System
attr allowed_WEB validFor WEB



Konfig für

define WEBphone FHEMWEB 8084 global
setuuid WEBphone xxxx
attr WEBphone HTTPS 1
attr WEBphone allowfrom xxxx
attr WEBphone comment xxxx
attr WEBphone csrfToken xxxx
attr WEBphone defaultRoom xxxx
attr WEBphone endPlotToday 1
attr WEBphone hiddengroup xxxx
attr WEBphone hiddenroom xxxx
attr WEBphone icon it_internet
attr WEBphone plotfork 1
attr WEBphone room System
attr WEBphone title Heimsteuerung
attr WEBphone verbose 3
define allowed_WEBphone allowed
setuuid allowed_WEBphone xxxx
attr allowed_WEBphone basicAuth xxxx
attr allowed_WEBphone basicAuthMsg xxxx
attr allowed_WEBphone room System
attr allowed_WEBphone validFor WEBphone
attr allowed_WEBphone verbose 4


Jemand eine Idee?
Ist Browser-unabhängig - wäre aber auch egal, weil wegen die Sicherheit...

rudolfkoenig

Die Meldung "Login denied for user >XX< via YY" kommt, wenn verbose fuer das betroffene allowed >= 3 ist, oder nicht gesetzt, und global verbose >= 3 ist.

TomHB

Hmmm...

Global steht auf 1
WEB auf 3 gesetzt
WEBphone steht auf 0

Das Ergebnis ist leider das Gleiche: WEB sagt nix, WEBphone meldet brav.

rudolfkoenig

Wie ich geschrieben habe:
Zitatwenn verbose fuer das betroffene allowed >= 3 ist, oder nicht gesetzt, und global verbose >= 3 ist.
Verbose fuer WEB/WEBphone ist irrelevant.

TomHB

Zitat von: rudolfkoenig am 20 August 2019, 11:47:45
Wie ich geschrieben habe:Verbose fuer WEB/WEBphone ist irrelevant.

Entschuldigung, ich hatte überhaupt nicht auf der Pfanne, dass der Webzugang je Port über 2 Teile definiert wird.
Danke, jetzt funktioniert es.