Bratmat
(Bratmat)
11 Sierpień 2025 08:14
1
Mam problem z powiadomieniami - otóż co 10 sekund pojawia się komunikat:
Login attempt failed
Login attempt or request with invalid authentication from (tutaj adres ip mojego dostawcy internetu)
Po wyłączeniu cloudflared tunnel problem znika.
Wyłączyłem moje urządzenia (tablet,telefon, komputer) a komunikaty dalej się pojawiają co około 10 sekund.
szopen
11 Sierpień 2025 09:18
2
Hmm, to wygląda jak atak (może nieudolny, ale jednak).
Bratmat
(Bratmat)
11 Sierpień 2025 12:10
3
przejrzałem logi cloudflare i wygląda że to ja sam siebie atakuję z 3 adresów
szopen
11 Sierpień 2025 12:17
4
To usuń cache na klientach, usuń zbędne tokeny użytkownika (lub wręcz wszystkie, tylko będziesz się musiał logować ponownie co się wiąże z utratą ustawień schowanych w ciasteczkach).
Jakkolwiek nic nie powinno przychodzić z tunelu skoro masz wszystkie klienty wyłączone…
Bratmat
(Bratmat)
11 Sierpień 2025 12:48
5
włączyłem nawet podwójną weryfikacje i dalej lipa, wszystkie tokeny wykasowane
angler
(Cezary.K)
11 Sierpień 2025 12:52
6
Zaloguj się na CF Zero Trust i sprawdź od tej strony.
Bratmat
(Bratmat)
11 Sierpień 2025 13:00
7
Aug 11, 2025 2:48:49 PM
[IP_ADDRESS]
[DOMAIN]
/auth/revoke
Aug 11, 2025 2:48:49 PM
[IP_ADDRESS]
[DOMAIN]
/api/websocket
Aug 11, 2025 2:48:49 PM
[IP_ADDRESS]
[DOMAIN]
/auth/token
Aug 11, 2025 2:48:39 PM
[IP_ADDRESS]
[DOMAIN]
/api/websocket
Aug 11, 2025 2:48:39 PM
[IP_ADDRESS]
[DOMAIN]
/auth/revoke
Aug 11, 2025 2:48:39 PM
[IP_ADDRESS]
[DOMAIN]
/auth/token
Aug 11, 2025 2:48:29 PM
[IP_ADDRESS]
[DOMAIN]
/auth/token
Aug 11, 2025 2:48:29 PM
[IP_ADDRESS]
[DOMAIN]
/api/websocket
Aug 11, 2025 2:48:29 PM
[IP_ADDRESS]
[DOMAIN]
/auth/revoke
Aug 11, 2025 2:48:21 PM
[IP_ADDRESS]
[DOMAIN]
/auth/revoke
tak wyglądają zapytania w logu - wygląda że to wychodzi z serwera home assistant
artpc
(artur)
11 Sierpień 2025 15:43
8
A jaki to adres IP? Supervisor (Docker) IP?
Bratmat
(Bratmat)
11 Sierpień 2025 16:06
9
IP_ADDRESS - to adres zewnętrzny mojego dostawcy, ja jestem za natem, nie mam swojego ip - stąd cloudflare. System to Home Assistant OSMetoda instalacji
Home Assistant OS
Core
2025.8.0
Supervisor
2025.07.3
Operating System
16.0
Interfejs użytkownika
20250806.0
artpc
(artur)
11 Sierpień 2025 16:29
10
Jeżeli używasz integracji Cloudflare i jest z nią coś nie tak to możliwe ze supervisor podejmuje jakieś działania i wygląda to jak atak.
Konsola.
sudo ha supervisor logs
sudo ha supervisor reload
sudo ha supervisor restart
Bratmat
(Bratmat)
13 Sierpień 2025 16:59
11
artpc:
ha supervisor logs
w logu supervisor brak błędów
log z cloudflare:
2025-08-13T15:41:00Z ERR error="stream 12653 canceled by remote with error code 0" connIndex=2 event=1 ingressRule=0 originService=http://localhost:8321
2025-08-13T15:41:00Z ERR Request failed error="stream 12653 canceled by remote with error code 0" connIndex=2 dest=https://example.org/api/hassio/supervisor/logs/follow?lines=100 event=0 ip=192.168.1.10 type=http
2025-08-13T15:47:23Z ERR error="stream 39609 canceled by remote with error code 0" connIndex=0 event=1 ingressRule=0 originService=http://localhost:8321
2025-08-13T15:47:23Z ERR Request failed error="stream 39609 canceled by remote with error code 0" connIndex=0 dest=https://example.org/api/hassio/supervisor/logs/follow?lines=100 event=0 ip=192.168.1.11 type=http
2025-08-13T15:47:32Z ERR error="stream 46273 canceled by remote with error code 0" connIndex=1 event=1 ingressRule=0 originService=http://localhost:8321
2025-08-13T15:47:32Z ERR Request failed error="stream 46273 canceled by remote with error code 0" connIndex=1 dest=https://example.org/api/hassio/host/logs/follow?lines=100 event=0 ip=192.168.1.12 type=http
2025-08-13T15:49:06Z ERR error="stream 39629 canceled by remote with error code 0" connIndex=0 event=1 ingressRule=0 originService=http://localhost:8321
2025-08-13T15:49:06Z ERR Request failed error="stream 39629 canceled by remote with error code 0" connIndex=0 dest=https://example.org/api/hassio/dns/logs/follow?lines=100 event=0 ip=192.168.1.11 type=http
2025-08-13T15:49:16Z ERR error="stream 46333 canceled by remote with error code 0" connIndex=1 event=1 ingressRule=0 originService=http://localhost:8321
2025-08-13T15:49:16Z ERR Request failed error="stream 46333 canceled by remote with error code 0" connIndex=1 dest=https://example.org/api/hassio/addons/cebe7a76_hassio_google_drive_backup/logs/follow?lines=100 event=0 ip=192.168.1.12 type=http
2025-08-13T15:49:20Z ERR error="stream 46345 canceled by remote with error code 0" connIndex=1 event=1 ingressRule=0 originService=http://localhost:8321
2025-08-13T15:49:20Z ERR Request failed error="stream 46345 canceled by remote with error code 0" connIndex=1 dest=https://example.org/api/hassio/addons/a0d7b954_nodered/logs/follow?lines=100 event=0 ip=192.168.1.12 type=http
2025-08-13T15:49:40Z ERR error="stream 56133 canceled by remote with error code 0" connIndex=3 event=1 ingressRule=0 originService=http://localhost:8321
2025-08-13T15:49:40Z ERR Request failed error="stream 56133 canceled by remote with error code 0" connIndex=3 dest=https://example.org/api/hassio/addons/core_mosquitto/logs/follow?lines=100 event=0 ip=192.168.1.13 type=http
2025-08-13T15:50:46Z ERR error="Incoming request ended abruptly: context canceled" connIndex=2 event=1 ingressRule=0 originService=http://localhost:8321
2025-08-13T15:50:46Z ERR Request failed error="Incoming request ended abruptly: context canceled" connIndex=2 dest=https://example.org/api/hassio/audio/logs/follow?lines=100 event=0 ip=192.168.1.10 type=http
2025-08-13T15:50:49Z ERR error="Incoming request ended abruptly: context canceled" connIndex=2 event=1 ingressRule=0 originService=http://localhost:8321
2025-08-13T15:50:49Z ERR Request failed error="Incoming request ended abruptly: context canceled" connIndex=2 dest=https://example.org/api/hassio/multicast/logs/follow?lines=100 event=0 ip=192.168.1.10 type=http
2025-08-13T15:50:51Z ERR error="Incoming request ended abruptly: context canceled" connIndex=2 event=1 ingressRule=0 originService=http://localhost:8321
2025-08-13T15:50:51Z ERR Request failed error="Incoming request ended abruptly: context canceled" connIndex=2 dest=https://example.org/api/hassio/addons/core_samba/logs/follow?lines=100 event=0 ip=192.168.1.10 type=http
2025-08-13T15:51:00Z ERR error="Incoming request ended abruptly: context canceled" connIndex=2 event=1 ingressRule=0 originService=http://localhost:8321
2025-08-13T15:51:00Z ERR Request failed error="Incoming request ended abruptly: context canceled" connIndex=2 dest=https://example.org/api/hassio/addons/3ebf62bd_notifier/logs/follow?lines=100 event=0 ip=192.168.1.10 type=http
2025-08-13T15:51:04Z ERR error="Incoming request ended abruptly: context canceled" connIndex=3 event=1 ingressRule=0 originService=http://localhost:8321
2025-08-13T15:51:04Z ERR Request failed error="Incoming request ended abruptly: context canceled" connIndex=3 dest=https://example.org/api/hassio/addons/a0d7b954_zerotier/logs/follow?lines=100 event=0 ip=192.168.1.13 type=http
2025-08-13T15:52:45Z ERR error="stream 56161 canceled by remote with error code 0" connIndex=3 event=1 ingressRule=0 originService=http://localhost:8321
2025-08-13T15:52:45Z ERR Request failed error="stream 56161 canceled by remote with error code 0" connIndex=3 dest=https://example.org/api/hassio/addons/9074a9fa_cloudflared/logs/follow?lines=100 event=0 ip=192.168.1.13 type=http
2025-08-13T15:54:25Z ERR error="stream 56497 canceled by remote with error code 0" connIndex=3 event=1 ingressRule=0 originService=http://localhost:8321
2025-08-13T15:54:25Z ERR Request failed error="stream 56497 canceled by remote with error code 0" connIndex=3 dest=https://example.org/api/hassio/addons/9074a9fa_cloudflared/logs/follow event=0 ip=192.168.1.13 type=http
2025-08-13T15:56:05Z ERR error="Incoming request ended abruptly: context canceled" connIndex=0 event=1 ingressRule=0 originService=http://localhost:8321
2025-08-13T15:56:05Z ERR Request failed error="Incoming request ended abruptly: context canceled" connIndex=0 dest=https://example.org/api/hassio/addons/9074a9fa_cloudflared/logs/follow event=0 ip=192.168.1.11 type=http
2025-08-13T16:24:14Z WRN Your version 2025.7.0 is outdated. We recommend upgrading it to 2025.8.0
2025-08-13T16:55:31Z ERR error="stream 41801 canceled by remote with error code 0" connIndex=0 event=1 ingressRule=0 originService=http://localhost:8321
2025-08-13T16:55:31Z ERR Request failed error="stream 41801 canceled by remote with error code 0" connIndex=0 dest=https://example.org/api/hassio/host/logs/follow?lines=100 event=0 ip=192.168.1.11 type=http
artpc
(artur)
13 Sierpień 2025 19:02
12
Problem z Integracją lub samym Cloudflare.
Zalecana Aktualizacja.
2025-08-13T16:24:14Z WRN Your version 2025.7.0 is outdated. We recommend upgrading it to 2025.8.0
Korzystasz z ip_ban_enabled: true?
Bratmat
(Bratmat)
14 Sierpień 2025 17:00
13
nie, gdybym włączył ip_ban_enabled to odcieło by mi od razu tunel. Ta aktualizacja dziś zrobiłem:
Metoda instalacji
Home Assistant OS
Core
2025.8.0
Supervisor
2025.08.1
Operating System
16.1
Interfejs użytkownika
20250806.0```
Navita
18 Sierpień 2025 08:56
14
Wygląda na to, że jakaś aplikacja lub urządzenie w Twojej sieci próbują się logować nieprawidłowo, nawet po wyłączeniu znanych urządzeń. Sprawdź, czy masz jakieś smart urządzenia (np. smart TV, kamery, drukarki) podłączone do sieci.
Bratmat
(Bratmat)
20 Sierpień 2025 09:52
15
Mam smarttv, głośnik googla,drukarkę,kamery, odkurzacz valetudo - ale wszystko działa, mam też localtuya ze 20 urządzeń. Po wyłączeniu cloudflare problem nie występuje. Bez cloudflare łącze z zerotier i też wszystko działa.
MariuszAK
(mariuszak)
20 Sierpień 2025 17:04
16
A czy masz może niezbędny wpis w configuration.yaml
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
Jeśli weryfikacja proxy jest źle ustawiona, każdy taki request wygląda dla HA jak nowe logowanie z obcego IP → logi Login attempt failed
Bratmat
(Bratmat)
31 Sierpień 2025 07:27
17
Mam coś takiego :
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
- 192.x.x.0/24 # IP wewnętrzne sieci domowej
- 194.26.101.165 # IP Cloudflare (jeśli to jedno z nich)
- 127.0.0.1
- ::1
- 192.168.0.0/16
- 173.245.48.0/20
- 103.21.244.0/22
- 103.22.200.0/22
- 103.31.4.0/22
- 141.101.64.0/18
- 108.162.192.0/18
- 190.93.240.0/20
- 188.114.96.0/20
- 197.234.240.0/22
- 198.41.128.0/17
- 162.158.0.0/15
- 104.16.0.0/13
- 104.24.0.0/14
- 172.64.0.0/13
- 131.0.72.0/22
To za poradą chatgpt, przedtem miałem dokładnie co ty i oczywiście nic to nie zmieniło
MariuszAK
(mariuszak)
31 Sierpień 2025 08:11
18
Według mnie ten konfig jest bez sensu bo, jeżeli używasz dodatku cloudflared (tunel Cloudflare) w Home Assistant Supervisor, to wszystkie żądania HTTP trafiają do HA z kontenera cloudflared, a nie bezpośrednio z całej puli adresów Cloudflare.
Nie ma sensu wrzucać całej listy IP Cloudflare (która i tak co jakiś czas się zmienia), wystarczy zaufać tylko sieci dockerowej HA, czyli
- 172.30.33.0/24
chyba, że używasz HA + lokalny reverse proxy (np. Nginx) zainstalowany na tej samej maszynie, wtedy proxy gada z HA po 127.0.0.1
Nie wiem skąd u Ciebie tak liczne wystąpienia
Bratmat:
Login attempt or request
u mnie pojawiają się sporadycznie po 1 lub 2 na kilka miesięcy w sytuacji kiedy nie mogę połączyć się z aplikacji w telefonie (zwykle dotyczy to 1 z 4 urządzeń i jest to motorola) z adresem domenowym HA.
1 polubienie
Bratmat
(Bratmat)
31 Sierpień 2025 08:49
19
Wyłączyłem telefon bo chciałem sprawdzić czy aby zegarek nie wysyła czegoś, ale dalej komunikaty się pojawiają. Jeszcze chciałbym sprawdzić dwuetapową konfigurację logowania na cloudflare przez google ale to dla mnie zbyt skomplikowane
Jak się uporales z problemem?
Szukam w necie i na github są watki o restartach clodflare jak doraźne rozwiązanie