Skip to content

tolgaakkapulu/Adding-rules-to-FortiGate-using-FortiAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Adding-rules-to-FortiGate-using-FortiAPI

With the parameters specified in use, the hostname is created in FortiGate and after this hostname is included in the group, the created group is included in the specified policy.

Installation

Usage

  • python3 fortiapi.py FORTI_IP CREDENTIAL_FILE_PATH POLICY_NAME GROUP_NAME HOST_NAME IP_ADDRESS INCOMING_INTERFACE OUTGOING_INTERFACE

Example

  • python3 fortiapi.py 192.168.123.123 forti_credentials.txt TEST_POLICY TEST_GROUP hostname-1 1.2.3.4 port2 port3

Releases

No releases published

Packages

No packages published

Languages