Skip to main content
Eniigma
New Member
April 17, 2019
Solved

60E Create a group of specific IP addresses

  • April 17, 2019
  • 3 replies
  • 5267 views

Hi I'm still very new to Fortigate stuff and firewalls in general and feel like I'm missing something very basic here.

 

It is possible to create a group of specific IPs (not ranges) that I can add to at will and then use those in allow or deny rules.  At the moment the closest thing I can find is and address group, but that requires me to create an address for each IP that I'd want to add to the group.   At the moment I have a little over 26 IP's I'd like to add to the address and block all traffic with them, so creating an object for each on just to add to a group seems a little onerious, which makes me think I'm missing something very simple.

 

As I'm a newb to all this, I do all my managerment though the web interface.

Best answer by Bubu

Creating a unique address and then assigning it to a group is the best and only solution. You can prepare the entries on an Excel file and then send them in CLI to make your task easier

Exemple:

config firewall address 
edit H_1.1.1.1/32
set subnet 1.1.1.1/32
end

3 replies

Bubu
BubuAnswer
New Member
April 17, 2019

Creating a unique address and then assigning it to a group is the best and only solution. You can prepare the entries on an Excel file and then send them in CLI to make your task easier

Exemple:

config firewall address 
edit H_1.1.1.1/32
set subnet 1.1.1.1/32
end

Eniigma
EniigmaAuthor
New Member
April 17, 2019

Bubu wrote:

Creating a unique address and then assigning it to a group is the best and only solution. You can prepare the entries on an Excel file and then send them in CLI to make your task easier

Exemple:

config firewall address 
edit H_1.1.1.1/32
set subnet 1.1.1.1/32
end

Ok thanks,  I'd hoped there was another way to just lump them all together.

 

Thanks for the answer.

Bubu
New Member
April 17, 2019

config firewall address,edit,H_1.1.1.1/32, set subnet,1.1.1.1/32,end

 

If you prepare an Excel list with all your addresses, then copy all the lines to a Notepad, you replace the "," with a line break, that's it, copy and paste in CLI.

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.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!