Caution: Before proceeding with the configuration, refer the Additional Requirements on Chassis for Content Filtering section of the Content Filtering Support Overview chapter for the minimum system requirements. If the system has fewer than two processing cards, Content Filtering service cannot be activated on the system.
Step 1
•
•
Step 3
Step 1
Step 2
Step 3
Step 4 Create the service within the newly created context by applying the example configuration in the Service Configuration chapter of the System Administration Guide.card <slot_number>card <slot_number>interface <local_ctx_iface_name>ip route <ip_addr> <ip_mask> <next_hop_addr> <local_ctx_iface_name>port ethernet <slot#/port#>bind interface <local_ctx_iface_name> localcontext <vpn_context_name> -noconfirminterface <vpn_interface_name>
Step 1
Step 2
Step 3
Step 4
Step 5 url-blacklisting database directory path <directory_path>url-blacklisting database max-versions <max_versions>url-blacklisting database override file <file.extension>active-charging service <service_name> [ -noconfirm ]active-charging service <service_name>rulebase <rulebase_name> [ -noconfirm ]url-blacklisting action { discard | redirect-url <url> | terminate-flow | www-reply-code-and-terminate-flow <reply_code> }The URL Blacklisting functionality can be tested by appending test URLs/URIs to the blacklist file. The test URLs/URIs must be added to the testurldb.pub file in the <WEM_Install_Dir>/flash/blacklist/testurldb directory.The testurldb.pub file must have one URL per line without space. If space is included in the URL entries, the WEM ignores the URLs with space.
Step 1
Step 2 Configure the global parameters like database path and version for Content Filtering service by applying the example configuration in the Configuring Content Rating Rule Database Parameters section. This is an optional step. In case this configuration is not performed, the default values will be used.
Step 3
Step 4
Step 5 Optional. Create billing and charging actions by applying the example configuration in the Configuring Enhanced Charging Services chapter of the Enhanced Charging Services Administration Guide.
Step 6 Optional. Define rule definitions by applying the example configuration in the Configuring Enhanced Charging Services chapter of the Enhanced Charging Services Administration Guide.
Step 7 Create and configure the rulebases by applying the example configuration in the Configuring Rulebase for Content Filtering section. For more information on rulebase configuration, refer to the ECS Configuration chapter in the Enhanced Charging Services Administration Guide.
Step 8
Step 9 content-filtering category database directory path <directory_path>content-filtering category database max-versions <max_versions>content-filtering category database override file <file.extension>active-charging service <service_name> [ -noconfirm ]active-charging service <service_name>content-filtering category policy-id <cf_policy_id>analyze priority <priority> { all | category <category> | x-category <x-category> } action { allow | content-insert <content_string> | discard | redirect-url <url> | terminate-flow | www-reply-code-and-terminate-flow <reply_code> } [ edr <edr_format> ]failure-action { allow | content-insert <content_string> | discard | redirect-url <url> | terminate-flow | www-reply-code-and-terminate-flow <reply_code> } [ edr <edr_format> ]analyze priority <priority> x-category <x-category> action { allow | content-insert <content_string> | discard | redirect-url <url> | terminate-flow | www-reply-code-and-terminate-flow<reply_code> } [ edr <edr_format> ]analyze priority <priority> all action { allow | content-insert <content_string> | discard | redirect-url <url> | terminate-flow | www-reply-code-and-terminate-flow <reply_code> } [ edr <edr_format> ]active-charging service <service_name>rulebase <rulebase_name>route priority <route_priority> ruledef <ruledef_name> analyzer <analyzer_name> [ description <description> ]action priority <priority> { [ dynamic-only | static-and-dynamic ] { group-of-ruledefs <group_name> | ruledef <ruledef_name> } charging-action <charging_action_name> [ description <description> ] }flow end-condition content-filtering edr <edr_format_name>billing-records { egcdr | radius | udr udr-format <format_name> }+content-filtering category policy-id <cf_policy_id>context <context_name>apn <apn_name>content-filtering category policy-id <cf_policy_id>context <context_name>subscriber name <user_name>content-filtering category policy-id <cf_policy_id>Important: Category Policy ID applied to APN or subscriber in this mode overrides the Category Policy ID configured using the “content-filtering category policy-id cf_policy_id” command in the Configuring Rulebase for Content Filtering section.
Step 1
Step 2
Step 3 Optional. Enable charging record retrieval by applying the example configuration in the Charging Record Retrieval section of Enhanced Charging Services Administration Guide.context <context_name>file [ edr-format-name ] [ name <file_name> ]+
• For more information on keywords/options available with the file command, refer to the EDR Module Configuration Mode Commands chapter in the Command Line Interface Reference.active-charging service <service_name>edr-format <edr_format_name>
• For more information on options available with attribute and rule-variable commands, refer to the EDR Format Configuration Mode Commands chapter of the Command Line Interface Reference.To save the changes made to the system configuration for Content Filtering service, refer to the Verifying and Saving Your Configuration chapter.This section describes how to review the configurations after saving them in a .cfg file as described in the Verifying and Saving Your Configuration chapter, and to retrieve errors and warnings within an active configuration for a service.context <context_name>context <context_name>
• Warning: When “require active-charging content-filtering category” CLI command is not activated and any Content Filtering configurations are done.
•
show active-charging url-blacklisting statistics [ rulebase { all | name <rulebase_name> } ] [ verbose ] [ | { grep <grep_options> | more } ] show url-blacklisting database [ all | url <url> | facility acsmgr { all | instance <instance> } ] [ | { grep <grep_options> | more } ] show active-charging subsystem { all | facility acsmgr [ all | instance <instance> ] | full } | [ rulebase name <rulebase_name> ] | [ | { grep <grep_options> | more } ] show active-charging rulebase { all [ service name <svc_name> ] | name <rulebase_name> [ service name <svc_name> ] | statistics [ name <rulebase_name> ] } | [ | { grep <grep_options> | more } ]Important: For more information on Content Filtering statistics collection, refer to the Exec Mode Commands chapter of the Command Line Interface Reference.
show content-filtering category database [ active | all | facility srdbmgr { all | instance <instance> } | url <url_string> ] [ verbose ] [ | { grep <grep_options> | more } ] show content-filtering category statistics [ facility srdbmgr { all | instance <instance> } ] [ | { grep <grep_options> | more } ] show content-filtering category url <url_string> [ policy-id <cf_policy_id> | rulebase <rulebase_name> ] [ verbose ] [ | { grep <grep_options> | more } ] show content-filtering server-group [ statistics ] [ name <cfsg_name> ] [ | { grep <grep_options> | more } ] show active-charging content-filtering category policy-id { all | id <policy_id> } [ | { grep <grep_options> | more } ] show active-charging content-filtering category statistics [ rulebase { name <rulebase_name> | all } ] [ verbose ] [ | { grep <grep_options> | more } ] show active-charging content-filtering server-group [ statistics [ verbose ] ] [ name <cfsg_name> ] [ | { grep <grep_options> | more } ] show active-charging rulebase { all [ service name <svc_name> ] | name <rulebase_name> [ service name <svc_name> ] | statistics [ name <rulebase_name> ] } | [ | { grep <grep_options> | more } ] For information on bulk statistics configuration and collection, and the list of bulk statistics for the Content Filtering service, refer to the Bulk Statistics Configuration Mode Commands chapter of the Command Line Interface Reference.For information on the SNMP traps and thresholds for the Content Filtering service, see the Content Filtering Application MIB chapter of the SNMP MIB Reference.
![]() |
Cisco Systems Inc. |
Tel: 408-526-4000 |
Fax: 408-527-0883 |