Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Tristan_C
New Contributor

Webfilter default table value entries for profiles created via CLI are misaligned with Category ID

Not sure if this can be classified as a bug, however it is very scripting hostile when building config templates for webfilter profiles. I personally would like to see this behavior changed so that CLI created profiles have a blank table, or at least aligned entries to IDs. Also I would like all the categories to actually be listed with "?" from the set category context as they are not all currently, and documentation is sparse.

 

When created via the GUI or editing a profile made via CLI and simply hitting "OK" to save with no changes, the table is prepopulated with aligned entries to category ID:

FG60E # config webfilter profile
FG60E (profile) # edit sample2
FG60E (sample2) # show
config webfilter profile
edit "sample2"
config ftgd-wf
unset options
config filters
edit 12
set category 12
set action warning
next
edit 2
set category 2
set action warning
next
edit 7
set category 7
set action warning
next
edit 8
set category 8
set action warning
next
----- cut -----

 

 

When done via the CLI, there are 23 (on 6.4) entries that are created with entry numbers 1->23 which have category IDs set that do not match (so if you wish to script this correctly you need to add a purge with a confirm which is terrible):

FG60E # config webfilter profile
FG60E (profile) # edit sample1

new entry 'sample1' added
FG60E (sample1) # show
config webfilter profile
edit "sample1"
config ftgd-wf
unset options
config filters
edit 1
set category 2
set action warning
next
edit 2
set category 7
set action warning
next
edit 3
set category 8
set action warning
next
edit 4
set category 9
set action warning
next
----- cut -----

1 REPLY 1
Anonymous
Not applicable

Hello @Tristan_C 
 
Welcome to Fortinet community and Thank you for your post. Hopefully, you've been keeping safe and doing well!
 
We see you are facing the issue with webfilter profiles. We will have this looked and will reach you back as soon as possible.
 
You should receive an update from one of the team member soon. Thanks for your patience on this.
 
Regards
Labels
Top Kudoed Authors