Difference between revisions of "dbedit rule creation"

From cpwiki.net
Jump to: navigation, search
Check Point Profressional Services
 
(One intermediate revision by one user not shown)
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
Line 4: Line 9:
 
deleting a rule (untested)
 
deleting a rule (untested)
 
  dbedit> rmbyindex fw_policies ##Standard rule 10
 
  dbedit> rmbyindex fw_policies ##Standard rule 10
  <br>
+
  <br>dbedit> update_all
dbedit> update_all
+
 
  fw_policies::##Standard Updated Successfully
 
  fw_policies::##Standard Updated Successfully
  
  
 
[[category:dbedit]]
 
[[category:dbedit]]

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