PCNSE
NSE
StrongSwan
Solved! Go to Solution.
Yes offcourse
I use fortigate rest api document.
http://www.tuncaybas.com/FOS_JSON_REST_API_523.pdf
Get all policy for 5.2 :
[link]https://192.168.0.1:443/api/cmdb?request=[/link]{'action':'select','path':'firewall','name':'policy','datasource':true,'skip':true,'with_meta':true}
Get all policy for 5.4 :
https://192.168.0.1:443/a..2/cmdb/firewall/policy/
This results json format.
{
"http_method":"GET",
"results":[
{
"policyid":7,
"q_origin_key":"7",
"name":"fatura-pc-deny",
"uuid":"53e964d2-36b8-51e6-a95c-9c146a1da1c8",
"srcintf":[
{
"name":"lan",
"q_origin_key":"lan"
}
],
"dstintf":[
{
"name":"wan1",
"q_origin_key":"wan1"
}
],
"srcaddr":[
{
"name":"all",
"q_origin_key":"all"
}
],
and parse with .net (or use other language).
Anybody seen any cool tools that will grab fwpolicies and dump them into a format to import into xls, or csv or any other method?Sounds like a cool programming project. SNMP query a Fortigate and create a visual map of all interfaces & FW Policies
PCNSE
NSE
StrongSwan
PCNSE
NSE
StrongSwan
ABB@ProBiblio Fortigate 200D (slave master)
PCNSE
NSE
StrongSwan
ABB@ProBiblio Fortigate 200D (slave master)
PCNSE
NSE
StrongSwan
User | Count |
---|---|
2549 | |
1356 | |
795 | |
646 | |
455 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.