Add IP to logs

15 views
Skip to first unread message

Manuel Montes Reinhardt

unread,
Jul 20, 2022, 3:15:35 AM7/20/22
to meetecho-janus
I want to add fail2ban to my Janus server in order to ban IP if it accumulates several unauthorized request for example.
Is there a way to add the source IP to the Janus logs?


Regards,

Lorenzo Miniero

unread,
Jul 20, 2022, 3:21:10 AM7/20/22
to meetecho-janus
I think it's a better idea to log event handlers instead, so collect logs in a separate application and filter those. Event handlers will notify you about all connections.

L.

Lorenzo Miniero

unread,
Jul 20, 2022, 3:22:05 AM7/20/22
to meetecho-janus
Otherwise, no, Janus will not print the HTTP/WS client IPs on logs, so you'll have to modify the transport plugins code yourself to do that.

L.

Manuel Montes Reinhardt

unread,
Jul 20, 2022, 3:55:20 AM7/20/22
to meetecho-janus
Thank you very much!
I will try with event handlers.

Regards,

Reply all
Reply to author
Forward
0 new messages