Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ornulfn/psfortigateparser
Parse and create CSV reports from a Fortigate configuration file
https://github.com/ornulfn/psfortigateparser
csv-files csv-reports fortigate fortigate-configuration fortigate-firewall fortinet parse powershell powershell-core powershell-module
Last synced: about 1 month ago
JSON representation
Parse and create CSV reports from a Fortigate configuration file
- Host: GitHub
- URL: https://github.com/ornulfn/psfortigateparser
- Owner: ornulfn
- License: bsd-3-clause
- Created: 2020-01-01T20:09:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-22T18:40:11.000Z (over 4 years ago)
- Last Synced: 2024-10-11T21:01:34.613Z (about 1 month ago)
- Topics: csv-files, csv-reports, fortigate, fortigate-configuration, fortigate-firewall, fortinet, parse, powershell, powershell-core, powershell-module
- Language: PowerShell
- Homepage:
- Size: 117 KB
- Stars: 23
- Watchers: 4
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PSFortigateParser
# Introduction
The purpose of this Powershell module is to parse a Fortigate configuration file and create CSV reports.
CSV files are created with delimiter specified by system regional settings and will be saved using same encoding as specified for reading the config file. To open created CSV files in Excel, save files using .csv extension - double click on file to open it in Excel (Excel import wizard does not correctly parse multivalued cells using linefeed as separator).
## Changelog
Detailed changes for each release are documented in the [release notes](https://github.com/ornulfn/PSFortigateParser/releases).
## Quickstart
Basic usage:
```powershell
# Open and parse a Fortigate config file using UTF8 encoding, save reports as CSV.
$Config = New-PSFortigateReport -Params @('C:\firewall.conf', [System.Text.Encoding]::UTF8)
$Config.savePolicyReport('C:\firewall-policy.csv')
$Config.saveAddressReport('C:\firewall-address.csv')
$Config.saveAddressGroupReport('C:\firewall-addressgroup.csv')
$Config.saveServiceReport('C:\firewall-service.csv')
$Config.saveServiceGroupReport('C:\firewall-servicegroup.csv')
```