Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running Fedora 20 and would like to see what my firewall is doing in the background. Is it possible to view a log of the traffic blocked by FirewallD?

share|improve this question
up vote 3 down vote accepted

According to this page, the FirewallD logs are at /var/log/firewalld. To get debug messages, you need to run it with --debug or --debug=2.

share|improve this answer

you can see the logging information by using iptables:

first open the command line and run iptables service:

service iptables start

second write this command:

iptables -A INPUT -j LOG --log-level info --log-prefix "iptables INPUT:"

then you can write this command:

tail -f /var/log/messages

it will give you the logging information you are looking for

the code above let you see what your firewall do with the packets which enter to your network, you can also see the packets which get out of your network by replacing INPUT by OUTPUT in the second command above

share|improve this answer
    
... not responsive: service iptables is a separate animal from service firewalld – fche Dec 29 '14 at 16:48

You need append the line in /etc/sysconfig/firewalld
for maximum details:

FIREWALLD_ARGS=--debug=10

Then restart firewalld service

sudo systemctl restart firewalld

It's better, than edit /usr/lib/systemd/system/firewalld.service.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.