Traffic Selectors
Reusable collections of session field values referenced by rule conditions.
Traffic Selector Objects are reusable collections of session field values, such as IP addresses, FQDNs (Fully Qualified Domain Names), applications, and other session field values. You can reference these objects in rule conditions.
Repeated items are not allowed within a single object. Repeated items are detected by exact text match. For example, 192.168.1.0/24 and 192.168.1.0-192.168.1.255 are not treated as repeated items, even though they represent the same IP range.
During rule evaluation, items within an object are compared using logical OR. A condition is satisfied when the session field matches any item in the object.
Import and Export
Value-list objects such as IP addresses, FQDNs, keywords, ports, NAT pools, and intervals support text import/export with one item per line. Application transfer uses an application ZIP bundle; not every object type is a plain-text list. Use the import/export actions offered by the selected object type. Review skipped invalid or duplicate items before committing imported data.
You can add a comment at the end of an item by starting the comment with #.
MAC Addresses
Under Objects > Traffic Selectors > MAC Addresses, create an object for a directly connected device. Select it as the source MAC condition in a security rule. Across a routed hop, the observed source MAC belongs to the adjacent device.
IP Addresses
An IP address object accepts the following formats:
- IPv4 address:
x.x.x.x, for example,192.168.1.1. - IPv4 CIDR:
x.x.x.x/n, for example,192.168.1.0/24. - IPv4 range:
x.x.x.x-y.y.y.y, for example,192.168.1.1-192.168.1.255. - IPv6 address:
x:x:x::x, for example,2001:db8::97ff:5678:9abc:def0. - IPv6 CIDR:
x:x:x::x/n, for example,2001:db8::97ff:5678:9abc:def0/64.
IP Address Groups
An IP address object group can include and exclude IP address objects.
For example, consider an object group with two child objects:
- Included child object:
192.168.1.0/24. - Excluded child object:
192.168.1.100/32.
If the parent object is used directly in a source IP address condition, the rule matches sessions with source IP addresses in 192.168.1.0-192.168.1.99 and 192.168.1.101-192.168.1.255.
When defining object groups, the following precedence rules apply:
- Exclusion takes precedence over inclusion within the same object.
- Peer objects, which are different child objects of the same parent object, do not affect each other.
The following restrictions apply:
- An IP Address Group can include or exclude IP Address objects and other IP Address Groups. External feeds are not group members.
- An object must include at least one child object. Exclusion-only object groups are not allowed.
- An object group can include up to 128 objects.
- An object group can exclude up to 128 objects.
For example, consider an object group with the following structure:
- Includes Object 1:
- Includes Object 2:
192.168.0.1/24. - Excludes Object 3:
192.168.0.1-192.168.0.8.
- Includes Object 2:
- Includes Object 4:
192.168.0.4-192.168.0.6. - Excludes Object 5:
192.168.0.5.
192.168.0.4 belongs to the object group; 192.168.0.7 does not belong to the object group.
Ports
A port object accepts the following formats:
- Single port:
a, for example,80. - Port range:
a-b, for example,8000-8080.
FQDNs
An FQDN object accepts the following formats. A plain domain name matches the domain and all of its subdomains, so a domain list from a blocklist or threat feed can be imported as-is.
| Format | Example | Matches |
|---|---|---|
| Domain | example.com | example.com, www.example.com, a.b.example.com |
| Subdomains only | *.example.com | www.example.com, a.b.example.com, but not example.com |
| Exact match | ^www.example.com$ | only www.example.com |
| Prefix | ^www.example | www.example.com, www.example.website.net |
| Contains | *example* | www.example.com, static.example.net, myexample.org |
.example.com and example.com$ are accepted as alternative spellings of the domain format.
Domain, subdomain, and exact matches compare whole labels (the parts between dots), so example.com never matches myexample.com. Prefix and contains matches compare raw text, so ^www.example also matches www.examples.org. Use the domain or exact format in rules that allow traffic.
Wildcards
Domain and exact patterns can contain wildcards inside a label:
?matches exactly one character.*matches any number of characters within one label. It never matches a..- A label that is only
*matches exactly one label.
The last label (such as com or org) cannot contain wildcards.
^abc???.org$matchesabcxyz.org, but notabcxy.org.^api-*.example.com$matchesapi-eu.example.comandapi-us-west.example.com.^*.example.com$matchesa.example.com, but nota.b.example.com.cdn?.example.commatchescdn1.example.comandimg.cdn1.example.com.
A wildcard pattern is checked against every name that ends in its literal part, so keep that part as long as possible: ^*.internal.example.com$ is cheap, while ^????.com$ is checked against nearly every .com name.
Matching rules
- Matching is case-insensitive for ASCII letters.
- Trailing dots are ignored:
www.example.com.(the fully qualified form) matches the same patterns aswww.example.com. A pattern may end with one dot, for exampleexample.com.. - A pattern that starts with
^cannot be followed by., because domain names never start with a dot.
Keywords
A keyword item is one line of text: a single pattern, or up to 8 patterns joined with &. The item matches only when every pattern holds. A pattern starting with ! holds when the content does not match it (see Excluding content). Because an item is one line, a keyword list can be imported from a text file with one item per line.
Anchors
^ and $ work as they do in FQDN patterns:
| Pattern | Matches content that |
|---|---|
abc | contains abc anywhere |
^abc | starts with abc |
abc$ | ends with abc |
^abc$ | is exactly abc |
^ is an anchor only at the start of a pattern and $ only at the end. Anywhere else they must be escaped. Unlike FQDN patterns, keywords match raw bytes: example.com$ matches myexample.com.
Excluding content
Start a pattern with ! to require that the content does not match it. login&!guest matches content that contains login but not guest.
!comes first, before any modifiers:!(nocase=off)Admin,!^GET.- Every item needs at least one pattern without
!. An item made only of!patterns, such as!guest, is rejected. !later in a pattern is an ordinary character:a!bcontains the texta!b. To start a pattern with a literal!, escape it as\!.- On content that arrives in several pieces, such as a stream, absence can only be known once all of it has been seen, so an item with a
!pattern matches at the end. - If a single scan matches more than 1024 different patterns, absence cannot be proven, and items with a
!pattern do not match.
Text, hex bytes, and escapes
A pattern is UTF-8 text, optionally mixed with hex bytes between | characters, for example |0d0a| or |0d 0a|. An empty hex block (||) is not allowed.
Escape special characters with \:
^ -> \^
$ -> \$
& -> \&
! -> \! (needed only at the start of a pattern)
| -> \|
( -> \(
) -> \)
\ -> \\
carriage return -> \r
line feed -> \n
tab -> \tNo other escapes are allowed, and an item cannot contain raw control characters such as a tab or a line break; use \t, \r, \n, or hex bytes instead.
A pattern cannot start or end with a space, because leading and trailing spaces are easy to lose when editing or importing a list. Write a space at either end as |20|, for example ^GET|20|. Spaces inside a pattern are fine: hi jk.
Modifiers
A pattern can start with modifiers in parentheses, separated by commas. Modifiers apply only to their own pattern: in (nocase=off)abc&def, def is still case-insensitive. Each modifier can appear once.
nocase,nocase=on,nocase=off: matching is case-insensitive for ASCII letters by default.nocase=offmakes the whole pattern, including hex bytes, case-sensitive.offset=Nanddepth=Nwork as in Snort. The match must start at or after byteoffset(counting from 0; the default is 0) and fit within thedepthbytes that follow. For example,(offset=5, depth=3)abcmatches onlyabcat bytes 5 to 7. You can use either one alone.depthmust be at least as long as the pattern.
You cannot use offset or depth together with ^ or $. Modifiers must come before ^: write (nocase=off)^abc, not ^(nocase=off)abc. A negating ! comes before the modifiers: !(nocase=off)abc.
Example
^abc&efg$&(nocase=off, offset=13, depth=12)hi jk|3344|This item matches content that starts with abc, ends with efg, and contains hi jk3D (|3344| is 3D) with exactly that case somewhere in bytes 13 to 24.
/admin&!/admin/publicThis item matches content that contains /admin but not /admin/public.
Use the keyword syntax accepted by the editor. The current object model does not expose a separate regex-object type.
Applications
Open Objects > Traffic Selectors > Applications to see the applications a rule condition can select. The list shows each application’s attributes, such as its relative security risk (1 to 5).
The list contains two kinds of applications:
- Built-in applications come from the installed application database (App DB) and are updated when a new App DB release is installed. You cannot create, delete, or rename them. You can change only whether the application is enabled, its TCP and UDP timeouts, and its action parameters. Each change is a configuration change that you commit, App DB updates keep it, and deleting it restores the App DB value.
- Custom applications are created by you and identified by application signature rules. A custom application's name must be unique among custom applications, but it may match a built-in application's name.
Disabling a built-in application stops the firewall from identifying it, by App DB signatures and native detection. If it is a child application, rules that select its parent still match its traffic. Otherwise its traffic is identified by whatever else matches, such as the transport protocol. Disabling a parent does not disable its children.
Rules that reference a disabled application are still accepted, but their conditions never match that application while it is disabled. The device reports each such rule as a warning.
Intervals
An interval object contains non-negative integers or inclusive ranges such as 100 or 1000-2000.
The range start must not exceed its end. Units come from the session field being matched, not from
the object: first-payload-length fields, for example, use bytes. An interval is not inherently a
millisecond time range.
Built-in and generated selections
IP Protocol objects provide protocol-number selections for conditions. Boolean and installed Country/ASN selections are supplied by the device; use the available field picker rather than creating an unsupported object type. Cell Global Identity and regex objects are not exposed by the current object model or WebUI.
Use Schedules for time-based rule activation, External feeds for downloaded lists, and NAT rules for IPv4-only NAT Pool constraints.
In Manual mode, saved object edits appear in Pending Changes. Review references and publish before testing traffic. A referenced object cannot be deleted until its references are removed or changed.