Skip to content

scorpix06/fortigate-python-apikey-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fortigate Python API token generator

This project aim to help system and network administrators in Fortigate firewall configuration automation.

Indeed, to fully automate the deployment of a new Fortigate device, the creation of an API admin token is necessary. This script use python paramiko to do the first power on configuration :

  1. Changing the default password
  2. Create an API token (API Administrator and API profile)
  3. Upgrade the firmware

After these step, the fortigate API could be used to do the rest of the configuration.

Roadmap

  • Improve the upgrade method
  • Possibility to choose what kind of token create (Read-Only or Read-Write)

Download

Install on Debian / Ubuntu

  sudo apt install python3-pip git -yq
  git clone https://github.com/scorpix06/fortigate-python-apikey-generator.git
  cd ./fortigate-python-apikey-generator
  python3 -m pip install -r requirements.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages