Traffic Inspection, Logging, and Debugging
Domain 4 tests packet-level inspection, log interpretation, and safe kernel debugging. The exam expects you to choose fw monitor, cppcap, tcpdump, SmartLog, and fw ctl debug for different evidence and to avoid leaving debug enabled.
Packet capture points
fw monitorshows four points:iinbound before inspection,Iinbound after inspection,ooutbound before inspection,Ooutbound after inspection. Use the pattern to localize loss.- Filter at capture time:
fw monitor -e 'accept host 198.51.100.20 and port 443;'. Unfiltered captures on busy gateways are misleading and expensive. cppcapcaptures on the accelerated path;tcpdumpshows the wire. Neither replaces firewall inspection points when you need policy verdicts.
Logs and verdicts
- SmartLog records rule match, action, NAT, and drop reason. A missing log is evidence: check track settings, implied-rule logging, and whether acceleration bypassed logging.
- Correlate timestamps and time zones across management and gateway before comparing captures with logs.
- Use log fields such as blade, rule number, and NAT source/destination to reconstruct the path.
Debugging
- Prefer
fw ctl zdebug -m fw + dropfor a quick live drop trace; it is temporary and terminates with Ctrl-C. - For controlled debug, use
fw ctl debug -m <module> + <flags>, write withfw ctl kdebug -f, then reset withfw ctl debug 0. Always scope to a filter if supported and document the reset. - Debug output is kernel-level and can affect performance; never leave it running on a production gateway.
Worked example
A site-to-site VPN tunnel drops large transfers. Run fw monitor -e 'accept src=192.0.2.10 and dst=198.51.100.30;' on the gateway. Packets appear at i and I, but only small packets appear at o. That suggests fragmentation, MTU, or VPN encryption path issues, not a policy drop. Check fw ctl zdebug -m fw + drop for a drop reason; if no drop appears, inspect interface MTU and TCP MSS adjustment. SmartLog shows accepts, so policy is not the cause. The reasoning: capture points show the packet entered and passed inbound inspection; failure after inspection points to outbound encapsulation or MTU.
Traps
- Running
fw monitoron the management server. - Leaving
fw ctl debugenabled after collecting data. - Capturing without a filter and misreading unrelated flows.
- Assuming no log means no drop; check implicit rules and acceleration.
- Mixing UTC and local timestamps when correlating.