- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
dumping fwpolicies into a xls or csv format
PCNSE
NSE
StrongSwan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
RZK Muhendislik Turkey
FCA,FCP,FCF,FCSS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content



ABB@ProBiblio Fortigate 200D (slave master)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PCNSE
NSE
StrongSwan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
From what I can see the FortiManager allows you to export the policy packages to csv.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Policy export tool:
http://www.tuncaybas.com/...rtigate-policy-export/
RZK Muhendislik Turkey
FCA,FCP,FCF,FCSS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yaba wrote:Tell us a little about this! Did you write this yourself!?Policy export tool:
http://www.tuncaybas.com/...rtigate-policy-export/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
RZK Muhendislik Turkey
FCA,FCP,FCF,FCSS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
program is for local use and is secure.
Those who know me know in the Forum. My address is known.
You can trust me. or even whether the program decompiler, you can look.
RZK Muhendislik Turkey
FCA,FCP,FCF,FCSS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The rest API document is awesome, thanks! Do you also have it for the 5.4 firmware?
