Hi,
I have been working for several months on a PowerShell module that uses the FortiGate REST API.
This module is available on psgallery(.com) : https://www.powershellgallery.com/packages/PowerFGT
Actually, we support to connect to HTTPS or HTTP
and use the following feature :
[ul]
it is very easy to use (and install)
Launch PowerShell command line and launch following command for install
Install-Module PowerFGT
for load the module
Import-Module PowerFGT
Connect to your firewall
Connect-FGT 192.0.2.1
You get a prompt to ask credential
for example to get all address use
Get-FGTFirewallAddress
You can get the list of command available via
Get-Command -Module PowerFGT
and for get help (and example about a command for example Add-FGTFirewallAddress)
Get-Help Add-FGTFirewallAddress -Full
More documentation, example is available on https://github.com/FortiPower/PowerFGT and you can also report issue/enhance !
Solved! Go to Solution.
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
A new release of PowerFGT (0.40 is available on PSGallery => https://www.powershellgallery.com/packages/PowerFGT/
[ul]Documentation is available https://fortipower.github.io/PowerFGT/
Bug Report / Enhance : https://github.com/FortiPower/PowerFGT
Thanks for this great module @alagoutte. Just tried some feature but can't seem to find a way to add mac address to Address or Address Group. Am I missing something?
Sure, thanks @alagoutte!
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1647 | |
1071 | |
751 | |
443 | |
214 |
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 2024 Fortinet, Inc. All Rights Reserved.