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 -----
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Created on 02-04-2022 12:21 PM
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 |
---|---|
1557 | |
1033 | |
749 | |
443 | |
210 |
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.