Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When my logs are rotated will DenyHosts work properly?

DenyHosts logs properly rotated
0
10 Posted

When my logs are rotated will DenyHosts work properly?

0
10

Yes. DenyHosts checks the first line of your sshd server log file and the file size. It then compares these values to the previous invocation of DenyHosts. • If the first line is different, then DenyHosts will process the entire log file (since it is assumed that the log has been rotated). • If the first line is the same it then compares the file size to the last runs offset. • If they are the same, then DenyHosts assumes that there are no changes and exits. • If the current file size is greater then the last offset, then the log file is processed from the last offset. • When DenyHosts exits it stores the first line of the processed log file and the file offset into the offset file (which is located in the WORK_DIR that is defined in your denyhosts.cfg file).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123