Giter Club home page Giter Club logo

asbuiltreport.fortinet.fortigate's Introduction

Fortinet FortiGate As Built Report

Fortinet FortiGate As Built Report is a PowerShell module which works in conjunction with AsBuiltReport.Core.

AsBuiltReport is an open-sourced community project which utilises PowerShell to produce as-built documentation in multiple document formats for multiple vendors and technologies.

Please refer to the AsBuiltReport website for more detailed information about this project.

📚 Sample Reports

Sample Report

Sample FortiGate Fortinet As Built report HTML file: Sample Fortinet FortiGate As-Built Report.html

Sample FortiGate Fortinet As Built report Word file: Sample Fortinet FortiGate As-Built Report.docx

🔰 Getting Started

Below are the instructions on how to install, configure and generate a Fortinet FortiGate As Built report.

💾 Supported Versions

The Fortinet FortiGate As Built Report supports the following FortiGate versions;

PowerShell

This report is compatible with the following PowerShell versions;

Windows PowerShell 5.1 PowerShell 7

🔧 System Requirements

PowerShell 5.1 or PowerShell 7, and the following PowerShell modules are required for generating a Fortinet FortiGate As Built Report.

🔐 Required Privileges

You need to have an account (user/password) with only Read Only on the FortiGate

The use of an API Token in not currently supported.

📦 Module Installation

PowerShell

Install-Module PowerFGT
Install-Module AsBuiltReport.Fortinet.FortiGate

GitHub

If you are unable to use the PowerShell Gallery, you can still install the module manually. Ensure you repeat the following steps for the system requirements also.

  1. Download the code package / latest release zip from GitHub
  2. Extract the zip file
  3. Copy the folder AsBuiltReport.Fortinet.FortiGate to a path that is set in $env:PSModulePath.
  4. Open a PowerShell terminal window and unblock the downloaded files with
    $path = (Get-Module -Name AsBuiltReport.Fortinet.FortiGate -ListAvailable).ModuleBase; Unblock-File -Path $path\*.psd1; Unblock-File -Path $path\Src\Public\*.ps1; Unblock-File -Path $path\Src\Private\*.ps1
  5. Close and reopen the PowerShell terminal window.

Note: You are not limited to installing the module to those example paths, you can add a new entry to the environment variable PSModulePath if you want to use another path.

✏️ Configuration

The Fortinet FortiGate As Built Report utilises a JSON file to allow configuration of report information, options, detail and healthchecks.

A Fortinet FortiGate report configuration file can be generated by executing the following command;

New-AsBuiltReportConfig -Report Fortinet.FortiGate -FolderPath <User specified folder> -Filename <Optional>

Executing this command will copy the default Fortinet FortiGate report JSON configuration to a user specified folder.

All report settings can then be configured via the JSON file.

The following provides information of how to configure each schema within the report's JSON file.

Report

The Report schema provides configuration of the Fortinet FortiGate report information.

Sub-Schema Setting Default Description
Name User defined Fortinet FortiGate As Built Report The name of the As Built Report
Version User defined 1.0 The report version
Status User defined Released The report release status
ShowCoverPageImage true / false true Toggle to enable/disable the display of the cover page image
ShowTableOfContents true / false true Toggle to enable/disable table of contents
ShowHeaderFooter true / false true Toggle to enable/disable document headers & footers
ShowTableCaptions true / false true Toggle to enable/disable table captions/numbering

Options

The Options schema allows certain options within the report to be toggled on or off.

Sub-Schema Setting Default Description
Port TCP Port 443 Used to specify the admin HTTPS port of FortiGate
VDOM VDOM Name Used to specify the VDOM (Virtual Domain)
PolicyLayout Policy Layout all Use to display Policy Layout (normal, interfacepair, sequencegroup, all)

InfoLevel

The InfoLevel schema allows configuration of each section of the report at a granular level. The following sections can be set.

There are 3 levels (0-2) of detail granularity for each section as follows;

Setting InfoLevel Description
0 Disabled Does not collect or display any information
1 Enabled / Summary Provides summarised information for a collection of objects
2 Adv Summary Provides condensed, detailed information for a collection of objects

The table below outlines the default and maximum InfoLevel settings for each FortiGate section.

Sub-Schema Default Settings Maximum Settings
Forticare 1 1
System 1 1
Route 1 1
Firewall 1 1
User 2 2
VPN IPsec 2 2

Healthcheck

The Healthcheck schema is used to toggle health checks on or off.

Health checks are yet to be developed.

💻 Examples

There are a few examples listed below on running the AsBuiltReport script against a FortiGate. Refer to the README.md file in the main AsBuiltReport project repository for more examples.

# Generate a Fortinet FortiGate As Built Report for FortiGate fortigate.fortidemo.com using specified credentials. Export report to HTML & DOCX formats. Use default report style. Append timestamp to report filename. Save reports to 'C:\Users\PowerFGT\Documents'
PS C:\> New-AsBuiltReport -Report Fortinet.FortiGate -Target fortigate.fortidemo.com -Username demo -Password demo -Format Html,Word -OutputFolderPath 'C:\Users\PowerFGT\Documents' -Timestamp

# Generate a Fortinet FortiGate  As Built Report for FortiGate fortigate.fortidemo.com using specified credentials and report configuration file. Export report to Text, HTML & DOCX formats. Use default report style. Save reports to 'C:\Users\PowerFGT\Documents'. Display verbose messages to the console.
PS C:\>  New-AsBuiltReport -Report Fortinet.FortiGate -Target fortigate.fortidemo.com -Username demo -Password 'demo' -Format Text,Html,Word -OutputFolderPath 'C:\Users\PowerFGT\Documents' -ReportConfigFilePath 'C:\Users\Jon\AsBuiltReport\AsBuiltReport.Fortinet.FortiGate.json' -Verbose

# Generate a Fortinet FortiGate As Built Report for FortiGate fortigate.fortidemo.com using stored credentials. Export report to HTML & Text formats. Use default report style. Highlight environment issues within the report. Save reports to 'C:\Users\PowerFGT\Documents'.
PS C:\> $Creds = Get-Credential
PS C:\>  New-AsBuiltReport -Report Fortinet.FortiGate -Target fortigate.fortidemo.com -Credential $Creds -Format Html,Text -OutputFolderPath 'C:\Users\PowerFGT\Documents' -EnableHealthCheck

# Generate a Fortinet FortiGate As Built Report for FortiGate fortigate.fortidemo.com using stored credentials. Export report to HTML & DOCX formats. Use default report style. Reports are saved to the user profile folder by default. Attach and send reports via e-mail.
PS C:\>  New-AsBuiltReport -Report Fortinet.FortiGate -Target fortigate.fortidemo.com-Username demo -Password 'demo' -Format Html,Word -OutputFolderPath 'C:\Users\PowerFGT\Documents' -SendEmail

asbuiltreport.fortinet.fortigate's People

Contributors

alagoutte avatar tpcarman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

asbuiltreport.fortinet.fortigate's Issues

[REQUEST] Ipv6 option

Description

Hi,

Like Ipv6 will grow year after year (hopping :D), we'll have more and more firewall with IPV6 activate and confiugre.

Could it be a developpment with a new option (like VDOM). By default script will generate IPV4 only and if value is different of 0, then magic appear :)

Options possible :
0 disable
1 activate (ipv4+ipv6)
2 moderate (ipv6 only)

Regards
Renaud

Additional Context

These test are done on FortiOS 7.0.12. I'll check on 7.2 and 7.4 as soon to compare for get command

get won't show ipv6 value

show firewall address6
show firewall addrgrp6
config system interface
edit 'w'
show router static6
show firewall policy
show vpn ssl settings
show vpn ipsec phase1-interface
show vpn ipsec phase2-interface

Before submitting

  • I have read the documentation, and referred to the known issues before submitting this change request.
  • I have checked for previously opened & closed issues before submitting this change request.

You cannot call a method on a null-valued expression

Bug description

Attempting to run the FortiGate AsBuiltReport against a Virtual FortiGate running FortiOS 7.0.12.

Would you like to save the As Built Report configuration file? (y/n): n
VERBOSE: As Built Report configuration file not saved.
VERBOSE: Config.Report.Author = smichie
VERBOSE: Config.UserFolder.Path =
VERBOSE: Config.Company.FullName =
VERBOSE: Config.Company.Contact =
VERBOSE: Config.Company.Phone =
VERBOSE: Config.Company.Email =
VERBOSE: Config.Company.ShortName =
VERBOSE: Config.Company.Address =
VERBOSE: Config.Email.Port =
VERBOSE: Config.Email.Credentials =
VERBOSE: Config.Email.Server =
VERBOSE: Config.Email.To =
VERBOSE: Config.Email.From =
VERBOSE: Config.Email.UseSSL =
VERBOSE: Config.Email.Body =
VERBOSE: Populating RepositorySourceLocation property for module AsBuiltReport.Fortinet.FortiGate.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AsBuiltReport.Fortinet.FortiGate\0.2.0\AsBuiltReport.Fortinet.FortiGate.psm1'.
VERBOSE: Loading AsBuiltReport.Fortinet.FortiGate report configuration file from path 'C:\temp\AsBuiltReport.Fortinet.FortiGate.json'.
VERBOSE: Setting report filename to 'Fortinet FortiGate As Built Report'.
VERBOSE: [ 21:35:27:325 ] [ Document ] - Document 'Fortinet FortiGate As Built Report' processing started.
VERBOSE: [ 21:35:27:341 ] [ Document ] - Executing report style script from path 'C:\Program Files\WindowsPowerShell\Modules\AsBuiltReport.Fortinet.FortiGate\0.2.0\AsBuiltReport.Fortinet.FortiGate.Style.ps
1'.
VERBOSE: [ 21:35:27:357 ] [ Document ] - Setting global document options.
VERBOSE: [ 21:35:27:368 ] [ Document ] - Enabling section/heading numbering.
VERBOSE: [ 21:35:27:368 ] [ Document ] - Setting default font(s) to 'Arial'.
VERBOSE: [ 21:35:27:368 ] [ Document ] - Setting page top margin to '25.05'mm.
VERBOSE: [ 21:35:27:368 ] [ Document ] - Setting page right margin to '25.05'mm.
VERBOSE: [ 21:35:27:368 ] [ Document ] - Setting page bottom margin to '25.05'mm.
VERBOSE: [ 21:35:27:373 ] [ Document ] - Setting page left margin to '25.05'mm.
VERBOSE: [ 21:35:27:373 ] [ Document ] - Setting page size to 'A4'.
VERBOSE: [ 21:35:27:373 ] [ Document ] - Setting page orientation to 'Portrait'.
VERBOSE: [ 21:35:27:373 ] [ Document ] - Setting page height to '297'mm.
VERBOSE: [ 21:35:27:373 ] [ Document ] - Setting page width to '210'mm.
VERBOSE: [ 21:35:27:373 ] [ Document ] - Setting document style 'Title'.
VERBOSE: [ 21:35:27:373 ] [ Document ] - Setting document style 'Title2'.
VERBOSE: [ 21:35:27:373 ] [ Document ] - Setting document style 'Title3'.
VERBOSE: [ 21:35:27:373 ] [ Document ] - Setting document style 'Heading1'.
VERBOSE: [ 21:35:27:373 ] [ Document ] - Setting document style 'Heading2'.
VERBOSE: [ 21:35:27:373 ] [ Document ] - Setting document style 'Heading3'.
VERBOSE: [ 21:35:27:373 ] [ Document ] - Setting document style 'Heading4'.
VERBOSE: [ 21:35:27:373 ] [ Document ] - Setting document style 'NOTOCHeading4'.
VERBOSE: [ 21:35:27:373 ] [ Document ] - Setting document style 'Heading5'.
VERBOSE: [ 21:35:27:386 ] [ Document ] - Setting document style 'NOTOCHeading5'.
VERBOSE: [ 21:35:27:386 ] [ Document ] - Setting document style 'Normal'.
VERBOSE: [ 21:35:27:389 ] [ Document ] - Setting document style 'Caption'.
VERBOSE: [ 21:35:27:393 ] [ Document ] - Setting document style 'Header'.
VERBOSE: [ 21:35:27:393 ] [ Document ] - Setting document style 'Footer'.
VERBOSE: [ 21:35:27:393 ] [ Document ] - Setting document style 'TOC'.
VERBOSE: [ 21:35:27:393 ] [ Document ] - Setting document style 'TableDefaultHeading'.
VERBOSE: [ 21:35:27:393 ] [ Document ] - Setting document style 'TableDefaultRow'.
VERBOSE: [ 21:35:27:393 ] [ Document ] - Setting document style 'Critical'.
VERBOSE: [ 21:35:27:393 ] [ Document ] - Setting document style 'Warning'.
VERBOSE: [ 21:35:27:393 ] [ Document ] - Setting document style 'Info'.
VERBOSE: [ 21:35:27:393 ] [ Document ] - Setting document style 'OK'.
VERBOSE: [ 21:35:27:404 ] [ Document ] - Setting table style 'TableDefault'.
VERBOSE: [ 21:35:27:404 ] [ Document ] - Setting table style 'Borderless'.
VERBOSE: [ 21:35:27:404 ] [ Document ] - Processing document header started.
VERBOSE: [ 21:35:27:404 ] [ Document ] - Processing paragraph 'Fortinet FortiGate As Built Report -[..]'.
VERBOSE: [ 21:35:27:404 ] [ Document ] - Processing document header completed.
VERBOSE: [ 21:35:27:404 ] [ Document ] - Processing document footer started.
VERBOSE: [ 21:35:27:404 ] [ Document ] - Processing paragraph 'Page <!# PageNumber #!>'.
VERBOSE: [ 21:35:27:404 ] [ Document ] - Processing document footer completed.
VERBOSE: [ 21:35:27:404 ] [ Document ] - Processing blank line.
VERBOSE: [ 21:35:27:404 ] [ Document ] - Processing paragraph 'Fortinet FortiGate As Built Report'.
VERBOSE: [ 21:35:27:404 ] [ Document ] - Processing blank line.
VERBOSE: [ 21:35:27:404 ] [ Document ] - Processing table 'Cover Page'.
VERBOSE: [ 21:35:27:420 ] [ Document ] - Processing page break.
VERBOSE: [ 21:35:27:420 ] [ Document ] - Processing table of contents 'Table of Contents'.
VERBOSE: [ 21:35:27:420 ] [ Document ] - Processing page break.
VERBOSE: [ 21:35:27:605 ] [ Document ] - Connect to 20.213.106.xxx : FGVMAZ (FGTAZRW7YAHQTxxx)
VERBOSE: [ 21:35:27:620 ] [ Document ] - Processing section 'Implementation Report FGTAZRW7YAHQT9F1' started.
VERBOSE: [ 21:35:27:620 ] [ Document ] - Processing paragraph 'The following section provides a sum[..]'.
VERBOSE: [ 21:35:27:620 ] [ Document ] - Processing blank line.
VERBOSE: [ 21:35:27:620 ] [ Document ] - Discovering FortiCare settings information from 20.213.106.xxx.
VERBOSE: [ 21:35:27:687 ] [ Document ] - Processing section 'FortiCare' started.
VERBOSE: [ 21:35:27:687 ] [ Document ] - Processing paragraph 'The following section details FortiC[..]'.
VERBOSE: [ 21:35:27:687 ] [ Document ] - Processing blank line.
WARNING: [ 21:35:27:687 ] [ Document ] - You cannot call a method on a null-valued expression.
VERBOSE: [ 21:35:27:715 ] [ Document ] - Document 'Fortinet FortiGate As Built Report' processing completed.
VERBOSE: [ 21:35:27:730 ] [ Document ] - Total processing time '0.41' seconds.
New-AsBuiltReport : The property 'Number' cannot be found on this object. Verify that the property exists.
At line:1 char:1

  • New-AsBuiltReport -Report Fortinet.FortiGate -Target 20.213.106.xxx - ...
  • 
    

Command-line input

New-AsBuiltReport -Report Fortinet.FortiGate -Target 20.213.106.xxx -Username reader -Password 'xxx' -Format Text,Html,Word -OutputFolderPath 'c:\temp' -ReportConfigFilePath 'C:\temp\AsBuiltReport.Fortinet.FortiGate.json' -Verbose

Steps to reproduce

New-AsBuiltReport -Report Fortinet.FortiGate -Target 20.213.106.xxx -Username reader -Password 'xxx' -Format Text,Html,Word -OutputFolderPath 'c:\temp' -ReportConfigFilePath 'C:\temp\AsBuiltReport.Fortinet.FortiGate.json' -Verbose

Expected behaviour

Successful execution

Screenshots

No response

Operating System

Windows 11

PowerShell Version

PS C:\WINDOWS\system32> $PSVersionTable

Name Value


PSVersion 5.1.22621.1778
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.1778
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

PowerShell Modules

Name Version


AsBuiltReport.Core 1.3.0
AsBuiltReport.Fortinet.FortiGate 0.2.0
PowerFGT 0.7.0
PScribo 0.10.0

Additional Context

NA

Before submitting

Multi language support

Hi, thank you for this amazing script !

Do you think is possible to translate the reports in french or other ?

Custom port option

Hello,

The Firewall architecture that I manage does not use the default GUI port (443 or 80) we are on a custom port for HTTPS (44343) is it possible to add the custom port option ?

Thanks
Best regards

Port specification + Style, not working

Bug description

Hi, we are trying to customize the color's and specify a port for the as built, but it keeps failing.

i specified the port, as it stood in the AsBuilt.json

{ "Report": { "Name": "Fortinet FortiGate As Built Report", "Version": "1.0", "Status": "Released", "ShowCoverPageImage": true, "ShowTableOfContents": true, "ShowHeaderFooter": true, "ShowTableCaptions": true }, "Options": { "Port": 44310, "VDOM": "" }, "InfoLevel": { "_comment_": "0 = Disabled, 1 = Enabled / Summary, 2 = Adv Summary", "FortiCare": 1, "System": 1, "Route": 1, "Firewall": 1, "User": 2, "VPNIPsec": 2, "VPNSSL": 2 }, "HealthCheck": {}, "Port": 44310 }

and includded it in this command
New-AsBuiltReport -Report Fortinet.FortiGate -Target $Server -Username $Username -Password $Password_un -Format Word -OutputFolderPath 'C:\AsBuilt\' -Timestamp -AsBuiltConfigFilePath 'C:\AsBuilt\AsBuilt.json'

but it fails to connect.

this is the bat file we are using, so you can see we are connecting, (everything works on the default port)

`$Username = 'username'
$Password_un = 'password'
$Server = '12.12.12.12'
$Port = 44310

$password = ConvertTo-SecureString $Password_un -AsPlainText -Force

netsh interface portproxy add v4tov4 listenport = 443 connectport = $Port connectaddress = $Server

Connect-FGT -Server $Server -Username $Username -Password $password -Port $Port -SkipCertificateCheck

New-AsBuiltReport -Report Fortinet.FortiGate -Target $Server -Username $Username -Password $Password_un -Format Word -OutputFolderPath 'C:\AsBuilt' -Timestamp -AsBuiltConfigFilePath 'C:\AsBuilt\AsBuilt.json'
`

Command-line input

New-AsBuiltReport -Report Fortinet.FortiGate -Target $Server -Username $Username -Password $Password_un -Format Word -OutputFolderPath 'C:\AsBuilt' -Timestamp -AsBuiltConfigFilePath 'C:\AsBuilt\AsBuilt.json

Steps to reproduce

  1. setup a firewall on port 44310
  2. generate the report on that port

Expected behaviour

connection gets made, and report gets generated

Screenshots

No response

Operating System

Windows

PowerShell Version

Name Value


PSVersion 5.1.22621.1778
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.1778
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

PowerShell Modules

Name Version


AsBuiltReport.Core 1.3.0
AsBuiltReport.Fortinet.FortiGate 0.2.0
PowerFGT 0.7.0
PScribo 0.10.0

Additional Context

No response

Before submitting

[REQUEST] Syslogd, FAZ, FCTLD

Description

Hi,

It could be interesting to add settings of logging container about the FortiGate.

Regards,
Renaud

Additional Context

Fourth could exist, if state disable or null, then discard.
show log syslogd setting
show log syslogd2 setting
show log syslogd3 setting
show log syslogd4 setting

Three could exist, if state disable or null, then discard.
show log fortianalyzer setting
show log fortianalyzer2 setting

If no value, then discard
show log fortianalyzer-cloud setting
show log fortiguard setting

Before submitting

  • I have read the documentation, and referred to the known issues before submitting this change request.
  • I have checked for previously opened & closed issues before submitting this change request.

Add the "Ref." column

Description

Hi,

It would be interesting to add the "Ref." column.
This will at least allow you to check whether an object is used or not.

Great job.
++

Additional Context

No response

Before submitting

  • I have read the documentation, and referred to the known issues before submitting this change request.
  • I have checked for previously opened & closed issues before submitting this change request.

Trusted Hosts delete 0.0.0.0/0

Bug description

In the report, in the System -Admin section, there are multiples of 0 in the Trusted Hosts column.

While there are trusted set up

Command-line input

New-AsBuiltReport -Report Fortinet.FortiGate -Target 192.168.15.1 -Username Loic -Password Endurable7-Brought-Unearth -Format Html,Word -ReportConfigFilePath 'C:\Users\LoïcLysinskiSIPsa\Desktop\AsBuiltReport.Fortinet.FortiGate.json' -OutputFolderPath 'C:\Users\LoïcLysinskiSIPsa\Desktop' -Timestamp

Steps to reproduce

  1. delete 0.0.0.0/0

Expected behaviour

deletion of unnecessary 0.0.0.0

Screenshots

2023-07-28 09_25_56-Window

Operating System

WIndows 10

PowerShell Version

5.1.19041.3031

PowerShell Modules

Name Version


AsBuiltReport.Core 1.3.0
AsBuiltReport.Fortinet.FortiGate 0.2.0
PowerFGT 0.7.0
PScribo 0.10.0

Additional Context

No response

Before submitting

Cannot validate argument on parameter 'Hashtable'.

Bug description

we are running fortigate version 7.4.1 and getting the following error. I have done tests and put together a whole document testing the different versions for the company i work for. i will attach that document. but we have noted at one of our clients that it does not work on their 7.4.1.

Command-line input

$Username = 'Redacted'\n$Password_un = 'Redacted'\n$Server = 'Redacted'\n$Port = Redacted\n\n$password = ConvertTo-SecureString $Password_un -AsPlainText -Force\n\nConnect-FGT -Server $Server -Username $Username -Password $password -Port $Port -SkipCertificateCheck\n\nNew-AsBuiltReport -Report Fortinet.FortiGate -Target $Server -Username $Username -Password $Password_un -Format Word -OutputFolderPath 'C:\AsBuilt' -Timestamp -ReportConfigFilePath 'C:\AsBuilt\AsBuilt.json' -AsBuiltConfigFilePath 'C:\AsBuilt\parameters.json' -StyleFilePath 'C:\AsBuilt\StyleFilePath.ps1' -Filename '[Redacted] Fortinet FortiGate As Built Report (fmDQ)'

Steps to reproduce

FortiGate As-Built Program Debug 2.docx

Expected behaviour

As Built to be generated

Screenshots

No response

Operating System

Windows 11

PowerShell Version

Name Value


PSVersion 5.1.22621.2506
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.2506
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

PowerShell Modules

Name Version


AsBuiltReport.Core 1.3.0
AsBuiltReport.Fortinet.FortiGate 0.2.2
PowerFGT 0.7.0
PScribo 0.10.0

Additional Context

Redacted Logging.log

Before submitting

Feature request - VPN extraction

Hi,

Is your feature request related to a problem? Please describe.
There is no relation to a problem. It's just a suggestion to take more information

Describe the solution you'd like
add 2 Chapters
1/ VPN SSL (it is activate ? listen port ? IP access filtering ? dns and suffix ? authentication timeout and certificate)
2/ VPN IPSEC (phase 1 and phase 2 resume per tunnel)

Describe alternatives you've considered
A simple export from vpn ipsec phase1-interface and phase2-interface (mode tunnel is depreciate) and grep to delete ENC psk and only specify if psk or certificate
A simple export from vpn ssl settings and grep to delete some information

Best regards
Renaud HUMBERT

Disconnect-FGT not recognized as applet

Bug description

Hello,

Here is full error :
New-AsBuiltReport : Le terme «Disconnect-FGT» n'est pas reconnu comme nom d'applet de commande, fonction, fichier de
script ou programme exécutable. Vérifiez l'orthographe du nom, ou si un chemin d'accès existe, vérifiez que le chemin
d'accès est correct et réessayez.
Au caractère Ligne:1 : 1

  • New-AsBuiltReport -Report Fortinet.FortiGate -Target xx -Userna ...
  •   + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-AsBuiltReport
    
    

Thanks.

Command-line input

New-AsBuiltReport -Report Fortinet.FortiGate -Target xx -Username xadmin -Password 'x' -Format Text,Html,Word -OutputFolderPath 'C:\Users\x\Downloads\AsbuiltReport' -ReportConfigFilePath 'C:\Users\x\Downloads\AsbuiltReport\Forti.json' -Verbose

Steps to reproduce

Just launch cmd line.

Expected behaviour

working without error

Screenshots

No response

Operating System

Windows 10.

PowerShell Version

5.1.19041.3031 or 7.4.0

PowerShell Modules

Name Version


AsBuiltReport.Core 1.3.0
AsBuiltReport.Fortinet.FortiGate 0.2.2
PowerFGT 0.7.0
PScribo 0.10.0

Additional Context

No response

Before submitting

Policy Table driven by Interface

Is your feature request related to a problem? Please describe.
It is only a feature request

Describe the solution you'd like
It would be nice, if the policy table in the report looks like the view in the gui of fortinet.
There is obviously no sorting in the report, since all the interfaces are mixed up there.
I would like a display like the Fortinet web interface with the option Interface pair view

Empty value when firewall policy use ISDB

Bug description

Hi,

When i generate a doc for a FortiGate using Fortinet ISDB, every rule using these objets appear with empty value "" in the document.
image

Regards
Renaud HUMBERT

Command-line input

Steps to reproduce

Use ISDB on firewall policy

Expected behaviour

get the ISDB name apply on

Screenshots

image

Operating System

PowerShell Version

7

PowerShell Modules

Additional Context

No response

Before submitting

[BUG] VDOM options - Interfaces

Bug description

All interfaces are extract and then if we have a lot of VDOM, generation will be longer and we had to delete manually informations.

Command-line input

New-AsBuiltReport -Report Fortinet.FortiGate -Target FQDN -Username demo -Password 'demo' -Format Html -OutputFolderPath 'C:\monuser\AsBuiltReport' -Timestamp

Steps to reproduce

Edit .json and put a VDOM name which exist on the FortiGate
Generate a report with an account which can access more than the VDOM to document.

Expected behaviour

I want to only get interface attached to the VDOM and not to the global VDOM.

Screenshots


2023-08-11_11-31-58

Operating System

Windows Server

PowerShell Version

5.1.14409.1029

PowerShell Modules

Name Version


AsBuiltReport.Core 1.3.0
AsBuiltReport.Fortinet.FortiGate 0.2.0
AsBuiltReport.Fortinet.FortiGate 0.1.1
PowerFGT 0.7.0
PScribo 0.10.0

Additional Context

It's not a PowerShell issue but certainly a wrong execute command or in wrong context/emplacment.

Before submitting

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.