Heya,
Is there an official list or table to tell me what color is tied to what integer in the 'set color' command under the 'config firewall address'?
Hello Davsank,
Thank you for using the Community Forum. I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible.
Thanks,
Hi,
By default, all the objects are colored black. It would be more apparent to read the color code from a FortiManager, the list and code can be accounted from left to right, top to bottom, please see Color code an object | FortiManager 7.2.2 (fortinet.com) that shows the colors
Best regards,
Jin
Hi, but that is not helpful.
I don't have a FortiManager handy, and also the guide only shows a screenshot.
I need a simple table like set color = 0 is black, set color = 5 is red, and so forth.
I refuse to believe that in all of your resources, you fail to provide this info for people who may want to configure objects via CLI.
The color codes are as below.
1 is black
2 is blue
3 is green
6 is red and so on...
The below can be found in Fortigate GUI itself under the address object
I created the following diagram to show the codes and color names that are available. I've shown the diagram in FortiManager format to make it easier to spot them when viewing an object in FMG.
I used this script to create objects for testing purposes. Some ppl might find this useful, so I include it here. The CLI script includes the RGB color codes and each Fortinet assigned color 'name' (which you can see in FMG when you hover your mouse over each color when editing an object).
config firewall address
edit "COLOR-0"
set comment "#2D2D2D,neutral-100"
set color 0
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-1"
set comment "#2D2D2D,neutral-100"
set color 1
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-2"
set comment "#2196F3,blue-500"
set color 2
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-3"
set comment "#4CAF50,emerald-500"
set color 3
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-4"
set comment "#E57373,red-300"
set color 4
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-5"
set comment "#EF9A9A,red-200"
set color 5
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-6"
set comment "#FF5722,tomato-500"
set color 6
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-7"
set comment "#F4511E,tomato-600"
set color 7
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-8"
set comment "#F4511E,orange-800"
set color 8
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-9"
set comment "#F57F17,yellow-900"
set color 9
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-10"
set comment "#FFCA28,amber-400"
set color 10
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-11"
set comment "#FFB300,amber-600"
set color 11
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-12"
set comment "#388E3C,emerald-700"
set color 12
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-13"
set comment "#7CB342,green-600"
set color 13
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-14"
set comment "#81C784,emerald-300"
set color 14
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-15"
set comment "#43A047,emerald-600"
set color 15
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-16"
set comment "#689F38,green-700"
set color 16
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-17"
set comment "#039BE5,sky-600"
set color 17
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-18"
set comment "#03A9F4,sky-500"
set color 18
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-19"
set comment "#2196F3,blue-500"
set color 19
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-20"
set comment "#7986CB,indigo-300"
set color 20
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-21"
set comment "#B39DDB,violet-200"
set color 21
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-22"
set comment "#CE93D8,purple-200"
set color 22
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-23"
set comment "#F48FB1,pink-200"
set color 23
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-24"
set comment "#F06292,pink-300"
set color 24
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-25"
set comment "#FE615C,red-400"
set color 25
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-26"
set comment "#BDBDBD,gray-400"
set color 26
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-27"
set comment "#949494,gray-500"
set color 27
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-28"
set comment "#FFA726,orange-400"
set color 28
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-29"
set comment "#9E9D24,lime-800"
set color 29
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-30"
set comment "#9FA8DA,indigo-200"
set color 30
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-31"
set comment "#E1BEE7,purple-100"
set color 31
set subnet 255.255.255.255 255.255.255.255
next
edit "COLOR-32"
set comment "#A1887F,brown-300"
set color 32
set subnet 255.255.255.255 255.255.255.255
next
end
Some day (if I can find the time), I might try to match HTML standard color names to these colors. And, I intend to create a TCL script that will assign colors to objects using user configurable criteria. I'll post it once I create and test it.
Helpful Links:
Fortigate Color Object Administration - https://docs.fortinet.com/document/fortimanager/7.6.1/administration-guide/519657/color-code-an-obje...
Website that scrapes RGB from images - https://html-color-codes.info/colors-from-image/
And here is a list of the color codes, RGB, and names in a CSV like format.
# 0,#2D2D2D,neutral-100
# 1,#2D2D2D,neutral-100
# 2,#2196F3,blue-500
# 3,#4CAF50,emerald-500
# 4,#E57373,red-300
# 5,#EF9A9A,red-200
# 6,#FF5722,tomato-500
# 7,#F4511E,tomato-600
# 8,#F4511E,orange-800
# 9,#F57F17,yellow-900
# 10,#FFCA28,amber-400
# 11,#FFB300,amber-600
# 12,#388E3C,emerald-700
# 13,#7CB342,green-600
# 14,#81C784,emerald-300
# 15,#43A047,emerald-600
# 16,#689F38,green-700
# 17,#039BE5,sky-600
# 18,#03A9F4,sky-500
# 19,#2196F3,blue-500
# 20,#7986CB,indigo-300
# 21,#B39DDB,violet-200
# 22,#CE93D8,purple-200
# 23,#F48FB1,pink-200
# 24,#F06292,pink-300
# 25,#FE615C,red-400
# 26,#BDBDBD,gray-400
# 27,#949494,gray-500
# 28,#FFA726,orange-400
# 29,#9E9D24,lime-800
# 30,#9FA8DA,indigo-200
# 31,#E1BEE7,purple-100
# 32,#A1887F,brown-300
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1737 | |
1107 | |
752 | |
447 | |
240 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.