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).
The " nipper" link links to the blog that has a link to a Sourceforge project which is marked as deleted (also
)
So i Googled nipper and found another Sourceforge (http://sourceforge.net/projects/nipper/) which seemed promising at first but I found that the only files there are an IP subnet calculator and tool to decrypt Cisco type 7 passwords.
Nipper itself has gone commercial and now belongs to Titania Ltd as Nipper Studio.
An evaluation kit of that needed a lot more effort than I am willing to put in right now
Anyway, what I am looking for was more ore less the Webbased Manager but with just a bit more sofistication (things like search and replace, bulk edit, block moves, you get the drift)
ABB@ProBiblio Fortigate 200D (slave master)
PCNSE
NSE
StrongSwan
Policy export tool:
http://www.tuncaybas.com/...rtigate-policy-export/
yaba wrote:Tell us a little about this! Did you write this yourself!?Policy export tool:
http://www.tuncaybas.com/...rtigate-policy-export/
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).
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.
The rest API document is awesome, thanks! Do you also have it for the 5.4 firmware?
| User | Count |
|---|---|
| 2707 | |
| 1416 | |
| 810 | |
| 716 | |
| 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.