Git Product home page Git Product logo

forticonvert's Introduction

forticonvert

Forticonvert is a bash tool to convert CSV files containing fortigate configuration such as static routes, filter policy...

You'll need one csv file per configuration types (templates are available in the repo)

Read INSTRUCTIONS.txt in csv_template folder before fill in csv files !!!!

Available configurations for convertion :

  • interfaces
  • zones
  • static routes
  • addresses
  • adresses groups
  • custom services
  • services groups
  • ip pools
  • VIP
  • rules (filtering policy)

Usage

git clone https://github.com/Th3CL0wnS3c/forticonvert.git
cd forticonvert && chmod a+x forticonvert.sh
./forticonvert {option} input-csv-file output-script-file {--vdom VDOM_NAME}  #the vdom option is optionnal

Help :

forticonvert.sh { -help | -h }  ==> Display this help
forticonvert.sh { --address | -a} input_addresses-csv output-result.txt  ==> Convert CSV file containing Forti Objects to script configuration file
forticonvert.sh { --address-group | -agrp } input_address-group-csv output-result.txt  ==> Convert CSV file containing Forti Adresses Groups to script configuration fil
forticonvert.sh { --interfaces | -i } input_interfaces-csv output-result.txt  ==> Convert CSV file containing Forti Interfaces to script configuration file
forticonvert.sh { --rules | -r } input_rules-csv output-result.txt  ==> Convert CSV file containing Forti Rules to script configuration file
forticonvert.sh { --pools | -p } input_ippools-csv output-result.txt  ==> Convert CSV file containing Forti IP Pools to script configuration file
forticonvert.sh { --vip | -v } input_vip-csv output-result.txt  ==> Convert CSV file containing Forti VIP Objects to script configuration file
forticonvert.sh { --zones | -z } input_zones-csv output-result.txt  ==> Convert CSV file containing Forti Zones to script configuration file
forticonvert.sh { --routes | -rtr } input_routes-csv output-result.txt  ==> Convert CSV file containing Forti Static Routes to script configuration file
forticonvert.sh { --service | -s } input_services-csv output-result.txt  ==> Convert CSV file containing Forti Custom Services to script configuration file
forticonvert.sh { --service-group | -sgrp } input_services-group-csv output-result.txt  ==> Convert CSV file containing Forti  Services Group to script configuration file

Add --vdom VDOM_NAME at the end of the command to convert configuration for specific vdom (VDOM_NAME has to be case sensitive => Space are forbidden in VDOM NAME, prefer use of - or _)

Demo Video : Available soon

forticonvert's People

Contributors

th3cl0wns3c avatar

Stargazers

 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.