🖥️ Command-line tools that ease the day for administrators of Fortigate firewalls. I am slowly fixing up my private tools and adding them to this public repo.
The Fortigate functionality is tested with FortiOS 7.2, which is the current Fortinet recommended release, but it will probably work on older and newer versions, as well.
- Clone this repo.
- If you want to use the Fortigate stuff, get a Fortigate REST API token from your Fortigate device.
- Copy
config.js-sample
toconfig.js
and change the values to your environment.- You should use FQDNs along with a valid SSL certificate or you may run into certificate errors. FortiOS 7.0 and beyond support Let's Encrypt certificates with automatic renewal.
Purpose: Get the Fortiguard rating for a given URL.
Usage: node ./fg-get-ratings.js "example.com"
or even node ./fg-get-ratings.js "https://www.example.com/thing?arg=1"
.
Answer: Contact your Fortinet rep 💁🏻♂️ and ask for access to the Fortinet Developer Network website. I am unable to help you with this.
This project is licensed under the terms of the MIT license.