- Products
- Learn
- Local User Groups
- Partners
- More
Check Point Jump-Start Online Training
Now Available on CheckMates for Beginners!
Why do Hackers Love IoT Devices so Much?
Join our TechTalk on Aug 17, at 5PM CET | 11AM EST
Welcome to Maestro Masters!
Talk to Masters, Engage with Masters, Be a Maestro Master!
ZTNA Buyer’s Guide
Zero Trust essentials for your most valuable assets
The SMB Cyber Master
Boost your knowledge on Quantum Spark SMB gateways!
As YOU DESERVE THE BEST SECURITY
Upgrade to our latest GA Jumbo
CheckFlix!
All Videos In One Space
I want to use the ExportImportPolicyPackage to move a firewall policy from one 81.10 mgmt server to another.
I receive the following error however:
Exporting Access Control layers
Exporting Access Layer [Firewall / App & URL Filtering]
Retrieved 12 out of 12 rules (100%)
Processing rules and sections
Exporting groups from layer [Firewall / App & URL Filtering]
Exporting groups from group [All BGP Blocks]
Exporting hosts from group [EIR-BGPBlock1-All-IPs]
Exporting hosts from group [EIR-BGPBlock2-All-IPs]
Exporting networks from group [G_RFC1918_AllInternet_Negate]
Exporting security-zones from layer [Firewall / App & URL Filtering]
Exporting updatable-objects from layer [Firewall / App & URL Filtering]
Exporting networks from layer [Firewall / App & URL Filtering]
Exporting hosts from layer [Firewall / App & URL Filtering]
Exporting dns-domains from layer [Firewall / App & URL Filtering]
Exporting services-tcp from layer [Firewall / App & URL Filtering]
Exporting access rules from layer [Firewall / App & URL Filtering]
Exporting access sections from layer [Firewall / App & URL Filtering]
Exporting placeholders for unexportable objects from layer [Firewall / App & URL
Filtering]
Exporting layer settings of layer [Firewall / App & URL Filtering]
Done exporting layer 'Firewall / App & URL Filtering'.
Traceback (most recent call last):
File "C:\Users\admin\Downloads\ExportImportPolicyPackage-5.5\import_ex
port_package.py", line 65, in <module>
export_package(client, args)
File "C:\Users\admin\Downloads\ExportImportPolicyPackage-5.5\exporting
\export_package.py", line 54, in export_package
create_tar_file(access_layer, access_data_dict,
File "C:\Users\admin\Downloads\ExportImportPolicyPackage-5.5\utils.py"
, line 239, in create_tar_file
with tarfile.open(layer_tar_name, "w:gz") as tar:
File "C:\Python310\lib\tarfile.py", line 1642, in open
return func(name, filemode, fileobj, **kwargs)
File "C:\Python310\lib\tarfile.py", line 1688, in gzopen
fileobj = GzipFile(name, mode + "b", compresslevel, fileobj)
File "C:\Python310\lib\gzip.py", line 174, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'exported__access_layer_
_Firewall / App & URL Filtering__2022_05_31_14_54.tar.gz'
This only happens with the access layer turned on.
Tried from a Windows or a Linux box. Same thing.
python .\import_export_package.py -m 10.*.*.* -u admin -p "*****" -op export -n Standard --nat false --debug on -o export -ac true -tp false --nat false --https false
Any ideas?
Figured it out. It was the naming of one of the layers being "Firewall / App & URL Filtering". It's either the slash or the & it didn't like.
About CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY