https://github.com/codejake/fortigate-tools
A set of tools to make Fortigate administrators' lives easier.
https://github.com/codejake/fortigate-tools
fortigate fortigate-automation fortinet
Last synced: about 1 year ago
JSON representation
A set of tools to make Fortigate administrators' lives easier.
- Host: GitHub
- URL: https://github.com/codejake/fortigate-tools
- Owner: codejake
- License: mit
- Created: 2024-09-04T15:48:40.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-13T17:12:56.000Z (over 1 year ago)
- Last Synced: 2025-02-10T21:54:40.496Z (over 1 year ago)
- Topics: fortigate, fortigate-automation, fortinet
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# fortigate-tools đŠčđ»
đ„ïž 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](https://community.fortinet.com/t5/FortiGate/Technical-Tip-Recommended-Release-for-FortiOS/ta-p/227178), but it will probably work on older and
newer versions, as well.
## Installation
1. Clone this repo.
2. If you want to use the Fortigate stuff, [get a Fortigate REST API token](https://registry.terraform.io/providers/fortinetdev/fortios/latest/docs/guides/fgt_token) from your Fortigate device.
3. Copy `config.js-sample` to `config.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](https://docs.fortinet.com/document/fortigate/7.0.0/new-features/822087/acme-certificate-support).
## Tools
### fg-get-ratings.js
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"`.
## Links
- [Fortigate ACME certificate support](https://docs.fortinet.com/document/fortigate/7.0.0/new-features/822087/acme-certificate-support)
- [FortiOS Recommended Releases](https://community.fortinet.com/t5/FortiGate/Technical-Tip-Recommended-Release-for-FortiOS/ta-p/227178)
## FAQs
### How do I get more access to the Fortigate API documentation?
Answer: Contact your Fortinet rep đđ»ââïž and ask for access to the [Fortinet Developer Network website](https://fndn.fortinet.net). I am unable to help you with this.
## License
This project is licensed under the terms of the MIT license.