S
S
Sergey Karbivnichy2019-03-25 22:02:05
linux
Sergey Karbivnichy, 2019-03-25 22:02:05

How to restore ufw logging?

Hello. Accidentally demolished the ufw log on the server along the path /var/log/ufw.log. After that, ufw stopped logging.
I already manually created this file, but it did not bring any result, the file remains empty. Also turned off and turned on ufw again, turned off and turned on logging - zero sense. Haven't tried rebooting the server yet. What else can be done.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vreitech, 2019-03-25
@fzfx

f=/var/log/ufw.log; touch $f; ls -l $f; date?

A
athacker, 2019-03-25
@athacker

So maybe nothing happens from what should be logged? Therefore, there is nothing in the logs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question