Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

How to check whether apf (Advanced Policy Firewall) is running after the reboot? It doesn’t have any status, so how can we know?

share|improve this question
up vote 0 down vote accepted

Usually APF logs somewhere (I believe /var/log/apf-log). After rebooting your machine. You can check the log. If it is starting up properly you should see it loaded the rules during the time the machine was booting.

if chkconfig is installed run:

chkconfig --list apf

It should output something like:

apf 0:off 1:off 2:on 3:on 4:on 5:on 6:off

meaning that apf is set to start at run levels 2, 3, etc.

Your system probably boots into run level 3 by default.

share|improve this answer

Your Answer


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.