Check Point防火墙导入.csv格式的对象

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Check Point防火墙导入.csv格式的对象相关的知识,希望对你有一定的参考价值。

Step1:将.csv格式的对象上传到管理服务器,本例为/home/admin目录

[Expert@SZ-OFFICE-SMT:0]# pwd
/home/admin
[Expert@SZ-OFFICE-SMT:0]# ls -l
total 8
-rw-r----- 1 admin root 625 Aug 15 22:18 host.csv
-rw-r----- 1 admin root 1036 Aug 15 22:18 network.csv
[Expert@SZ-OFFICE-SMT:0]#

Step2:使用cat命令查看network

[Expert@SZ-OFFICE-SMT:0]# cat network.csv
Name,IPv4 address,Mask,IPv6 address,Mask 6,NAT Properties,Comments,Tags,Modifier,Last Modified
CP_default_Office_Mode_addresses_pool,172.16.10.0,255.255.255.0,,-1,Hide behind: All,Used as a default for Office Mode. If deleted; it must be specified for each gateway individually (in the *** Clients page Advanced section),,System,Tue Oct 09 21:49:33 CST 2018,
IPv6_Link_Local_Hosts,,,fe80::,64,None,IPv6 link-local addresses,,System,Tue Oct 09 21:46:09 CST 2018,
Net_10.10.1.0,10.10.1.0,255.255.255.0,,-1,None,深圳本部外网 ,,admin,Thu Aug 15 16:24:44 CST 2019,
Net_10.133.1.0,10.133.1.0,255.255.255.0,,-1,Hide behind: All,深圳本部服务器 ,,admin,Thu Aug 15 16:17:30 CST 2019,
Net_10.158.1.0,10.158.1.0,255.255.255.0,,-1,Hide behind: All,深圳本部办公,,admin,Thu Aug 15 16:16:56 CST 2019,
Net_10.179.1.0,10.179.1.0,255.255.255.0,,-1,Hide behind: All,深圳本部O2O,,admin,Thu Aug 15 16:19:47 CST 2019,
Net_10.201.1.0,10.201.1.0,255.255.255.0,,-1,Hide behind: All,深圳本部***,,admin,Thu Aug 15 16:20:10 CST 2019,
[Expert@SZ-OFFICE-SMT:0]#

Step3:导入network对象到管理服务器

[Expert@SZ-OFFICE-SMT:0]# mgmt_cli add network --batch network.csv
Username: admin
Password:
Line 2: code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [Comments]"

Line 3: code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [Comments]"

Line 4: code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [Comments]"

Line 5: code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [Comments]"

Line 6: code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [Comments]"

Line 7: code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [Comments]"

Line 8: code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [Comments]"

Executed command failed. Changes are discarded.
[Expert@SZ-OFFICE-SMT:0]#

Groups: mgmt_cli add group --batch groups_full_csv.csv
Add objects to groups: mgmt_cli set group --batch group-members_full_csv.csv
Dynamic Objects: mgmt_cli add dynamic-object --batch dynamic-objects_full_csv.csv
Address Ranges: mgmt_cli add address-range --batch address-ranges_full_csv.csv
Domain Objects: mgmt_cli add dns-domain --batch dns-domain.csv

以上是关于Check Point防火墙导入.csv格式的对象的主要内容,如果未能解决你的问题,请参考以下文章

Check Point防火墙配置NAT

Check Point 培训 day1

Check Point防火墙TCP的单向控制

地理数据导入

palo alto 和 check point防火墙的区别

Check Point 培训 day6