Skip to main content
ITCSS
Explorer II
December 2, 2024
Question

Adding domains and IP - CLI Script

  • December 2, 2024
  • 2 replies
  • 997 views

Hi,

 

In the case that a website suggest a list of domains and/or IP addresses, I would like to know how to make a CLI script to either create a new group or add members to a new group. I know the indentation is important.

 

Example: https://learn.microsoft.com/en-us/mem/intune/fundamentals/intune-endpoints?tabs=north-america

 

I was adding things manually but now there's so much that I'm looking into upload CLI scripts.

 

Thank you for your time.

2 replies

sjoshi
Staff
Staff
December 2, 2024

Hi,

 

Are you trying to add the address object on object using any automatic process where bulk address object can be added?

Thanks, Salon
Fibox
New Member
December 2, 2024

Hi,

 

you can automate the entire process by hosting a list with IPs or FQDNS on a webserver and add them as a Threat Feed to your FortiGate:

https://docs.fortinet.com/document/fortigate/7.4.5/administration-guide/891236/ip-address-threat-feed

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!