Ah, very nice! Didn't even think this angle.
Thank you!
Search found 3 matches
- Thu Sep 16, 2021 4:49 pm
- Forum: ZoneMinder 1.36.x
- Topic: web_php.log + Fail2Ban + reverse proxy
- Replies: 10
- Views: 7650
- Thu Sep 16, 2021 2:03 pm
- Forum: ZoneMinder 1.36.x
- Topic: web_php.log + Fail2Ban + reverse proxy
- Replies: 10
- Views: 7650
Re: web_php.log + Fail2Ban + reverse proxy
Hi all, I was able to find a solution (of sorts) -- in includes/logger.php, I replaced REMOTE_ADDR with HTTP_X_FORWARDED_FOR in these two places: $this->hasTerm = (php_sapi_name() == 'cli' && empty($_SERVER['HTTP_X_FORWARDED_FOR'])); and $this->id, getmypid(), $code, $_SERVER['HTTP_X_FORWARDED_FOR ...
- Tue Sep 14, 2021 2:53 pm
- Forum: ZoneMinder 1.36.x
- Topic: web_php.log + Fail2Ban + reverse proxy
- Replies: 10
- Views: 7650
web_php.log + Fail2Ban + reverse proxy
Hi all, Here is the http flow for my Zoneminder setup: client --> haproxy --> apache --> zoneminder Everything works great, however when looking in web_php.log (via fail2ban) -- there is this problem: 09/03/21 09:28:11.764780 web_php[453].ERR [ 127.0.0.1] [Could not retrieve user zzdfiuy details] at ...