<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Check Point CPPCAP Interactive Helper in Scripts</title>
    <link>https://community.checkpoint.com/t5/Scripts/Check-Point-CPPCAP-Interactive-Helper/m-p/268212#M1347</link>
    <description>&lt;P&gt;New version with support of colorized output.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jan 2026 11:02:54 GMT</pubDate>
    <dc:creator>Vincent_Bacher</dc:creator>
    <dc:date>2026-01-22T11:02:54Z</dc:date>
    <item>
      <title>Check Point CPPCAP Interactive Helper</title>
      <link>https://community.checkpoint.com/t5/Scripts/Check-Point-CPPCAP-Interactive-Helper/m-p/268081#M1337</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="container"&gt;
&lt;H1&gt;&lt;span class="lia-unicode-emoji" title=":magnifying_glass_tilted_left:"&gt;🔍&lt;/span&gt; Check Point CPPCAP Interactive Helper&lt;/H1&gt;
&lt;P&gt;An interactive wrapper script for Check Point's &lt;CODE&gt;cppcap&lt;/CODE&gt; tool that simplifies packet capture operations on Security Gateways and Management Servers.&lt;/P&gt;
&lt;H2&gt;&lt;span class="lia-unicode-emoji" title=":clipboard:"&gt;📋&lt;/span&gt; What it does&lt;/H2&gt;
&lt;P&gt;This script guides you through all available &lt;CODE&gt;cppcap&lt;/CODE&gt; options interactively, eliminating the need to remember complex command-line syntax.&lt;/P&gt;
&lt;DIV class="feature-list"&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt; Key Features:&lt;/STRONG&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Smart interface selection&lt;/STRONG&gt; - Shows only UP interfaces and supports capture on all interfaces or specific include/exclude filtering&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Interactive filter building&lt;/STRONG&gt; - Step-by-step filter creation with IP validation, or manual pcap-filter syntax entry&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;IP validation&lt;/STRONG&gt; - Validates IP addresses and CIDR notation to prevent syntax errors before execution&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Flexible output&lt;/STRONG&gt; - Save to file with rotation support, or display on screen with verbose layer details (L2/L3/L4)&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;VSX support&lt;/STRONG&gt; - Include or exclude specific Virtual Systems (VSID)&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Capture limits&lt;/STRONG&gt; - Set frame count, byte limits, and snaplen for precise control&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;H2&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt; Installation&lt;/H2&gt;
&lt;DIV class="install-box"&gt;
&lt;P&gt;Copy the script to your Check Point Gateway/SMS and make it executable:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;# Copy script to gateway
scp cppcap_helper.sh admin@&amp;lt;your-gateway&amp;gt;:/home/admin/

# Connect via SSH
ssh admin@&amp;lt;your-gateway&amp;gt;

# Switch to Expert mode
expert

# Make script executable
chmod +x cppcap_helper.sh

# Run the script
./cppcap_helper.sh&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV class="warning"&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":warning:"&gt;⚠️&lt;/span&gt; Important:&lt;/STRONG&gt; The script must be run in &lt;SPAN class="highlight"&gt;Expert mode (as root)&lt;/SPAN&gt;.&lt;/DIV&gt;
&lt;H2&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; Why use this?&lt;/H2&gt;
&lt;DIV class="benefit"&gt;
&lt;P&gt;&lt;STRONG&gt;Before:&lt;/STRONG&gt; Complex command-line syntax&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;cppcap -i eth0 -f 'src host 10.1.1.1 and dst net 192.168.0.0/16 and tcp and port 443' \
       -c 0 -p 1000 -o /var/log/capture.pcap -w 100M -W 10&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;After:&lt;/STRONG&gt; Just run the script and answer a few simple questions!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;./cppcap_helper.sh&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;H2&gt;&lt;span class="lia-unicode-emoji" title=":direct_hit:"&gt;🎯&lt;/span&gt; Perfect for:&lt;/H2&gt;
&lt;UL&gt;
&lt;LI&gt;Quick troubleshooting when you need a packet capture fast&lt;/LI&gt;
&lt;LI&gt;Junior admins who don't know all cppcap parameters by heart&lt;/LI&gt;
&lt;LI&gt;Situations where you can't remember the exact pcap-filter syntax&lt;/LI&gt;
&lt;LI&gt;Avoiding typos in complex filter expressions&lt;/LI&gt;
&lt;LI&gt;Consistent capture configuration across teams&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2&gt;&lt;span class="lia-unicode-emoji" title=":memo:"&gt;📝&lt;/span&gt; Author&lt;/H2&gt;
&lt;P&gt;Vincent Bacher&lt;/P&gt;
&lt;P style="margin-top: 40px; padding-top: 20px; border-top: 1px solid #ddd; color: #666; font-size: 0.9em;"&gt;Feel free to share feedback or suggestions for improvements in this thread!&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# ./cppcap_helper.sh
================================================
  Check Point CPPCAP - Interactive Helper
================================================
ℹ Press ENTER to skip any option (use default/none)

=== Interface Configuration ===
ℹ Available interfaces (UP only):
  - bond0
  - bond1
  - bond2
  - bond3
  - eth2-01
  - eth2-02
  - eth2-03
  - eth2-04
  - eth3-01
  - eth3-02
  - eth3-03
  - eth3-04
Enter interface name (empty=all interfaces, e.g., eth0, eth1):
ℹ Will capture on ALL interfaces

=== Filter Configuration ===
How do you want to specify the filter? [i/m/n] (i=interactive, m=manual, n=none): i
ℹ Building filter interactively...
Source IP/Network (e.g., 192.168.1.0/24): 10.10.10.0/25
Destination IP/Network (e.g., 10.0.0.1): 1.1.1.1
Protocol [tcp/udp/icmp/arp]: tcp
Port number (leave empty for any): 22
Exclude SSH (port 22)? [Y/n]: n
ℹ Generated filter: src net 10.10.10.0/25 and dst host 1.1.1.1 and tcp and port 22

=== Traffic Direction ===
Capture direction? [B/i/o] (B=both (default), i=inbound, o=outbound):
ℹ Capturing BOTH directions (default)

=== Capture Limits ===
Maximum number of frames to capture (empty=unlimited): 1000
ℹ Will capture max 1000 frames
Maximum bytes to capture total (empty=unlimited): 1000
ℹ Will capture max 1000 bytes total
Maximum bytes per frame [default=96] (0=unlimited):

=== Virtual System Configuration (VSX) ===
Are you running VSX/VSNext? [y/N]:

=== Output Configuration ===
Save to file or display on screen? [f/S] (f=file, S=screen (default)): f
Output file path (e.g., /var/log/capture.pcap or capture.pcap):
⚠ No file specified, using: /home/lalala/cppcap.pcap
Enable file rotation? [y/N]: y
Maximum file size [e.g., 100M, 1G]: 10M
Maximum number of rotated files (e.g., 10): 3
ℹ Will rotate at 10M, keeping 3 files

=== Ready to Execute ===

Command to be executed:
cppcap -i any -f 'src net 10.10.10.0/25 and dst host 1.1.1.1 and tcp and port 22' -p 1000 -b 1000 -o cppcap.pcap -w 10M -W 3

ℹ Output will be saved to: cppcap.pcap
ℹ You can analyze it later with: tcpdump -r cppcap.pcap
Execute this command? [Y/n]:
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 15:49:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Check-Point-CPPCAP-Interactive-Helper/m-p/268081#M1337</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-01-21T15:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Check Point CPPCAP Interactive Helper</title>
      <link>https://community.checkpoint.com/t5/Scripts/Check-Point-CPPCAP-Interactive-Helper/m-p/268088#M1339</link>
      <description>&lt;P&gt;Nice one, Vince!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 15:57:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Check-Point-CPPCAP-Interactive-Helper/m-p/268088#M1339</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-01-21T15:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Check Point CPPCAP Interactive Helper</title>
      <link>https://community.checkpoint.com/t5/Scripts/Check-Point-CPPCAP-Interactive-Helper/m-p/268212#M1347</link>
      <description>&lt;P&gt;New version with support of colorized output.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 11:02:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Check-Point-CPPCAP-Interactive-Helper/m-p/268212#M1347</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-01-22T11:02:54Z</dc:date>
    </item>
  </channel>
</rss>

