Example: Configuring Content Filtering Custom Objects (CLI)
To configure content filtering using the CLI, you must first create your custom objects.
- Create the protocol command list custom object.
The following example creates the ftpprotocom1 protocol command list: user@host# set security utm custom-objects protocol-command ftpprotocom1
- Add commands to the protocol command
list. The following example adds the user, pass, port, and type commands
to the list: user@host# set security utm custom-objects custom-objects protocol-command ftpprotocom1 value [user pass port type]
- Create the filename-extension custom
object. The following example creates the extlist2 filename-extension
list: user@host# set security utm custom-objects filename-extension extlist2
- Add extensions to the filename-extension
list. The following example adds the zip, js, and vbs extensions to
the list: user@host# set security utm custom-objects filename-extension extlist2 value [zip js vbs]
- Create MIME pattern lists for the main
MIME list and a MIME exception list for antivirus scanning. The following
examples create the cfmime1 and ex-cfmime1 lists: user@host# set security utm custom-objects mime-pattern cfmime1user@host# set security utm custom-objects mime-pattern ex-cfmime1
- Add MIME patterns to the MIME pattern
lists. The following examples add patterns to the cfmime1 and ex-cfmime1
lists: user@host# set security utm custom-objects mime-pattern cfmime1 value [video/quicktime image/x-portable-anymap x-world/x-vrml]user@host# set security utm custom-objects mime-pattern ex-cfmime1 value [video/quicktime-inappropriate]
Related Topics
JUNOS Software Feature Support Reference for SRX Series and J Series Devices