You are not logged in.

#1 2017-09-01 23:28:57

i_love_r34
Member
From: Mexico
Registered: 2016-02-14
Posts: 87

Redirect UFW logging output from dmesg/journalctl to a file

Hello to everyone!

Recently I opened some ports of my computer to the internet and ufw fills dmesg and journalctl with a lot of ip addresses from different countries trying brute force attacks to ssh, and I would like to redirect those logs to a file than the system log to read more carefully.
I don't want to disable logging because I need to read those logs.

Regards.

Offline

#2 2017-09-02 00:59:14

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: Redirect UFW logging output from dmesg/journalctl to a file

you can use something like rsyslog to redirect output to a file, but so far as I can tell there's no functionality within ufw to configure logging beyond on/off

Offline

Board footer

Powered by FluxBB