object – a family of commands for configuring network objects

object <name>

Go to the configuration submenu of network object with name <name>.

ngfw> object=['name']> description <description>

Set description for network object. Spaces are not allowed.

ngfw> object=['name']> host <ipv4-address>

Add IP address to the list for this network object.

Example: ngfw> object=['name']> host 1.1.1.1

ngfw> object=['name']> range <ip-range>

Add range of IP addresses for this network object. A range is two IP addresses separated by the hyphen - character. In a range, the left address must be less than or equal to the right address.

Пример: ngfw> object=['name']> range 5.5.5.5-5.5.5.10

ngfw> object=['name']> rename <name>

Set new name <name> for this network object.

ngfw> object=['name']> subnet <ipv4-prefix>

Add subnet for this network object.

Пример: ngfw> object=['name']> subnet 202.20.20.0/24

ngfw> object=['name']> geo-location <country-name>

Add country for this network object. If the country name contains spaces, you need to enclose it in quotation marks.

Example:

ngfw> object=['name']> geo-location "Russian Federation"

ngfw> object=['name']> geo-location Austria

ngfw> object=['name']> no (host <ipv4-address>|range <ip-range>|subnet <ipv4-prefix>|geo-location <country-name>)

Remove previously added IP address/range/subnet/country for this network object. The item to be deleted must exist.

ngfw> show object <name>

Show configuration for network object with name <name>. This command outputs data in JSON format.

ngfw> show objects

Show configurations of all network objects. This command outputs data in JSON format.

Example output:

ngfw> show objects
{
  "ngfw-network-objects:objects": {
    "object": [      {
        "id": "1c8471a1-726a-496f-834c-2462185e89c8",
        "name": "test",
        "description": "DescriptionForObject",
        "hosts": [
          "1.1.1.1"        ],
        "subnets": [
          "202.20.20.0/24"        ],
        "ranges": [          {
            "first": "5.5.5.5",
            "last": "5.5.5.10"          }        ]      }    ]  }
}

| Prev | Home | Next |