Skip to content

Easy PowerShell (scraping) script using SSH to prepare or adjust a Fortigate (Fortinet) Firewall - No API.

Notifications You must be signed in to change notification settings

alexmeys/New-FGT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 

Repository files navigation

PowerShell Fortigate Configuration tool

This is an easy to read / adjust Fortigate configuration script made in Powershell.
Place the files wherever you want (usb, local pc, other partition,...).
Unblock the file if needed (right click > properties > unblock file)

Run:

 .\FGT_Start.ps1  

In case you get an error that scripts cannot run on your system
Type: Set-ExecutionPolicy -RemoteSigned
You can set it back to restricted later, if you want too (Set-ExecutionPolicy Default).

It first checks if Posh-SSH is installed, if not, it will try to install it for you. Due too this reason, the first connection takes a little time.
Once it is installed on your pc, the next connection will be fast.
Follow the steps 1-7 for the best experience.
Or pick indiviual options from the menu shown, for a specific configuration.

In case you are wondering, when applying the policy's, it will only add policy's not delete existing policy's. However in case they have the same ID (default 1-10) It will overwrite them. In that case you can edit the policy numbers to some range behind your current policy ID's.

It has been tested with Fortigate 5.2.x and 6.2.x, it seems to work on both versions, however use at your own risk.

Always make a backup just in case...

! Bugs found on New FGT !

Seems something off with the lan configuration (lan vs internal mec. check needed)



Some pictures:

alt text
alt text
alt text
alt text
alt text
alt text
alt text
alt text

About

Easy PowerShell (scraping) script using SSH to prepare or adjust a Fortigate (Fortinet) Firewall - No API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published