20-7
Cisco Security Appliance Command Line Configuration Guide
OL-12172-03
Chapter 20 Applying Filtering Services
Filtering URLs and FTP Requests with an External Server
Use the
src_dst
keyword to cache entries based on both the source address initiating the URL request
as well as the URL destination address. Select this mode if users do not share the same URL filtering
policy on the Websense server.
Filtering HTTP URLs
This section describes how to configure HTTP filtering with an external filtering server. This section
includes the following topics:
•
Configuring HTTP Filtering, page 20-7
•
Enabling Filtering of Long HTTP URLs, page 20-7
•
Truncating Long HTTP URLs, page 20-7
•
Exempting Traffic from Filtering, page 20-8
Configuring HTTP Filtering
You must identify and enable the URL filtering server before enabling HTTP filtering.
When the filtering server approves an HTTP connection request, the security appliance allows the reply
from the web server to reach the originating client. If the filtering server denies the request, the security
appliance redirects the user to a block page, indicating that access was denied.
To enable HTTP filtering, enter the following command:
hostname(config)#
filter url
[
http
|
port
[-
port
]
local_ip
local_mask foreign_ip
foreign_mask
] [
allow
] [
proxy-block
]
Replace
port
with one or more port numbers if a different port than the default port for HTTP (80) is
used. Replace
local_ip
and
local_mask
with the IP address and subnet mask of a user or subnetwork
making requests. Replace
foreign_ip
and
foreign_mask
with the IP address and subnet mask of a server
or subnetwork responding to requests.
The
allow
option causes the security appliance to forward HTTP traffic without filtering when the
primary filtering server is unavailable. Use the
proxy-block
command to drop all requests to proxy
servers.
Enabling Filtering of Long HTTP URLs
By default, the security appliance considers an HTTP URL to be a long URL if it is greater than 1159
characters. You can increase the maximum length allowed.
Configure the maximum size of a single URL with the following command:
hostname(config)#
url-block url-size
long-url-size
Replace long-url-size with the maximum size in KB for each long URL being buffered. For Websense,
this is a value from 2 to 4 for a maximum URL size of 2 KB to 4 KB; for Secure Computing, this is a
value between 2 to 3 for a maximum URL size of 2 KB to 3 KB. The default value is 2.
Truncating Long HTTP URLs
By default, if a URL exceeds the maximum permitted size, then it is dropped. To avoid this, you can set
the security appliance to truncate a long URL by entering the following command:
Summary of Contents for 500 Series
Page 38: ...Contents xxxviii Cisco Security Appliance Command Line Configuration Guide OL 12172 03 ...
Page 45: ...P A R T 1 Getting Started and General Information ...
Page 46: ......
Page 277: ...P A R T 2 Configuring the Firewall ...
Page 278: ......
Page 561: ...P A R T 3 Configuring VPN ...
Page 562: ......
Page 891: ...P A R T 4 System Administration ...
Page 892: ......
Page 975: ...P A R T 5 Reference ...
Page 976: ......