how to get ip address from login throw webapp?
-
Hello , i use kopano with web interface.
And my server log is full with these brutforse attempts.
Authentication by plugin failed for user "user@domain.com": Trying to authenticate failed: user@domain.com not found in LDAP; username = user@domain.com
I want to see ip address here and be able to ban this IP by fail2ban.
How could i configure webapp to give server IP address? -
You should see the address in your apache-log, and have fail2ban block it from there. Have a look at this for pointers:
https://wiki.z-hub.io/display/ZP/Fail2Ban+support
https://forum.kopano.io/topic/108/how-to-protect-webapp-fail2ban