- Products
- Learn
- Local User Groups
- Partners
- More
MVP 2026: Submissions
Are Now Open!
What's New in R82.10?
10 December @ 5pm CET / 11am ET
Announcing Quantum R82.10!
Learn MoreOverlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
Hi eXperts,
I am trying to create Firewall rules completely with CLI commands. I started the following Syntax:
[Expert@A-SMS:0]# mgmt_cli login user cpadmin -p vpn123 > sid.txt
[Expert@A-SMS:0]# mgmt_cli add access-layer name "Bravo_Standard" --format json -s sid.txt
[Expert@A-SMS:0]# mgmt_cli add access-rule layer "Bravo_Standard" position 1 name "NetBIOS rule" service.1 "rip" service.2 "bootp" service.3 "NBT service.4 "udp-high-ports" action "drop" --format json -s sid.txt
[Expert@A-SMS:0]# mgmt_cli publish -s sid.txt
Everything looks fine, but I cannot see any policies just added in SmartConsole. Nor can I install the newly created policy with
[Expert@A-SMS:0]# mgmt_cli install-policy policy-package "Bravo_Standard" targets B-GW
So, what I am doing wrong?
Any hint will highly be appreciated.
Kind regards,
Yasushi
Hi,
What are you trying to accomplish?
Are you willing to create a rulebase with inline layers (R80.10 style), or just a flat rulebase (R77.30 style)?
Robert.
Hi Robert,
Thank you for your reply.
I wanted to start with the flat rulebase, But. afterwards, I wanted to learn how to create an inline layer.
Cheers,
Yasushi
Von meinem iPhone mithilfe von TouchDown (www.symantec.com) gesendet
Here you go - the FLAT rulebase:
1. create a policy package:
mgmt_cli add package name "my_policy" threat-prevention "false" -s id.txt
2. add the rules to the NETWORK (!!!) layer:
mgmt_cli add access-rule layer "my_policy Network" source "any" destination "h1" service "http" action "accept" track-settings.type "Log" position "1" name "rule1" -s id.txt
3. publish:
mgmt_cli -s id.txt publish
This is the result in SmartConsole:


Please pay attention that the Cleanup Rule is automatically created along with the package creation.
You can also add sections, like in R77:
mgmt_cli add access-section layer "my_policy Network" position 1 name "New Section 1" -s id.txt
mgmt_cli -s id.txt publish

Hope this can assist.
Robert.
I tested that and it worked perfectly for me!
Thanks a lot for sharing your valuable knowledge with us!
Kind regards,
Yasushi
Hello Robert,
now, I am about to write a bash script with which I wanted to create policies interactively. At first sight, no big deal. But, if you wanted to add multiple objects (for source, destination or service), I am struggling with that.
What is the correct syntax for adding another source object into an existing rule?
I tried:
mgmt_cli set access-rule layer "Testpol Network" source Host_A -s id.txt
but then, Host_A replaces the host object instead of being added it.
Thanks a lot in advance!
Kind regards,
Yasushi
Use "source.add" syntax. The ".add" allows adding to the existing sources.
https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/set-access-rule~v1.1
Robert.
the flat rule is not getting added for me through cli command which u have given above
please post here the commands you are using.
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 4 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
Fri 12 Dec 2025 @ 10:00 AM (CET)
Check Mates Live Netherlands: #41 AI & Multi Context ProtocolTue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Fri 12 Dec 2025 @ 10:00 AM (CET)
Check Mates Live Netherlands: #41 AI & Multi Context ProtocolTue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY