Difference between revisions of "dbedit rule creation"

From cpwiki.net
Jump to: navigation, search
Check Point Profressional Services
 
Line 1: Line 1:
 +
IMPORTANT: first rule for dbedit is rule 0, not 1. also, dbedit counts section headers as rules!!!
 +
 +
so, to manipulate a rule # in the SmartDashboard, the formula is  SmartDashboard rule # + # of section headers before it -1 + = dbedit rule #
 +
 +
 
add source host1 to rule 1  
 
add source host1 to rule 1  
 
  addelement fw_policies ##Standard rule:1:src:'' network_objects:host1
 
  addelement fw_policies ##Standard rule:1:src:'' network_objects:host1

Latest revision as of 21:50, 15 May 2017

IMPORTANT: first rule for dbedit is rule 0, not 1. also, dbedit counts section headers as rules!!!

so, to manipulate a rule # in the SmartDashboard, the formula is SmartDashboard rule # + # of section headers before it -1 + = dbedit rule #


add source host1 to rule 1

addelement fw_policies ##Standard rule:1:src: network_objects:host1

deleting a rule (untested)

dbedit> rmbyindex fw_policies ##Standard rule 10

dbedit> update_all fw_policies::##Standard Updated Successfully