Technical Tip: Configuring firewall policy and firewall proxy policies source and/or destination address with firewall address wildcard FQDN type objects
Description
This article provides complementary information on firewall address wildcard FQDN type objects that have been introduced starting with FortiOS v6.2.2.
Scope
FortiGate.
Solution
Alike it was previously the case with FQDN objects, it is now possible, starting with FortiOS v6.2.2, to use pre-defined or user-defined wildcard FQDN objects for configuring the source address and/or destination address of a Firewall Policy or a firewall proxy policy.
For wildcard FQDN addresses to work, the DNS resolution from the PC to the DNS Server should pass through FortiGate.
Creating a Firewall Address of type FQDN from the GUI.

…
edit "wildcard.dropbox.com" <----- Pre-defined wildcard FQDN type object.
set uuid 4c296cd0-0254-51eb-165d-464362d57a2e
set type fqdn <-----
set fqdn "*.dropbox.com"
next
…
edit "cie-1-address" <<< user-defined wildcard FQDN type object
set uuid 1da49eb2-0a37-51eb-9c6c-529c7483a5b3
set type fqdn <-----
set color 7
set fqdn "*.cie.com"
next
end
Once defined, a wildcard FQDN type firewall address object can then be used as a source and/or destination address of a firewall policy or firewall proxy policy.

…
edit "microsoft" <----- Pre-defined wildcard FQDN.
set uuid 4c549702-0254-51eb-b42a-a4e5e533c197
set wildcard-fqdn "*.microsoft.com"
next
…
edit "cie-1-wild-fqdn" <----- User-defined wildcard FQDN.
set uuid ba862812-0a38-51eb-0be5-7917d66e2c53
set wildcard-fqdn "*.cie.com"
set color 8
next
end


edit "cie-1-address" <----- user-defined wildcard FQDN type object.
set uuid 1da49eb2-0a37-51eb-9c6c-529c7483a5b3
set type fqdn <-----
set color 7
set fqdn "*.cie.com"
set cache-ttl <----- A value in the range 0-86400.
next
end
FQDN to IP address mapping can be displayed using the 'diagnose firewall fqdn list' CLI command.
list-ip List IP FQDN.
list-mac List MAC FQDN.
list-all List FQDN.
getinfo-ip Get info of IP FQDN address
getinfo-mac Get info of MAC FQDN address
get-ip Get and display one IP FQDN address.
get-mac Get and display one MAC FQDN address.
