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

Attach newly created layer to "Network" layer from cli

Jump to solution

It is easy to create a new layer from the cli:

add access-layer name AppCon-URLF firewall false applications-and-url-filtering true

Is it possible from the cli to then attach this layer to the existing layer "Network" in the policy "Standard" ?

My goal is to completely build an ordered FW and App. Control policy from a flat file using the cli.

Thanks!

Labels (2)
0 Kudos
1 Solution

Accepted Solutions
Employee+
Employee+

Re: Attach newly created layer to "Network" layer from cli

Jump to solution

Hi,

To add the layer to a package use the following command:

set package name Standard access-layers.add.0.name AppCon-URLF access-layers.add.0.position 2

Please note, the position parameter sets this layer to be on the second place, after the Network layer.

Please use Check Point - Management API documentaion as a reference to the set-package command

0 Kudos
1 Reply
Employee+
Employee+

Re: Attach newly created layer to "Network" layer from cli

Jump to solution

Hi,

To add the layer to a package use the following command:

set package name Standard access-layers.add.0.name AppCon-URLF access-layers.add.0.position 2

Please note, the position parameter sets this layer to be on the second place, after the Network layer.

Please use Check Point - Management API documentaion as a reference to the set-package command

0 Kudos