GithubHelp home page GithubHelp logo

alexmeys / new-fgt Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 202 KB

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

PowerShell 100.00%
fortigate fortigate-configuration fortinet fortigate-firewall

new-fgt's Introduction

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

new-fgt's People

Contributors

alexmeys avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.