Fortinet white logo
Fortinet white logo

Administration Guide

7.2.2

Addresses

Addresses

Use address objects to define sources and destinations of network traffic.

The following types of address objects are supported in Container FortiOS:

  • Subnet: ipmask

  • IP range: iprange

  • FQDN: fqdn

Use address groups to collect multiple addresses into a single object.

For more information about addresses and address groups, see Address objects in the FortiOS Administration Guide.

Examples

To create an address in the CLI:
config firewall address
    edit "new-address"
        set type ipmask
        set subnet "192.168.100.100 255.255.255.255"
    next
end
To create an address with the REST API:
curl -H "Content-Type: application/json" -X POST -d '{ "data":{
    "name": "new-address", 
    "type": "ipmask",
    "subnet": "192.168.100.100 255.255.255.255"
}}' http://localhost/api/v2/cmdb/config/firewall/address

Addresses

Addresses

Use address objects to define sources and destinations of network traffic.

The following types of address objects are supported in Container FortiOS:

  • Subnet: ipmask

  • IP range: iprange

  • FQDN: fqdn

Use address groups to collect multiple addresses into a single object.

For more information about addresses and address groups, see Address objects in the FortiOS Administration Guide.

Examples

To create an address in the CLI:
config firewall address
    edit "new-address"
        set type ipmask
        set subnet "192.168.100.100 255.255.255.255"
    next
end
To create an address with the REST API:
curl -H "Content-Type: application/json" -X POST -d '{ "data":{
    "name": "new-address", 
    "type": "ipmask",
    "subnet": "192.168.100.100 255.255.255.255"
}}' http://localhost/api/v2/cmdb/config/firewall/address