Page 1 of 1

Firewall log location?

Posted: Sat Nov 25, 2023 8:42 pm
by m3tmh
Hi,

I'm trying to find some kind of firewall log (attempted connections etc) and can't seem to find one in /var/log. Does such a log exist? If not, can I start one or would that cause problems?

Re: Firewall log location?

Posted: Sun Nov 26, 2023 1:05 am
by KN2TOD
You can certain take a shot at it:

(<https://www.manageengine.com/products/e ... 20below%3A>)

Code: Select all

sudo iptables -A INPUT -j LOG 
   or
sudo iptables -A INPUT -j LOG-log-level 4
And then head/tail/grep your way through the /var/log/kern.log files.

But you might be better off looking through the logs in your router. If there's intrusion going in, this where you'll need to put a stop to it.