This article provides examples for configuring, verifying, and troubleshooting integrated Web filtering. For information about redirect Web filtering, see KB16444 - SRX Getting Started - Redirect Web Filtering [juniper.net] . For other topics, go to the SRX Getting Started main page.
Configure integrated Web filtering using pre-defined web-filtering profile from a category server (SurfControl Content Portal Authority provided by Websense).
This section contains the following:
Configuring integrated Web filtering consists of the following tasks:
For more information and examples, see the Configuring Web Filtering on Branch SRX Series Services Gateways and J Series Services Routers application note and the Technical Documentation section.
Before you configure integrated Web filtering, confirm that the Web filtering license is installed. J-Web To verify license installation using J-Web:
CLI To verify license installation using the CLI:
wf_key_surfcontrol_cpa
user@host> show system license License usage: Licenses Licenses Licenses Expiry Feature name used installed needed av_key_kaspersky_engine 1 1 0 2010-12-30 16:00:00 PST wf_key_surfcontrol_cpa 1 1 0 2010-12-30 16:00:00 PST
user@host> show system license
License usage: Licenses Licenses Licenses Expiry Feature name used installed needed av_key_kaspersky_engine 1 1 0 2010-12-30 16:00:00 PST wf_key_surfcontrol_cpa 1 1 0 2010-12-30 16:00:00 PST
user@host> request system license add terminal
To configure the redirect Web filtering feature profile:
To configure a UTM policy for Web filtering:
To attach the UTM policy to a security policy:
Make sure that your policy is activated. By default, in JUNOS Release 9.6 and earlier, after you create a policy, it is activated. In JUNOS Release 10.0 and higher, your changes do not take effect until you click the Commit button (under the tabs).
Set the type of Web filtering feature parameters.
user@host#
set security utm feature-profile web-filtering type surf-control-integrated
user@host# set security utm feature-profile web-filtering surf-control-integrated cache timeout 1800 user@host# set security utm feature-profile web-filtering surf-control-integrated cache size 500
Define the UTM policy for the protocol and attach this policy to a profile. Then apply the UTM policy to a firewall security policy as an application service.
set security utm utm-policy web-filter web-filtering http-profile junos-wf-cpa-default.
user@host# set security policies from-zone trust to-zone untrust policy web-filter match source-address any user@host# set security policies from-zone trust to-zone untrust policy web-filter match destination-address any user@host# set security policies from-zone trust to-zone untrust policy web-filter match application junos-http user@host#
set security policies from-zone trust to-zone untrust policy web-filter then permit application-services utm-policy
web-filter
Use the show security utm web-filtering status command to check the status of the SurfControl server.
show security utm web-filtering status
user@host> show security utm web-filtering status UTM web-filtering status: Server status: SC-CPA server up
user@host>
UTM web-filtering status: Server status: SC-CPA server up
Use the show security utm web-filtering statistics command to review statistical information about integrated Web filtering.
show security utm web-filtering statistics
user@host> show security utm web-filtering statistics UTM web-filtering statistics: Total requests: 0 white list hit: 0 Black list hit: 0 Queries to server: 0 Server reply permit: 0 Server reply block: 0 Custom category permit: 0 Custom category block: 0 Cache hit permit: 0 Cache hit block: 0 Web-filtering sessions in total: 4000 Web-filtering sessions in use: 0 Fall back: log-and-permit block Default 0 0 Timeout 0 0 Connectivity 0 0 Too-many-requests 0 0
Refer to a checklist of common errors here: KB25680 - UTM (Unified Threat Management) Troubleshooting Checklist [juniper.net]
Also, traceoptions are used for advanced troubleshooting:
user@host# set security traceoptions flag all user@host# set security utm traceoptions flag all user@host# set security utm application-proxy traceoptions flag all user@host# set security utm feature-profile web-filter traceoptions flag all
user@host# set security traceoptions flag all user@host# set security utm traceoptions flag all user@host# set security utm application-proxy traceoptions flag all user@host#
set security utm feature-profile web-filter traceoptions flag all
Traceoptions can be found in the following logs:
user@host# show log utmd-wf