Some of us are running kernel debug on Check Point FWs from time to time, especially students of my Advanced Check Point Troubleshooting Course.
There are many tricks and best practices, but one that I love the best is applying INSPECT traffic filter on the output. And guess what, this one is rarely used.
The issue is simple. When running FW kernel debug, we are trying to extract as much debug information as possible. Usually Check Point support engineers ask customers to run something like "fw ctl debug all". I assume they find filtering out gigs of text files very rewarding.
On my side, I am trying to keep things simple and controllable, hence enabling only necessary debug flag. Yet, by default you get all kernel output for all packets traversing your FW during the debug session, and that might be still too much when trying to debug a single faulty connection.
This is how "fw ctl debug" help output looks like in practice:
Usage:
fw ctl debug [-d] [-s ""] [-v (""|all)] [-k] [-x] [-m ] [-e expr |-i | -u] [+|-]
I have highlighted there the interesting part. If you ever used fw monitor, you know -e flag already. It stands for expression, a traffic filter based on INSPECT syntax.
Same deal here. You can actually limit quite a lot of unnecessary debug printout by filtering only the messages related to some particular traffic.
For example, adding
fw ctl debug -e "accept host(8.8.8.8);"
to your kernel debug commands you will get output related to traffic to and from the famous Google DNS server.
This saves lots of time and effort when analysing the debug info afterwards. As all the other parameters, this filter is reset with fw ctl debug 0.
Have fun.
There are many tricks and best practices, but one that I love the best is applying INSPECT traffic filter on the output. And guess what, this one is rarely used.
The issue is simple. When running FW kernel debug, we are trying to extract as much debug information as possible. Usually Check Point support engineers ask customers to run something like "fw ctl debug all". I assume they find filtering out gigs of text files very rewarding.
On my side, I am trying to keep things simple and controllable, hence enabling only necessary debug flag. Yet, by default you get all kernel output for all packets traversing your FW during the debug session, and that might be still too much when trying to debug a single faulty connection.
This is how "fw ctl debug" help output looks like in practice:
Usage:
fw ctl debug [-d
I have highlighted there the interesting part. If you ever used fw monitor, you know -e flag already. It stands for expression, a traffic filter based on INSPECT syntax.
Same deal here. You can actually limit quite a lot of unnecessary debug printout by filtering only the messages related to some particular traffic.
For example, adding
fw ctl debug -e "accept host(8.8.8.8);"
to your kernel debug commands you will get output related to traffic to and from the famous Google DNS server.
This saves lots of time and effort when analysing the debug info afterwards. As all the other parameters, this filter is reset with fw ctl debug 0.
Have fun.


