Example: Configuring Content Filtering Custom Objects
This example shows how to configure content filtering custom objects.
Requirements
Before you begin:
- Decide on the type of content filter you require. See Content Filtering Overview.
- Understand the order in which content filtering parameters are configured. See Content Filtering Configuration Overview.
Overview
In this example, you define custom objects that are used to create content filtering profiles. You perform the following tasks to define custom objects:
- Create two protocol command lists called ftpprotocom1 and ftpprotocom2, and add user, pass, port, and type commands to it.
- Create a filename extension list called extlist2, and add the .zip, .js, and .vbs extensions to it.
- Define block-mime list call cfmime1 and add patterns to the list.
Configuration
CLI Quick Configuration
To quickly configure content filtering custom objects, copy the following commands and paste them into the CLI.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode.
To configure content filtering custom objects:
- Create two protocol command lists.[edit security utm]user@host# set custom-objects protocol-command ftpprotocom1[edit security utm]user@host# set custom-objects protocol-command ftpprotocom2
- Add protocol commands to the list.[edit security utm]user@host# set custom-objects protocol-command ftpprotocom1 value [user pass port type][edit security utm]user@host# set custom-objects protocol-command ftpprotocom2 value [user pass port type]
- Create a filename extension list.[edit security utm]user@host# set custom-objects filename-extension extlist2
- Add extensions to the list.[edit security utm]user@host# set custom-objects filename-extension extlist2 value [zip js vbs]
- Create antivirus scanning lists.[edit security utm]user@host# set custom-objects mime-pattern cfmime1user@host# set custom-objects mime-pattern ex-cfmime1
- Add patterns to the lists. [edit security utm]user@host# set custom-objects mime-pattern cfmime1 value [video/quicktime image/x-portable-anymap x-world/x-vrml]user@host# set custom-objects mime-pattern ex-cfmime1 value [video/quicktime-inappropriate]
Results
From configuration mode, confirm your configuration by entering the show security utm command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.
If you are done configuring the device, enter commit from configuration mode.
Verification
To confirm that the configuration is working properly, perform this task:
Verifying Content Filtering Custom Objects
Purpose
Verify the content filtering custom objects.
Action
From operational mode, enter the show configuration security utm command.
Related Topics
Junos OS Feature Support Reference for SRX Series and J Series Devices
Hide Navigation Pane
Show Navigation Pane
Download
SHA1