Skip to main content
seshuganesh
Staff
Staff
May 27, 2022

Technical Tip: Modify default firewall policy columns

  • May 27, 2022
  • 0 replies
  • 3104 views
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:

 

seshuganesh_0-1653631241183.png

 

To modify, see screenshot below.

 

seshuganesh_1-1653631401477.png

 

Result:

 

seshuganesh_2-1653631459344.png

 

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