The configuration can contain these tags and attributes. Some of them are mandatory, others optional.
The mandatory ipset start and end tag defines the ipset. This tag can only be used once in a ipset configuration file. There is one mandatory and also optional attributes for ipsets:
The mandatory type of the ipset. To get the list of supported types, use
firewall-cmd --get-ipset-types. This depends on firewalld, the ipset and also kernel version.
To give the ipset a version.
Is an optional start and end tag and is used to give an ipset a more readable name.
Is an optional start and end tag to have a description for an ipset.
Is an optional empty-element tag and can be used several times to have more than one option. Mostly all attributes of an option entry are mandatory:
The mandatory option name string.
The optional value of the option.
The supported options are:
maxelem: integer. For more information on these options, please have a look at the ipset documentation.
Is an optional start and end tag and can be used several times to have more than one entry entry. An entry entry does not have attributes.