Skip to content
KMyFirewall
Release 1.1.1 Download

The KMyFirewall Handbook

Targets

The target of a rule defines what to do if a packet matches. It is defined with the ‑j option at the end of the filtering or manipulation options.

... ‑j LOG ‑‑log‑prefix "KMF: "

There are two types of targets: terminating and continuing.

If a target is terminating, the packet is not passed to rules after the matching one. A good example is ‑j DROP. The DROP target tells the kernel to drop the matching packet so it does not reach its destination. It makes sense not to test the packet against later rules once you know what to do with it.

For a continuing target, look at the code above. The LOG target lets the kernel log matching packets to the system log. It would not be useful if the packet stopped there, so it continues through the kernel.

Continue with Filtering and manipulation of packets.

Back to top