You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, in order to write a fail2ban filter, you can start by enabling debug logging inside MediaMTX:
logLevel: debug
The log lines you're interested into are these ones:
2024/08/27 23:06:55 DEB [RTSP] [conn 127.0.0.1:44480] [s->c] RTSP/1.0 401 Unauthorized
CSeq: 2
filter file of mediamtx (/etc/fail2ban/filter.d/mediamtxxxx.local):
[Init]
maxlines = 2
[Definition]
failregex =
.* DEB \[RTSP\] \[conn <HOST>:\d+\] \[s->c\] RTSP\/1\.0 401 Unauthorized\nCSeq: 2
ignoreregex =
Beta Was this translation helpful? Give feedback.
All reactions