Technical Tip: Modify default firewall policy columns
| Description | This article describes how to modify default firewall policy columns in FortiGate firewall. |
| Scope | All FortiOS. |
| Solution | Use this option to change the default firewall policy column settings and select which columns are displayed.
Note: from 7.0 there is a change of naming:
Previous versions: 'srcaddr', 'dstaddr', 'source', 'destination', 'poolname'. Current verion: 'consolidated-srcaddr', 'consolidated-dstaddr', 'consolidated-source', 'consolidated-destination', 'consolidated-poolname'.
CLI:
config system settings set gui-default-policy-columns "av-profile" "name" "ips-sensor" end
Example:
Current config:
To modify, see screenshot below.
Result:
In certain situations, the options may not update correctly when modifying an existing configuration. In such cases, consider using the 'unset' command before applying the new options with the 'set' command.
For example, current config:
config system settings set gui-default-policy-columns "policyid" "name" "consolidated-srcaddr" "profile" "service" "action" "consolidated-poolname" "bytes" end
To modify:
Step 1: unset.
config system settings unset gui-default-policy-columns end
Step 2: set.
config system settings set gui-default-policy-columns "policyid" "service" "action" "profile" "bytes" "name" "consolidated-poolname" "consolidated-srcaddr" "consolidated-dstaddr" end |


