Technical Tip: Script to create Address objects and one address group for all geography countries on FortiGate
- April 22, 2024
- 1 reply
- 7661 views
Description | This article describes how to use a script to import all geography-based address objects and to create an address object group for all the countries. |
Scope | FortiGate. |
Solution | Check the following steps to create an address object for each geography-based country and to create an address group for all the countries.  To create address objects, download the .zip file named Geography-based address objects.zip attached to this article.Â
![]()   Confirm all country address objects are created by navigating to Policy & Objects -> Addresses: Geography.  If desired, check and verify the IDs of each country on the text file attached.    To create an address group for all the countries, another script is added to this document named All_countries_address_group_script.zip. Copy and paste this script to the FortiGate CLI.  Note: The geography object named Reserved (ZZ) includes private, reserved, and other IP ranges that are not publicly assigned. Exclude this object if the group should contain only publicly assigned country ranges.  Related document: |

