Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 

HowTo - Export a Security Policy to Excel

cpxls.png

If you'd like to export your Check Point security policy into Microsoft Excel, look no further.
Within Excel you can then easily sort rules by their hit count, first hit, last hit, you name it. So let's start.

  1. Use Check Point's Show Package Tool to export your security policy to HTML
    • SSH login into the export mode of your SmartCenter and run $MDS_FWDIR/scripts/web_api_show_package.sh -n 443 -c
  2. Copy the resulting .tgz to your Admin PC and unarchive to a new folder
  3. Open the exported security policy in your web browser of choice
  4. View the generated html via DOM inspect and save it into a new .html file
  5. Remove unnecessary JavaScript code from that .html with your text editor of choice
  6. Replace <div>, </div> and </div></td>with #!%!#
  7. Open the .html file with a web browser and copy all content to your clipboard (crtl-a, crtl-c)
  8. Create an empty Excel sheet and paste your clipboard to it (crtl-v)
    • Replace the string #!%!# with crtl-j (creates newlines within the same row)
    • Remove any groupings to make sorting functional
    • Adjust formatting according to your needs (freeze title pane, hide section titles t
...
TO READ THE FULL POST it's simple and free

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events