Troubleshooting Tip: Unable to select address object in policy
Description
This article provides a solution for cases where the user is not able to select the address object in the policy.

Scope
FortiGate.
Solution
From the GUI:
Go to Policy & Objects ->Addresses and navigate to the corresponding object.
Verify if there is interface reference.
Ensure the selected interface is the same as the destination interface, or 'any', as per policy requirements.

Change it to port2 or 'any' as required.


end
It will then be possible to use it in a policy with any interfaces.
It may be more convenient to create an address object with the interface set to 'any', which will allow it to be used in a policy with any interfaces.
For example:
To create an address object in the FortiGate GUI:

To add the address object to the policy GUI:

To create an address object in the FortiGate CLI:
config firewall address
edit "8.8.8.8"
set subnet 8.8.8.8 255.255.255.255
next
end
To add the address object to the policy CLI:
config firewall policy
edit 2
set dstaddr "8.8.8.8"
next
end