156-587 Cheatsheet
Check Point Certified Troubleshooting Expert (CCTE)
Download free PDFManagement, processes and system health
Management and WatchDog
- **CPM** serves modern SmartConsole management requests on **TCP 19009**. Check reachability, permitted GUI clients and management process health when connection attempts fail.
- **CPWD** supervises registered critical processes and can restart failed processes. **cpwd_admin list** shows the monitored applications, process IDs, status and start information; **STAT** describes process state.
- **Server role matters**: a dedicated gateway and a management server run different services. An absent management process on a gateway does not by itself indicate a failure.
- For a **frozen process**, capture its symptoms and dependencies before a controlled service restart. Repeated WatchDog restarts indicate an unresolved problem; correlate process logs and crash evidence.
- **ClusterXL PNOTEs** report critical-device health and can affect member state. Use **cphaprob list** to inspect registered problems and **cphaprob stat** to check cluster state; process supervision and cluster health are separate mechanisms.
Logging and resource pressure
- **FWD** participates in log handling. Growth of **$FWDIR/log/fw.log** on a gateway indicates local log accumulation; check configured log destinations, connectivity, forwarding backlog and disk space.
- **Logging versus indexing**: event collection can succeed while search indexing fails. Check log arrival and indexing health separately; **doctor-log.sh** is a diagnostic tool for logging and indexing problems.
- **Nonzero swap usage** alone does not prove current RAM exhaustion. Compare available memory, process growth and active paging with **free**, **vmstat** and **top**; sustained swap-in/out can explain latency.
- **User mode** applications request privileged OS services through system calls. A user process crash and a kernel crash require different evidence; a packet capture is not a memory dump.
Core dumps and persistent settings
- A **user-mode core dump** captures process memory and execution state, including registers, instruction and stack pointers. A crash may produce no dump if collection is disabled or storage limits prevent it.
- In **Gaia Clish**, use **show core-dump status** to inspect collection and **set core-dump enable** to enable it. User-mode dumps are normally under **/var/log/dump/usermode**.
- **Core Dump Manager** controls per-process retention and total disk consumption. Preserve relevant dumps with the matching logs and software build information before retention removes them.
- **$FWDIR/boot/modules/fwkern.conf** holds persistent firewall kernel parameters. If a change causes problems after reboot, restore the known-good configuration and coordinate the restart; unloading policy does not undo persistent tuning.
Firewall kernel debugging and packet capture
Choose and scope the debug
- **fw ctl debug** configures kernel modules, flags and the debug buffer. **fw ctl kdebug** collects their output. Selecting flags and reading the buffer are distinct steps.
- **fw ctl zdebug + drop** is a quick interactive view of kernel drop diagnostics. Its small default buffer is approximately **1 MB**; high message rates can lose evidence, and the command can still impose significant load.
- For controlled collection, reset with **fw ctl debug 0**, allocate a buffer such as **fw ctl debug -buf 32768**, then enable only relevant modules and flags. Buffer sizing consumes memory across participating instances.
- **fw ctl debug -m fw + conn drop** selects connection and drop detail. **fw ctl debug -m** lists available modules and flags; enabled blades influence which modules appear.
- **fw ctl debug 0** restores default debug flags. It is not a command to erase previously saved output files; use a new capture file when separating reproductions.
Timestamps, rotation and cleanup
- **fw ctl kdebug -T -f > /var/log/kernel_debug.txt** follows kernel debug output with timestamps. Start collection before reproducing the issue and record the affected connection tuple and time.
- For bounded collection, use **fw ctl kdebug -T -f -o /var/log/kdebug -m 10 -s 100000**. Here **-m** selects cyclic file count and **-s** sets each file size in KB; shell redirection alone does not provide rotation.
- **Missing messages** can mean a buffer overrun or an overly broad debug. Narrow the traffic and flags, increase the buffer when appropriate, and check collection speed and disk capacity.
- **Ctrl+C** stops the output collector. Also run **fw ctl debug 0** to reset kernel flags and remove any temporary debug filters; stopping the reader alone does not end kernel instrumentation.
Locate the packet in the inspection chain
- **fw monitor** captures traffic at firewall inspection points. **i / I** mean before/after inbound inspection; **o / O** mean before/after outbound inspection. Compare the same flow across points.
- **fw ctl chain** lists inspection modules and positions. Select an appropriate **-pi / -pI / -po / -pO** position to capture relative to a module such as VPN; **-p all** captures across the chain and can be very verbose.
- **tcpdump** observes interface traffic; **fw monitor** exposes inspection-chain visibility. Combine them to distinguish arrival, policy handling, NAT, encryption and departure.
- **Pre-VPN versus post-VPN** capture changes whether the inner packet or tunnel traffic is visible. Filter narrowly and compare both directions; a missing packet at one point needs correlation with drop diagnostics.
Unified Policy and content inspection
Classification and rule matching
- **Unified Access Control** combines firewall, application, URL, identity and content conditions in one policy framework. A connection can acquire additional classification information as inspection proceeds.
- **CLOB** means classification object: it carries information used in security decisions. **Classifiers** identify traffic attributes; **handlers** retain rule-matching state; **observers** support classification refinement. The **manager** coordinates processing.
- **CMI**, the Context Management Infrastructure, supplies inspection context. Its **CMI Loader** combines signature inputs into unified **Pattern Matchers** used during inspection.
- **fw ctl debug -m UP all** enables all flags in the Unified Policy module. Prefer relevant flags for routine diagnosis and inspect the module output to confirm what is enabled.
- **rulebase** and **connection** are Unified Policy debugging concepts. A matching failure can reflect incomplete classification, rule ordering or identity state; correlate the rule decision with the relevant blade evidence.
Application Control, URL Filtering and RAD
- **RAD**, Resource Advisor, supports Application Control and URL Filtering. Its kernel-side cache handling works with a user-space service that performs online categorization when needed.
- For a **category cache miss**, distinguish the kernel request from the user-space cloud lookup. Check DNS, routing, proxy configuration and service availability before attributing the failure to the rule base.
- **$FWDIR/conf/rad_settings.C** contains RAD settings, including proxy configuration. A general gateway connectivity test does not prove that RAD is using the correct proxy path.
- **Application definitions**, custom applications and user-defined URL categories are separate classification inputs. Check the installed database, custom object definitions and policy state when expected classification differs from observed traffic.
Content Awareness and HTTPS Inspection
- **Content Awareness** matches data types using file and content inspection. A parser such as **FileApp** extracts supported content; file-type recognition and successful text extraction are different capabilities.
- **HTTPS Inspection** must establish the relevant TLS sessions before encrypted application content becomes available to inspection. Check certificate trust, validity, hostname matching, rule selection and bypass decisions.
- **wstlsd** is the HTTPS Inspection daemon. Correlate its evidence with the firewall and Unified Policy decision; a TLS handshake failure can prevent later application or content classification.
- **Threat Extraction** removes potentially active content and reconstructs a usable document. The **scrubd** daemon belongs to this processing path; distinguish extraction problems from content matching or TLS problems.
Identity Awareness and Captive Portal
From identity source to enforcement
- **Identity source → PDP → PEP** is the key path. The **Policy Decision Point** acquires and shares identities; the **Policy Enforcement Point** uses identity information to enforce Access Roles.
- **pdpd**, **pepd** and Captive Portal services operate in user space. Their interaction with firewall enforcement does not make the portal itself a kernel process.
- **Identity Collector** reads Windows security events through Windows event-log APIs and sends identity information to a gateway. LDAP directory lookups for users and groups serve a separate purpose.
- **ADLOG** is associated with AD event-based identity acquisition. Distinguish the identity acquisition method in use before choosing its logs and debug topics.
- **Access Roles** depend on identity, group membership and applicable network conditions. If a flow hits cleanup, check the IP-to-user mapping, identity age, group resolution and identity sharing before changing policy.
Collector and portal diagnostics
- On the gateway, **pdp connections idc** lists connected Identity Collectors. **pdp connections pep** checks PEP connection status; a connected collector does not prove that its upstream Windows event collection is healthy.
- **pdp monitor all** and **pep show user all** help compare learned identities with enforcement state. Follow the affected user and client IP across collection, decision and enforcement.
- **pdp debug on** enables PDP debugging; **pdp debug set all all** selects all topics and severities. Inspect **$FWDIR/log/pdpd.elg**, reproduce briefly, then use **pdp debug reset** and **pdp debug off**.
- For **collector failures**, check Windows event access, account privileges, event availability, gateway connectivity and consistent time. Targeted collector/provider topics can narrow the debug when available.
- **Captive Portal** guest authentication depends on portal reachability and the resulting identity session. Its gateway web configuration is **$NACPORTAL_HOME/conf/httpd_nac.conf**; also verify the guest Access Role and authentication flow.
Site-to-site VPN and Mobile Access
Negotiation and traffic protection
- **IKE** authenticates peers and derives symmetric session key material. Diffie-Hellman establishes shared secret material; a preshared key or certificate authenticates the peers rather than directly serving as the data-encryption key.
- **IKEv1 Main Mode** normally uses six messages for Phase 1; **Quick Mode** normally uses three for Phase 2. Additional exchanges, retransmissions or authentication steps change the total packet count.
- **IKEv2** normally begins with IKE_SA_INIT and IKE_AUTH exchanges. Compare proposals, peer identities, authentication, traffic selectors, lifetimes and PFS when negotiation stalls.
- **IKE SA** protects negotiation; **IPsec SAs** protect user traffic. Check UDP **500**, NAT-T on UDP **4500**, and ESP where applicable, then verify routing, encryption domains and NAT behavior.
- **vpn tu** inspects VPN tunnel state. An established tunnel does not prove application reachability; compare SAs, counters, policy and captures for the affected subnet pair.
VPN and IKE debug evidence
- **vpn debug truncon** starts VPN daemon debugging with fresh or rotated output. Logs are under **$FWDIR/log**; preserve the relevant reproduction instead of mixing unrelated incidents.
- In **R81.20**, **iked** normally handles IKE site-to-site and IKE remote-access connections. **vpnd** handles non-IKE remote access and Multi-Portal TLS traffic; check **vpn iked status** to identify the operating mode.
- **ike debug trunc ALL=5** starts detailed IKE daemon collection. Correlate the responsible **iked** instance and its **.elg**, **.ikev1trace** or **.ikev2trace** files with the peer and reproduction time.
- **IKEView** helps inspect supported IKE trace formats. Follow exchanges, identities, proposals and notification errors; use text inspection when the trace format requires it.
- **Debug cleanup** must match enabled collectors: stop VPN daemon output with **vpn debug off** and IKE daemon output with **ike debug off**. In legacy mode, **vpn debug ikeoff** disables the separately enabled IKE trace.
Mobile Access and shared HTTPS portals
- **Mobile Access** troubleshooting spans the gateway web server, **cvpnd**, VPN components and packet captures. Clientless browser access and an IKE remote-access tunnel use different connection paths.
- **Multi-Portal** allows HTTPS services to share the external portal listener and dispatches connections to service-specific listeners. Use **mpclient getdata sslvpn** to inspect the Mobile Access portal assignment.
- **$CVPNDIR/conf/httpd.conf** controls the Mobile Access web server. A temporary **LogLevel debug** setting can expose web-layer failures; restore the normal level and coordinate any required **cvpnrestart**.
- Separate **portal login**, client tunnel establishment and application access. Correlate web and **cvpnd** logs with authentication results, assigned access and traffic on the internal destination path.