-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log failed authentication attempts #288
Comments
I have nothing against adding an info-level log message about failed login attempts although you can use Still, I'm not sure if fail2ban is such a good idea... |
I would also like to ask to add that feature. Blocking bruteforce/ddos attacks is crucial for me. |
Have you found by any chance any workaround how to setup fail2ban for wayvnc? |
@4k3or3et No, I haven‘t found a proper workaround … yet. |
I tried to create a fail2ban rule to enable rate limiting for the authentication. Turns out, that some log information are missing.
journalctl --grep=wayvnc
returnsJan 20 17:09:53 raspberrypi wayvnc[1693]: pam_unix(wayvnc:auth): authentication failure; logname= uid=1000 euid=1000 tty= ruser= rhost= user=pi
.The hostname or ip address where the authentication is coming from is empty, which makes it impractical to identify potential attackers.
Would it be possible to feed this information into the logs? It seems like it actually tries to fill in an IP address or hostname, since it fills the field
rhost=
with an additional whitespace. But a real source ip or hostname would be better.I tried tricking fail2ban into not needing this information, but then its config fails to load and it complains about missing identification regex parameters like a source hostname or ip address field.
The text was updated successfully, but these errors were encountered: