Example: Configuring Local Web Filtering Custom Objects (CLI)
To create your custom objects:
- Configure a URL pattern list custom object
by creating the list name and adding values to it. The following examples
create the urllist3 list and the urllist4 list: user@host# set security utm custom-objects url-pattern urllist3 value [https://www.juniper.net 1.2.3.4]user@host# set security utm custom-objects url-pattern urllist4 value [http://www.acmegizmo.com 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://*.
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. The URL and IP address is added in this example.
- Configure a custom URL category list custom object
by using the URL pattern list you created. The following examples
add the custurl3 and custurl4 category lists to the urllist3 and urllist4
URL pattern lists, respectively: user@host# set security utm custom-objects custom-url-category custurl3 value urllist3user@host# set security utm custom-objects custom-url-category custurl4 value urllist4
Related Topics
JUNOS Software Feature Support Reference for SRX Series and J Series Devices