grut
grut
IImmich
Created by grut on 8/4/2023 in #help-desk-support
Saving logs to file?
OK i managed to fix my issue... Immich logs are colored, so there are escape chars everywhere... so the the line of logs (which was actually read by crowdsec, just not parsed) was not parsed correctly.. So i fixed my parser (that you can get in crowdsec hub if necessary 🙂 )
7 replies
IImmich
Created by grut on 8/4/2023 in #help-desk-support
Saving logs to file?
but in the best world it's indeed what would be the best solution 🙂
7 replies
IImmich
Created by grut on 8/4/2023 in #help-desk-support
Saving logs to file?
i tried ^^ but ... for now, i can get it working (but i'm trying in parallel ^^). For now, it seems not reading the container logs... since i can fail login 40 times in a row ^^
7 replies
IImmich
Created by grut on 8/4/2023 in #help-desk-support
Saving logs to file?
yes, i know that. the problem is that each time it restarts, the path changes and (in this case) crowdsec will be lost ^^ And it restart at least once a day for backing up... that's why im trying to save it in a know, fixed file 🙂
7 replies
IImmich
Created by grut on 8/1/2023 in #help-desk-support
Can't get IP address on failed login
Not no thanks to all the people contributing to this amazing software!
15 replies
IImmich
Created by grut on 8/1/2023 in #help-desk-support
Can't get IP address on failed login
well done! its working!
`[Nest] 7 - 08/02/2023, 7:32:47 PM WARN [AuthService] Failed login attempt for user [email protected] from ip address 192.168.0.254
[Nest] 7 - 08/02/2023, 7:34:03 PM WARN [AuthService] Failed login attempt for user [email protected] from ip address 176.172.44.211
`[Nest] 7 - 08/02/2023, 7:32:47 PM WARN [AuthService] Failed login attempt for user [email protected] from ip address 192.168.0.254
[Nest] 7 - 08/02/2023, 7:34:03 PM WARN [AuthService] Failed login attempt for user [email protected] from ip address 176.172.44.211
15 replies
IImmich
Created by grut on 8/1/2023 in #help-desk-support
Can't get IP address on failed login
great! i'll try to give a try! Is there a way to try the PR? so i can tell you if it's working :p
15 replies
IImmich
Created by grut on 8/1/2023 in #help-desk-support
Can't get IP address on failed login
actually this are all the header provided : Hostname: aa4f30e7117d IP: 127.0.0.1 IP: 172.18.0.15 RemoteAddr: 172.18.0.14:33520 GET / HTTP/1.1 Host: test.grutor.ovh User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8 Accept-Encoding: gzip, deflate, br Accept-Language: fr;q=0.7 Cache-Control: max-age=0 Sec-Ch-Ua: "Not/A)Brand";v="99", "Brave";v="115", "Chromium";v="115" Sec-Ch-Ua-Mobile: ?0 Sec-Ch-Ua-Platform: "Windows" Sec-Fetch-Dest: document Sec-Fetch-Mode: navigate Sec-Fetch-Site: cross-site Sec-Fetch-User: ?1 Sec-Gpc: 1 Upgrade-Insecure-Requests: 1 X-Forwarded-For: 192.168.0.70 X-Forwarded-Host: test.grutor.ovh X-Forwarded-Port: 443 X-Forwarded-Proto: https X-Forwarded-Server: 83f5a075734b X-Real-Ip: 192.168.0.70
15 replies
IImmich
Created by grut on 8/1/2023 in #help-desk-support
Can't get IP address on failed login
normally it does. I check the forwarded header using the traefik/whoami container (which merely displays the received headers) and both X-Real-IP and X-Forwarded-For and provided, with the real ip
15 replies
IImmich
Created by grut on 8/1/2023 in #help-desk-support
Can't get IP address on failed login
Technically, yes it's still running (haven't take the time to remove it) but i'm not going thru it, traefik sends directly to the web and server container.
15 replies