dbedit rule creation

From cpwiki.net
Revision as of 21:50, 15 May 2017 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Check Point Profressional Services

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