How to export IPv4 Policies from Fortigate firewall to Excel Sheet (Python script)

Опубликовано: 15 Октябрь 2024
на канале: Abderrahmane TEKFI
19,003
44

today I will show to you how to export IpV4 policies from fortigate to excel sheet ...

1- We need to use this script fgpoliciestocsv.py
2- we need to export the configuration of the firewall, by the backup or by command line. in my lab I did a backup of the configuration ... this is the file
Master_20170527_1103.conf

3- from this file we need to extract the rules:
4- we need to create a file : fgfw.cfg
5- past the rules to this file
6- execute the script fgpoliciestocsv.py to do this I will use UNIX VM :)

7- now we have the excel sheet ...
8- we need to open the file by Excel ..

that's it ... the command is: python fgpoliciestocsv.py -i fgfw.cfg
good luck ....

to downoled the script : https://github.com/maaaaz/fgpoliciest...