Example: Configuring Express Antivirus Custom Objects (CLI)
To configure antivirus protection using the CLI, you must first create your custom objects.
- Create MIME lists. The following example creates
the avmime2 and ex-avmime2 lists: user@host# set security utm custom-objects mime-pattern avmime2user@host# set security utm custom-objects mime-pattern ex-avmime2
- Add MIME patterns to the lists. The following
example adds patterns to the avmime2 and ex-avmime2 lists: user@host# set security utm custom-objects mime-pattern avmime2 value [video/quicktime image/x-portable-anymap x-world/x-vrml] user@host# set security utm custom-objects mime-pattern ex-avmime2 value [video/quicktime-inappropriate]

Note: Because you use URL pattern lists to create custom URL category lists, you must configure URL pattern list custom objects before you configure custom URL category lists.
- Configure a URL pattern list custom object by creating
the list name and adding values to it. The following example creates
the urllist2 custom object: user@host# set security utm custom-objects url-pattern urllist2 value [https://www.juniper.net 1.2.3.4]
When entering the URL pattern, note the following wildcard character support:
- The \*\.[]\?* wildcard characters are supported.
- You must precede all wildcard URLs with http://.
- You can only use the asterisk * wildcard character if it is at the beginning of the URL and is followed by a period.
- You can only use the question mark ? wildcard character at the end of the URL.
- The following wildcard syntax IS supported: http://*.juniper.net, http://www.juniper.ne?, http://www.juniper.n??.
- The following wildcard syntax is NOT supported: *.juniper.net , www.juniper.ne?, http://*juniper.net, http://*.
- Configure a custom URL category list custom
object using the URL pattern list you created. The following example
adds the urllist2 list to the custurl2 custom object: user@host# set security utm custom-objects custom-url-category custurl2 value urllist2
Related Topics
Junos OS Feature Support Reference for SRX Series and J Series Devices
Hide Navigation Pane
Show Navigation Pane
Download
SHA1