Firewall log location?

All IP networking related issues
Post Reply
m3tmh
Posts: 6
Joined: Thu Sep 29, 2022 9:05 pm

Firewall log location?

Post 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?
Sent from my full keypad GP300 using DTMF.
KN2TOD
Posts: 270
Joined: Sun Nov 11, 2018 6:36 pm

Re: Firewall log location?

Post 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.
Post Reply