Blue Coat Systems Time Clock Proxy SG Uživatelský manuál Strana 1

Procházejte online nebo si stáhněte Uživatelský manuál pro Softwarové příručky Blue Coat Systems Time Clock Proxy SG. Blue Coat Systems Time Clock Proxy SG User's Manual Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 314
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků

Shrnutí obsahu

Strany 1 - Blue Coat Systems

Blue Coat SystemsTMProxySG Content Policy Language Guide Content Policy Language Guide

Strany 2

ProxySG Content Policy Language GuidexSupported BrowsersThe ProxySG Management Console supports Microsoft® Internet Explorer 5 and 6, and Netscape® Co

Strany 3 - THIRD PARTY COPYRIGHT NOTICES

ProxySG Content Policy Language Guide100im.message.type=Tests the message type of an instant messaging transaction.Syntaxim.message.type=text|invite|v

Strany 4

Chapter 3: Condition Reference101im.method=Tests the method associated with the instant messaging transaction. Syntaxim.method=open|create|join|join_u

Strany 5 - Copyrights

ProxySG Content Policy Language Guide102im.user_id=Tests the user_id associated with the instant messaging transaction.Syntaxim.user_id[.case_sensitiv

Strany 6

Chapter 3: Condition Reference103live=Tests if the streaming content is a live stream. Syntaxlive=yes|noLayer and Transaction Notes•Use in <Cache&g

Strany 7

ProxySG Content Policy Language Guide104method=Tests the protocol method name associated with the transaction. Appropriate method names depend on the

Strany 8

Chapter 3: Condition Reference105Examples<proxy>http.method=GET response.header.Pragma=”no-cache" deny; This example is applicable to a bla

Strany 9

ProxySG Content Policy Language Guide106minute=Tests if the minute of the hour is in the specified range or an exact match. By default, the ProxySG ap

Strany 10 - Document Conventions

Chapter 3: Condition Reference107month=Tests if the month is in the specified range or an exact match. By default, the ProxySG appliance’s date and ti

Strany 11 - Contents

ProxySG Content Policy Language Guide108protocol=The protocol= condition has been deprecated in favor of url.scheme=. For more information see "u

Strany 12

Chapter 3: Condition Reference109proxy.address=Tests the destination address of the arriving IP packet. The expression can include an IP address or su

Strany 13

ContentsPreface: Introducing the Content Policy LanguageAbout the Document Organization ...

Strany 14

ProxySG Content Policy Language Guide110proxy.card=Tests the ordinal number of the network interface card (NIC) used by a request. Replaces: proxy_car

Strany 15

Chapter 3: Condition Reference111proxy.port=Tests if the IP port used by a request is within the specified range or an exact match.The numeric pattern

Strany 16

ProxySG Content Policy Language Guide112realm=Tests if the client is authenticated and if the client has logged into the specified realm. If both of t

Strany 17

Chapter 3: Condition Reference113•Properties: authenticate( ), authenticate.force( ), check_authorization( )

Strany 18

ProxySG Content Policy Language Guide114release.id=Tests the release ID of the ProxySG software. The release ID of the ProxySG software currently runn

Strany 19 - Concepts

Chapter 3: Condition Reference115release.version=Tests the release version of the ProxySG software. The release version of the ProxySG software curren

Strany 20 - Policy Model

ProxySG Content Policy Language Guide116request.header.header_name=Tests the specified request header (header_name) against a regular expression. Any

Strany 21 - CPL Language Basics

Chapter 3: Condition Reference117request.header.header_name.address=Tests if the specified request header can be parsed as an IP address; otherwise, f

Strany 22

ProxySG Content Policy Language Guide118request.header.Referer.url=Test if the URL specified by the Referer header matches the specified criteria. The

Strany 23

Chapter 3: Condition Reference119; Relative URLs, such as docs subdirectories and pages, will match.deny request.header.Referer.url=http://www.example

Strany 24 - Sections

ProxySG Content Policy Language Guidexii<Forward> Layers...

Strany 25 - Definitions

ProxySG Content Policy Language Guide120<proxy>request.header.Referer.url.host.regex=mycompany; request.header.Referer.url.path tests; The follo

Strany 26 - Referential Integrity

Chapter 3: Condition Reference121request.x_header.header_name=Tests the specified request header (header_name) against a regular expression. Any HTTP

Strany 27 - Writing Policy Using CPL

ProxySG Content Policy Language Guide122request.x_header.header_name.address=Tests if the specified request header can be parsed as an IP address; oth

Strany 28 - Authentication and Denial

Chapter 3: Condition Reference123response.header.header_name=Tests the specified response header (header_name) against a regular expression. Any recog

Strany 29 - Installing Policy

ProxySG Content Policy Language Guide124response.x_header.header_name=Tests the specified response header (header_name) against a regular expression.

Strany 30 - Upgrade/Downgrade Issues

Chapter 3: Condition Reference125server_url=Tests if a portion of the URL used in server connections matches the specified criteria. The basic server_

Strany 31 - Conditional Compilation

ProxySG Content Policy Language Guide126• Applies to all non-administrator transactions.Examples; Test if the server URL includes this pattern, and bl

Strany 32

Chapter 3: Condition Reference127;request http://1.2.3.4/ ;request http://mycompany.com/ ; If the reverse DNS fails then the first request

Strany 33 - Proxy Transactions

ProxySG Content Policy Language Guide128socks=This condition is true whenever the session for the current transaction involves SOCKS to the client. Th

Strany 34

Chapter 3: Condition Reference129socks.accelerated= Tests whether the SOCKS proxy will hand off this transaction to other protocol agents for accelera

Strany 35 - Cache Transactions

Contentsxiiihttp.method= ...

Strany 36 - Forwarding Transactions

ProxySG Content Policy Language Guide130socks.method=Tests the SOCKS protocol method name associated with the transaction. Syntaxsocks.method=CONNECT|

Strany 37 - Understanding Layers

Chapter 3: Condition Reference131socks.version=Tests whether the version of the SOCKS protocol used to communicate to the client is SOCKS 4/4a or SOCK

Strany 38 - <Cache> Layers

ProxySG Content Policy Language Guide132streaming.client=Tests the client agent associated with the current transaction.Syntaxstreaming.client=yes|no|

Strany 39 - <Forward> Layers

Chapter 3: Condition Reference133streaming.content=Tests the content of the current transaction to determine whether or not it is streaming media, and

Strany 40 - Layer Guards

ProxySG Content Policy Language Guide134time=Tests if the time of day is in the specified range or an exact match. The current time is determined by t

Strany 41 - Understanding Sections

Chapter 3: Condition Reference135; This example restricts the times during which certain; stations can log in with administrative privileges.define su

Strany 42

ProxySG Content Policy Language Guide136tunneled=Tests if the current transaction represents a tunneled request. A tunneled request is one of:• TCP tu

Strany 43 - [server_url.domain]

Chapter 3: Condition Reference137url=Tests if a portion of the requested URL matches the specified criteria. The basic url= test attempts to match the

Strany 44 - Defining Policies

ProxySG Content Policy Language Guide138//host:port//host:port/path_query//host/path_queryhosthost:porthost:port/path_queryhost/path_query/path_query•

Strany 45 - Blacklists and Whitelists

Chapter 3: Condition Reference139include a filename extension, such as http://example.com/ and http://example.com/test. To test multiple extensions, u

Strany 46

ProxySG Content Policy Language Guidexivserver_url= ...

Strany 47 - Making Policy Definitive

ProxySG Content Policy Language Guide140• .suffix—Test if the string pattern is a suffix of the URL or component. The suffix need not match on a bound

Strany 48 - Best Practices

Chapter 3: Condition Reference141slash is always present in the request URL being tested, because the URL is normalized before any comparison is perfo

Strany 49 - Condition Reference

ProxySG Content Policy Language Guide142If you are testing a large number of URLs using the url.domain= condition, consider the performance benefits o

Strany 50 - Pattern Types

Chapter 3: Condition Reference143; http://www.example.com<proxy>url.host.is_numeric=yes;; In the example below we assume that 1.2.3.4 is the IP

Strany 51 - Unavailable Triggers

ProxySG Content Policy Language Guide144user=Tests the authenticated username associated with the transaction. This trigger is only available if the t

Strany 52

Chapter 3: Condition Reference145See Also• Conditions: attribute.name=, authenticated=, group=, has_attribute.name=, http.transparent_authentication=,

Strany 53

ProxySG Content Policy Language Guide146user.domain=Tests if the client is authenticated, the logged-into realm is an NTLM realm, and the domain compo

Strany 54

Chapter 3: Condition Reference147user.x509.issuer=Tests the issuer of the x509 certificate used in authentication to certificate realms. The user.x509

Strany 55

ProxySG Content Policy Language Guide148user.x509.serialNumber=Tests the serial number of the x509 certificate used to authenticate the user against a

Strany 56

Chapter 3: Condition Reference149user.x509.subject=Tests the subject field of the x509 certificate used to authenticate the user against a certificate

Strany 57

Contentsxvforce_cache( ) ...

Strany 58

ProxySG Content Policy Language Guide150weekday=Tests if the day of the week is in the specified range or an exact match. By default, the ProxySG appl

Strany 59

Chapter 3: Condition Reference151year=Tests if the year is in the specified range or an exact match. The current year is determined by the date set on

Strany 60

ProxySG Content Policy Language Guide152

Strany 61

Chapter 4: Property ReferenceA property is a variable that can be set to a value. At the beginning of a transaction, all properties are set to their d

Strany 62

ProxySG Content Policy Language Guide154access_log( )Selects the access log used for this transaction. Multiple access logs can be selected to record

Strany 63 - • Definitions:

Chapter 4: Property Reference155access_server( ) Determines whether the client can receive streaming content directly from the origin content server o

Strany 64

ProxySG Content Policy Language Guide156action( ) Selectively enables or disables a specified define action block. The default value is no. Note: Seve

Strany 65

Chapter 4: Property Reference157advertisement( ) Determines whether to treat the objects at a particular URL as banner ads to improve performance. If

Strany 66

ProxySG Content Policy Language Guide158allowAllows the transaction to be served. Allow can be overridden by the access_server( ), deny( ), force_deny

Strany 67

Chapter 4: Property Reference159always_verify( ) Determines whether each request for the objects at a particular URL must be verified with the origin

Strany 68

ProxySG Content Policy Language Guidexvitrace.request( ) ...

Strany 69

ProxySG Content Policy Language Guide160authenticate( )Identifies the realm used to authenticate the user associated with the current transaction. Aut

Strany 70

Chapter 4: Property Reference161url.domain = !corporate.com authenticate(OurRealm, “log in for internet access”)The next example illustrates the relat

Strany 71

ProxySG Content Policy Language Guide162authenticate.force( ) This property controls the relation between authentication and denial.Syntaxauthenticate

Strany 72

Chapter 4: Property Reference163authenticate.mode( )Using the authentication.mode( ) property selects a combination of challenge type and surrogate cr

Strany 73

ProxySG Content Policy Language Guide164• origin-cookie (origin/cookie)—Used in forward proxies to support pass-through authentication more securely t

Strany 74

Chapter 4: Property Reference165authenticate.use_url_cookie( )This property is used to authenticate users who have third party cookies explicitly disa

Strany 75 - , realm=, user=, user.domain=

ProxySG Content Policy Language Guide166block_category( )This property has been deprecated. In current CPL, the use of block_category(category_list) h

Strany 76

Chapter 4: Property Reference167bypass_cache( ) Determines whether the cache is bypassed for a request. If set to yes, the cache is not queried and th

Strany 77

ProxySG Content Policy Language Guide168cache( ) Controls HTTP and FTP caching behavior. A number of CPL properties affect caching behavior. •If bypas

Strany 78

Chapter 4: Property Reference169See Also•Properties: advertisement( ), always_verify( ), bypass_cache( ), cookie_sensitive( ), direct( ), dynamic_bypa

Strany 79

ContentsxviiAppendix B: Testing and TroubleshootingEnabling Rule Tracing ...

Strany 80

ProxySG Content Policy Language Guide170check_authorization( )In connection with CAD (Caching Authenticated Data) and CPAD (Caching Proxy-Authenticate

Strany 81

Chapter 4: Property Reference171content_filter_override( )This property has been deprecated. content_filter_override(yes) has two effects: • It preven

Strany 82

ProxySG Content Policy Language Guide172cookie_sensitive( ) Used to modify caching behavior by declaring that the object served by the request varies

Strany 83

Chapter 4: Property Reference173delete_on_abandonment( )If set to yes, specifies that if all clients who may be simultaneously requesting a particular

Strany 84

ProxySG Content Policy Language Guide174deny( )Denies service. Denial can be overridden by allow or exception( ). To deny service in a way that cannot

Strany 85

Chapter 4: Property Reference175deny.unauthorized( )The deny.unauthorized property instructs the ProxySG to issue a challenge (401 Unauthorized or 407

Strany 86

ProxySG Content Policy Language Guide176direct( ) Used to prevent requests from being forwarded to a parent proxy or SOCKS server, when the ProxySG is

Strany 87

Chapter 4: Property Reference177dynamic_bypass( )Used to indicate that a particular transparent request is not to be handled by the proxy, but instead

Strany 88

ProxySG Content Policy Language Guide178exception( )Selects a built-in or user-defined response to be returned to the user.The exception( ) property i

Strany 89

Chapter 4: Property Reference179exception.autopad( )Pad an HTTP exception response by including trailing whitespace in the response body so that Conte

Strany 90

ProxySG Content Policy Language Guidexviii

Strany 91

ProxySG Content Policy Language Guide180force_cache( ) Used to force caching of HTTP responses that would otherwise be considered uncacheable. The def

Strany 92

Chapter 4: Property Reference181force_deny( )The force_deny( ) property is similar to deny( ) except that it:• Cannot be overridden by an allow. • Ove

Strany 93

ProxySG Content Policy Language Guide182force_exception( )The force_exception( ) property is similar to exception except that it:• Cannot be overridde

Strany 94

Chapter 4: Property Reference183force_patience_page( )This property provides control over the application of the default patience page logic. Syntaxfo

Strany 95

ProxySG Content Policy Language Guide184forward( )Determines forwarding behavior.There is a box-wide configuration setting (config>forwarding>se

Strany 96

Chapter 4: Property Reference185forward.fail_open( )Controls whether the ProxySG terminates or continues to process the request if the specified forwa

Strany 97

ProxySG Content Policy Language Guide186ftp.server_connection( )Determines when the control connection to the server is established. If set to deferre

Strany 98

Chapter 4: Property Reference187ftp.server_data( )Determines the type of data connection to be used with this FTP transaction. Syntaxftp.server_data(a

Strany 99

ProxySG Content Policy Language Guide188ftp.transport( )Determines the upstream transport mechanism. This setting is not definitive. It depends on the

Strany 100

Chapter 4: Property Reference189http.force_ntlm_for_server_auth( )Turns on/off NTLM cloaking on a per-request basis. Refer to Appendix A: “NTLM and CA

Strany 101

Chapter 1: Overview of Content Policy LanguageThe Content Policy Language (CPL) is a programming language with its own concepts and rules that you mus

Strany 102

ProxySG Content Policy Language Guide190http.request.version( )The http.request.version( ) property sets the version of the HTTP protocol to be used i

Strany 103

Chapter 4: Property Reference191http.response.version( ) The http.response.version( ) property sets the version of the HTTP protocol to be used in the

Strany 104

ProxySG Content Policy Language Guide192icp( )Determines whether to consult ICP when forwarding requests. Any forwarding host or SOCKS gateway identif

Strany 105

Chapter 4: Property Reference193im.strip_attachments( ) Determines whether attachments are stripped from instant messages. If set to yes, attachments

Strany 106

ProxySG Content Policy Language Guide194integrate_new_hosts( )Determines whether to add new host addresses to health checks and load balancing.Syntaxi

Strany 107

Chapter 4: Property Reference195label( ) This deprecated property is provided for backward compatibility with CacheOS 4.x filter files. For more infor

Strany 108 - Conditions:

ProxySG Content Policy Language Guide196log.rewrite.field-id() The log.rewrite.field-id property controls rewrites of a specific log field in one or m

Strany 109

Chapter 4: Property Reference197log.suppress.field-id( ) The log.suppress.field-id( ) property controls suppression of the specified field-id in one o

Strany 110

ProxySG Content Policy Language Guide198max_bitrate( ) Enforces upper limits on the instantaneous bandwidth of the current streaming transaction. This

Strany 111

Chapter 4: Property Reference199never_refresh_before_expiry( )The never_refresh_before_expiry( ) property is similar to the CLI command:SGOS#(config)

Strany 112

ProxySG Content Policy Language Guide 2Blue Coat Systems Inc. (408) 220-2200 Voice650 Almanor Avenue (408) 220-2250 FAXSunnyvale, California 94086 (86

Strany 113

ProxySG Content Policy Language Guide20This provides the ability to test various aspects of a request, such as the IP address of the client and the UR

Strany 114

ProxySG Content Policy Language Guide200never_serve_after_expiry( )The never_serve_after_expiry( ) property is similar to the CLI command:SGOS#(config

Strany 115

Chapter 4: Property Reference201patience_page( )Controls whether or not a patience page can be served, and if so, the delay interval before serving.If

Strany 116

ProxySG Content Policy Language Guide202pipeline( ) Determines whether an object embedded within an HTML container object is pipelined. Set to yes to

Strany 117

Chapter 4: Property Reference203prefetch( )This deprecated property has been replaced by pipeline( ). For more information, see "pipeline( )"

Strany 118

ProxySG Content Policy Language Guide204reflect_ip( ) Determines how the client IP address is presented to the origin server for explicitly proxied re

Strany 119

Chapter 4: Property Reference205reflect_vip( )This deprecated syntax has been replaced by the reflect_ip( ) property. For more information, see "

Strany 120 - • Definitions: define subnet

ProxySG Content Policy Language Guide206refresh( ) Controls refreshing of requested objects. Set to no to prevent refreshing of the object if it is ca

Strany 121

Chapter 4: Property Reference207remove_IMS_from_GET( )The remove_IMS_from_GET( ) property is similar to the CLI command:SGOS#(config) http substitute

Strany 122

ProxySG Content Policy Language Guide208remove_PNC_from_GET( )The remove_PNC_from_GET property is similar to the CLI command:SGOS#(config) http substi

Strany 123

Chapter 4: Property Reference209remove_reload_from_IE_GET( )The remove_reload_from_IE_GET( ) property is similar to the CLI command:SGOS#(config) http

Strany 124

Chapter 1: Overview of Content Policy Language21For new ProxySG appliances, the default is to deny all requests. For ProxySG appliances being upgraded

Strany 125

ProxySG Content Policy Language Guide210request.filter_service( )Controls whether the request is processed by an external content filter service. The

Strany 126 - Examples

Chapter 4: Property Reference211url.address=10.0.0.0/8 ; don't filter internal networkclient.address=10.1.2.3 ; don't filter this clientSe

Strany 127

ProxySG Content Policy Language Guide212request.icap_service( ) Determines whether a request from a client should be processed by an external ICAP ser

Strany 128

Chapter 4: Property Reference213response.icap_service( ) Determines whether a response to a client request is first sent to an ICAP service before bei

Strany 129

ProxySG Content Policy Language Guide214service( ) This deprecated syntax has been replaced by the allow, deny( ) and exception( ) properties.

Strany 130

Chapter 4: Property Reference215socks.accelerate( )The socks.accelerate property controls the SOCKS proxy handoff to other protocol agents. Syntaxsock

Strany 131

ProxySG Content Policy Language Guide216socks.authenticate( ) The same realms can be used for SOCKS proxy authentication as can be used for regular pr

Strany 132

Chapter 4: Property Reference217socks.authenticate.force( ) This property controls the relation between SOCKS authentication and denial.Syntaxsocks.au

Strany 133

ProxySG Content Policy Language Guide218socks_gateway( )Controls whether or not the request associated with the current transaction is sent through a

Strany 134

Chapter 4: Property Reference219socks_gateway.fail_open( )Controls whether the ProxySG terminates or continues to process the request if the specified

Strany 135

ProxySG Content Policy Language Guide22With a few notable exceptions, triggers test one aspect of request, response, or associated state against a boo

Strany 136

ProxySG Content Policy Language Guide220streaming.transport( )Determines the upstream transport mechanism to be used for this streaming transaction. T

Strany 137

Chapter 4: Property Reference221terminate_connection( )The terminate_connection( ) property is used in an <Exception> layer to drop the connecti

Strany 138

ProxySG Content Policy Language Guide222trace.destination( ) Used to change the default path to the trace output file. By default, policy evaluation t

Strany 139

Chapter 4: Property Reference223trace.request( ) Determines whether detailed trace output is generated for the current request. The default value is n

Strany 140

ProxySG Content Policy Language Guide224trace.rules( ) Determines whether trace output is generated showing policy rule evaluation for the transaction

Strany 141

Chapter 4: Property Reference225ttl( )Sets the time-to-live (TTL) value of an object in the cache, in seconds. Upon expiration, the cached copy is con

Strany 142

ProxySG Content Policy Language Guide226ua_sensitive( ) Used to modify caching behavior by declaring that the response for a given object is expected

Strany 143

Chapter 5: Action ReferenceAn action takes arguments and is wrapped in a user-named action definition block. When the action definition is called from

Strany 144

ProxySG Content Policy Language Guide228append( ) Appends a new component to the specified header.Note: An error results if two header modification ac

Strany 145

Chapter 5: Action Reference229delete( ) Deletes all components of the specified header.Note: An error results if two header modification actions modif

Strany 146

Chapter 1: Overview of Content Policy Language23• More complex boolean expressions are allowed for the pattern_expression in the triggers. For example

Strany 147

ProxySG Content Policy Language Guide230delete_matching( ) Deletes all components of the specified header that contain a substring matching a regular-

Strany 148

Chapter 5: Action Reference231im.alert( ) Deliver a message in-band to the instant messaging user. The text appears in the instant message window. Thi

Strany 149

ProxySG Content Policy Language Guide232log_message( ) Writes the specified string to the ProxySG event log. Events generated by log_message( ) are vi

Strany 150

Chapter 5: Action Reference233notify_email( ) Sends an email notification to the list of recipients specified in the Event Log mail configuration. The

Strany 151

ProxySG Content Policy Language Guide234notify_snmp( ) Multiple notify_snmp actions may be specified, resulting in multiple SNMP traps for a single tr

Strany 152

Chapter 5: Action Reference235redirect( ) Ends the current HTTP transaction and returns an HTTP redirect response to the client by setting the policy_

Strany 153 - Property Reference

ProxySG Content Policy Language Guide236replace( )This deprecated action has been replaced by rewrite( ). For more information, see "rewrite( )&q

Strany 154

Chapter 5: Action Reference237rewrite( )Rewrites the request URL, URL host, or components of the specified header if it matches the regular-expression

Strany 155

ProxySG Content Policy Language Guide238URL is considered complete, and replaces any URL that contains a substring matching the regex_pattern substrin

Strany 156

Chapter 5: Action Reference239See Also• Actions: append( ), delete( ), delete_matching( ), redirect( ), set( ), transform• Conditions: request.header.

Strany 157

ProxySG Content Policy Language Guide24LayersA policy layer is a CPL construct used to evaluate a set of rules and reach one decision. Separating deci

Strany 158

ProxySG Content Policy Language Guide240set( )Sets the specified header to the specified string after deleting all components of the header.Note: An e

Strany 159

Chapter 5: Action Reference241DiscussionAny change to the server form of the request URL must be respected by policy controlling upstream connections.

Strany 160

ProxySG Content Policy Language Guide242transformInvokes an active content or URL rewrite transformer. The invoked transformer takes effect only if th

Strany 161

Chapter 5: Action Reference243See Also• Properties: action( )• Definitions: define action, transform active_content, transform url.rewrite

Strany 162

ProxySG Content Policy Language Guide244virus_check( )This deprecated action sends the requested document to a virus scanning server. For more informa

Strany 163

Chapter 6: Definition ReferenceIn policy files, definitions serve to bind a set of conditions, actions, or transformations to a user-defined label. Tw

Strany 164

ProxySG Content Policy Language Guide246define actionBinds a user-defined label to a sequence of action statements. The action( ) property has syntax

Strany 165

Chapter 6: Definition Reference247• Definitions: transform active_content, transform url_rewrite• Chapter 5: "Action Reference".

Strany 166

ProxySG Content Policy Language Guide248define active_contentDefines rules for removing or replacing active content in HTML or ASX documents. This def

Strany 167

Chapter 6: Definition Reference249Layer and Transaction Notes• Applies to proxy transactions.• Only alphanumeric, underscore, dash, and slash characte

Strany 168

Chapter 1: Overview of Content Policy Language25[section_type [label]] [section_condition][section_properties]section_contentwhere:• The section_type

Strany 169 - •Properties:

ProxySG Content Policy Language Guide250define category Category definitions are used to extend vendor content categories or to create your own. The c

Strany 170

Chapter 6: Definition Reference251sportsworld.comcategory=football ; include subcategoryenddefine category footballnfl.comcfl.caendThe following polic

Strany 171

ProxySG Content Policy Language Guide252define condition Binds a user-defined label to a set of conditions for use in a condition= expression.For cond

Strany 172

Chapter 6: Definition Reference253define condition extension_low_risk ; file types assumed to be low risk.url.extension=(asf,asx,gif,jpeg,mov,mp3,ram,

Strany 173

ProxySG Content Policy Language Guide254define domainThis deprecated syntax has been replaced by the url.domain condition. For more information see &q

Strany 174

Chapter 6: Definition Reference255define javascriptA javascript definition is used to define a javascript transformer, which adds javascript that you

Strany 175

ProxySG Content Policy Language Guide256See Also•Actions: transform• Definitions: define action•Properties: action( )

Strany 176

Chapter 6: Definition Reference257define prefix conditionThis deprecated syntax has been replaced by the define url condition. For more information se

Strany 177

ProxySG Content Policy Language Guide258define server_url.domain conditionBinds a user-defined label to a set of domain-suffix patterns for use in a c

Strany 178

Chapter 6: Definition Reference259 affinityclub.example.comend<Forward> condition=!allowed access_server(no)See AlsoCondition: condition=, serve

Strany 179

ProxySG Content Policy Language Guide26Named DefinitionsThere are various types of named definitions. Each definition is given a user defined name tha

Strany 180

ProxySG Content Policy Language Guide260define subnetBinds a user-defined label to a set of IP addresses or IP subnet patterns. Use a subnet definitio

Strany 181

Chapter 6: Definition Reference261define url conditionBinds a user-defined label to a set of URL prefix patterns for use in a condition= expression. U

Strany 182

ProxySG Content Policy Language Guide262timing restrictions for the defined condition will depend on the layer and timing restrictions of the containe

Strany 183

Chapter 6: Definition Reference263define url.domain conditionBinds a user-defined label to a set of domain-suffix patterns for use in a condition= exp

Strany 184

ProxySG Content Policy Language Guide264See Also• Condition: condition=, server_url.domain=• Definitions: define url condition, define server_url.doma

Strany 185

Chapter 6: Definition Reference265define url_rewriteDefines rules for rewriting URLs embedded in tags within HTML, CSS, JavaScript or ASX documents. T

Strany 186

ProxySG Content Policy Language Guide266• server_url_substring—A string that, if found in the server URL, will be replaced by the client_url_substring

Strany 187

Chapter 6: Definition Reference267restrict dnsThis definition restricts DNS lookups and is useful in installations where access to DNS resolution is l

Strany 188

ProxySG Content Policy Language Guide268restrict rdnsThis definition restricts reverse DNS lookups and is useful in installations where access to reve

Strany 189

Chapter 6: Definition Reference269transform active_contentThis deprecated syntax has been replaced by define active_content. For more information see

Strany 190

Chapter 1: Overview of Content Policy Language27policy that does not require the realm. Once all outstanding transactions that required reference to t

Strany 191

ProxySG Content Policy Language Guide270transform url_rewriteThis deprecated syntax has been replaced by define url_rewrite. For more information see

Strany 192

Appendix A: Glossaryactions A class of definitions. CPL has two general classes of actions: request or response modifications and notifications. An ac

Strany 193

ProxySG Content Policy Language Guide272Forward Policy File A file you create or that might be created during an upgrade from prior SGOS versions, and

Strany 194

Appendix A: Glossary273response transformationa modification of the object being returned. This modification can be to either the protocol headers ass

Strany 195 - Chapter 4: Property Reference

ProxySG Content Policy Language Guide274

Strany 196

Appendix B: Testing and TroubleshootingIf you are experiencing problems with your policy files or would like to monitor evaluation for brief periods o

Strany 197

ProxySG Content Policy Language Guide276Enabling Request TracingUse the trace.request( ) property to enable request tracing. Request tracing logs a su

Strany 198

Appendix B: Testing and Troubleshooting277Here are the relevant policy requirements to be expressed:• DNS lookups are restricted except for a site bei

Strany 199

ProxySG Content Policy Language Guide2781 start transaction ------------------------------2 CPL Evaluation Trace:3 <Proxy> 4 MATCH: trace.rule

Strany 200

Appendix B: Testing and Troubleshooting279The following is a trace of the same policy, but for a transaction in which the request URL has an IP addres

Strany 201

ProxySG Content Policy Language Guide28Authentication and DenialOne of the most important timing relationships to be aware of is the relation between

Strany 202

ProxySG Content Policy Language Guide280Policy: Action discarded, 'set_header_1' conflicts with an action already committedThe conflict is r

Strany 203

Appendix C: Recognized HTTP HeadersThe tables provided in this appendix list all recognized HTTP 1.1 headers and indicate how the ProxySG is able to i

Strany 204

ProxySG Content Policy Language Guide282The following table lists custom headers that are recognized by the ProxySG.If-Match Request XIf-Modified-Sinc

Strany 205

Appendix D: CPL SubstitutionsThis appendix lists all substitution variables available in CPL.To use a variable in CPL, it is expressed as: $(<field

Strany 206

ProxySG Content Policy Language Guide284sr-bytes Number of bytes sent from appliance to upstream host.sr-headerlength Number of bytes in the header se

Strany 207

Appendix D: CPL Substitutions285x-bluecoat-transaction-idtransaction.id Unique per-request identifier generated by the appliance (note: this value is

Strany 208

ProxySG Content Policy Language Guide286cs-version request.version Protocol and version from the client's request; for example, HTTP/1.1.x-blueco

Strany 209

Appendix D: CPL Substitutions287x-bluecoat-special-esc esc Resolves to the escape character (ASCII HEX 1B).x-bluecoat-special-gt gt The greater-than c

Strany 210

ProxySG Content Policy Language Guide288x-bluecoat-surfcontrol-reporter-idSpecialized value for SurfControl reporter.x-bluecoat-websense-category-idTh

Strany 211

Appendix D: CPL Substitutions289x-patience-url patience_url The url to be requested for more patience information.x-virus-id Identifier of a virus if

Strany 212

Chapter 1: Overview of Content Policy Language29<Proxy>client.address=!corporate_subnet deny ; filter out strangerssocks.authenticate(MyRealm) ;

Strany 213

ProxySG Content Policy Language Guide290x-bluecoat-day day Localtime day (as a number) formatted to take up two spaces; for example, 07 for the 7th of

Strany 214

Appendix D: CPL Substitutions291cs-uri-hostname log_url.hostname Hostname from the 'log' URL. RDNS is used if the URL uses an IP address.cs-

Strany 215

ProxySG Content Policy Language Guide292sr-uri-query server_url.query Query from the upstream request URL.sr-uri-scheme server_url.scheme Scheme from

Strany 216 - ❐ socks.version=

Appendix D: CPL Substitutions293Category: userELFF CPL Descriptioncs-auth-group group One group that an authenticated client is a member of. The group

Strany 217

ProxySG Content Policy Language Guide294cs(Accept-Language) request.header.Accept-LanguageRequest header: Accept-Languagecs(Accept-Ranges) request.hea

Strany 218

Appendix D: CPL Substitutions295cs(If-Unmodified-Since)request.header.If-Unmodified-SinceRequest header: If-Unmodified-Sincecs(Last-Modified) request.

Strany 219

ProxySG Content Policy Language Guide296cs(X-Forwarded-For) request.header.X-Forwarded-ForRequest header: X-Forwarded-ForCategory: si_response_headerE

Strany 220

Appendix D: CPL Substitutions297rs(From) response.header.From Response header: From rs(Front-End-HTTPS) response.header.Front-End-HTTPSResponse header

Strany 221

ProxySG Content Policy Language Guide298rs(Vary) response.header.Vary Response header: Varyrs(Via) response.header.Via Response header: Via rs(WWW-Aut

Strany 222

Appendix E: Filter File SyntaxThis appendix provides a summary of the syntax and evaluation order used in CacheOS version 4.x filter files. While it i

Strany 223

Copyrights3THIRD PARTY COPYRIGHT NOTICESBlue Coat Systems, Inc. Security Gateway Operating System (SGOS) version 3 utilizes third party software from

Strany 224

ProxySG Content Policy Language Guide30Troubleshooting PolicyWhen installed policy does not behave as expected, use policy tracing to understand the b

Strany 225

ProxySG Content Policy Language Guide300Filter-Part ComponentsThe filter part of a filter file can contain the following:• Filters that are not part o

Strany 226

Appendix E: Filter File Syntax301• The only condition available in filter lines is the acl= condition, which is a synonym for the CPL condition client

Strany 227 - Action Reference

ProxySG Content Policy Language Guide302ALL StatementsAn ALL statement is a line beginning with the keyword ALL, followed by zero or more conditions a

Strany 228

Appendix E: Filter File Syntax303• protocol=value—An optional protocol= condition expression. Available values are http, https, ftp, mms, rtsp, tcp, a

Strany 229

ProxySG Content Policy Language Guide304While prefix-pattern filters are commonly used outside of any section, the Prefix section is provided to help

Strany 230

Appendix E: Filter File Syntax305• The domain-suffix filter http://company.com/ denies service to all URLs where company.com is a proper super-domain

Strany 231

ProxySG Content Policy Language Guide306Evaluation OrderCacheOS 4.x filter files have a different order of evaluation than CPL files. A compiled filte

Strany 232

Appendix F: Upgrading from CacheOSWhen upgrading from CacheOS version 4.x to the ProxySG, the default policy files are created as follows:• The CacheO

Strany 233

ProxySG Content Policy Language Guide308For the CPL compiler, the correct filter will be selected at run time based on the ACL if the filters are dist

Strany 234

IndexA<Admin> layers, understanding 37access_log( ) property 154access_server() property 155action definition block 246action part, filter file

Strany 235

Chapter 1: Overview of Content Policy Language31Conditional CompilationOccasionally, you might be required to maintain policy that can be applied to a

Strany 236

ProxySG Configuration and Management Guide310Ddate= condition 67day= condition 68define acl definition block, filter file 303define action definition

Strany 237

Index311Hhas_attribute.name= condition 74has_client= condition 76hour= condition 77HTTP cache transactions 36http.method= condition 79http.request.ver

Strany 238

ProxySG Configuration and Management Guide312rules, conflicting 47statistics, example 276testing 275tips on writing 44troubleshooting 275whitelists 45

Strany 239

Index313Qquoting, understanding 22Rrealm= condition 112redirect() action 235referencesrelated Blue Coat documentation xreferential integrity, understa

Strany 240

ProxySG Configuration and Management Guide314Ttime= condition 134timingin layers, understanding 41understanding 36trace.destination( ) 276trace.destin

Strany 241

ProxySG Content Policy Language Guide32

Strany 242

Chapter 2: Managing Content Policy LanguageAs discussed in Chapter 1, Content Policy Language policies are composed of transactions that are placed in

Strany 243 - • Properties:

ProxySG Content Policy Language Guide34Each of the protocol-specific proxy transactions has specific information that can be tested—information that m

Strany 244

Chapter 2: Managing Content Policy Language35Some conditions cannot be evaluated during the first stage; for example, the user and group information w

Strany 245 - Definition Reference

ProxySG Content Policy Language Guide36An HTTP cache transaction is examined in two stages: • Before the object is retrieved from the origin server.•

Strany 246

Chapter 2: Managing Content Policy Language37But policy cannot determine the value of the Content-type response header until the response is returned.

Strany 247

ProxySG Content Policy Language Guide38• The optional admin_properties is a list of properties set if any of the rules in the layer match. These act a

Strany 248

Chapter 2: Managing Content Policy Language39<Exception> Layers<Exception> layers are evaluated when a proxy transaction is terminated by

Strany 249

ProxySG Content Policy Language Guide 4Redistribution and use of this software and associated documentation ("Software"), with or without mo

Strany 250

ProxySG Content Policy Language Guide40<Proxy> Layers<Proxy> layers define policy for authenticating and authorizing users’ requests for s

Strany 251

Chapter 2: Managing Content Policy Language41TimingThe “late guards early” timing errors that can occur within a rule can arise across rules in a laye

Strany 252

ProxySG Content Policy Language Guide42url.domain=nbc.com/athletics deny ; etc, suppose it's a substantial list url.regex="sports|athletics&

Strany 253 - , condition=

Chapter 2: Managing Content Policy Language43• Rules in [Rule] sections are evaluated sequentially, top to bottom. The time taken is proportional to t

Strany 254

ProxySG Content Policy Language Guide44• [server_url.domain] sections are allowed only in <Exception> or <Forward> layers.Section GuardsJu

Strany 255

Chapter 2: Managing Content Policy Language45• Do not mix the CacheOS 4.x filter-file syntax with CPL syntax. Although the Content Policy Language is

Strany 256 - •Properties: action( )

ProxySG Content Policy Language Guide46The following example is an exception defined within a layer. A company wants access to payroll information lim

Strany 257

Chapter 2: Managing Content Policy Language47evaluation order as currently configured. Changes to the policy file evaluation order must be managed wit

Strany 258

ProxySG Content Policy Language Guide48Best Practices• Express separate decisions in separate layers.As policy grows and becomes more complex, mainten

Strany 259 - , server_url.domain=

Chapter 3: Condition ReferenceA condition is an expression that yields true or false when evaluated. Conditions can appear in:• Policy rules.• Section

Strany 260

Copyrights5A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUC

Strany 261

ProxySG Content Policy Language Guide50• condition ::= trigger "=" expression • trigger ::= identifier | identifier "." word • exp

Strany 262

Chapter 3: Condition Reference51Unavailable Triggers Some triggers can be unavailable in some transactions. If a trigger is unavailable, then any cond

Strany 263

ProxySG Content Policy Language Guide52acl=Deprecated syntax. See "client.address=" on page 60 for more information.

Strany 264 - • Condition:

Chapter 3: Condition Reference53admin.access=Tests the administrative access requested by the current transaction. It evaluates to null if the transac

Strany 265

ProxySG Content Policy Language Guide54attribute.name=Tests if the current transaction is authenticated in a RADIUS or LDAP realm, and if the authenti

Strany 266

Chapter 3: Condition Reference55<proxy>authenticate(RADIUSRealm); This rule would restrict non-authorized users.<proxy>deny condition=!Pro

Strany 267

ProxySG Content Policy Language Guide56authenticated=True if authentication was requested and the credentials could be verified; otherwise, false.Synt

Strany 268

Chapter 3: Condition Reference57bitrate=Tests if a streaming transaction requests bandwidth within the specified range or an exact match. When providi

Strany 269

ProxySG Content Policy Language Guide58<Proxy> ; Use this layer to override a deny in a previous layer; Grant everybody access to streams up to

Strany 270

Chapter 3: Condition Reference59category=Tests the content categories of the requested URL as assigned by policy definitions or an installed content f

Strany 271 - Glossary

ProxySG Content Policy Language Guide 62. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the fo

Strany 272

ProxySG Content Policy Language Guide60client.address=Tests the IP address of the client. The expression can include an IP address or subnet or the la

Strany 273

Chapter 3: Condition Reference61client.protocol=Tests true if the client transport protocol matches the specification.Replaces: client_protocol=syntax

Strany 274

ProxySG Content Policy Language Guide62condition=Tests if the specified defined condition is true.Syntaxcondition=condition_labelwhere condition_label

Strany 275 - Testing and Troubleshooting

Chapter 3: Condition Reference63http://www.x.com time=0800..1000http://www.y.com month=1http://www.z.com hour=9..10end<proxy>condition=test deny

Strany 276 - Enabling Request Tracing

ProxySG Content Policy Language Guide64console_access=Tests if the current request is destined for the <Admin> layer. This test can be used to d

Strany 277

Chapter 3: Condition Reference65content_admin=The content_admin= condition has been deprecated. For more information, see "content_management&quo

Strany 278

ProxySG Content Policy Language Guide66content_managementTests if the current request is a content management transaction.Replaces: content_admin=yes|

Strany 279

Chapter 3: Condition Reference67date[.utc]=Tests true if the current time is within the startdate..enddate range, inclusive. The comparison is made ag

Strany 280

ProxySG Content Policy Language Guide68day=Tests if the day of the month is in the specified range or an exact match. The ProxySG appliance’s configur

Strany 281 - Recognized HTTP Headers

Chapter 3: Condition Reference69exception.id=Tests whether the exception being returned to the client is the specified exception. It can also be used

Strany 282

Copyrights7This product includes cryptographic software written by Eric Young ([email protected]). This product includes software written by Tim Hudso

Strany 283 - CPL Substitutions

ProxySG Content Policy Language Guide70; thrown by deny or force_denyexception.id=policy_denied action.log_interloper(yes)<Exception> exception.

Strany 284

Chapter 3: Condition Reference71ftp.method=Tests FTP request methods against any of a well-known set of FTP methods. A CPL parse error is given if an

Strany 285

ProxySG Content Policy Language Guide72group=Tests if the client is authenticated, and the client belongs to the specified group. If both of these con

Strany 286

Chapter 3: Condition Reference73• Applies to proxy and administrator transactions.• This condition cannot be combined with the authenticate( ), proxy_

Strany 287

ProxySG Content Policy Language Guide74has_attribute.name=Tests if the current transaction is authenticated in an LDAP realm and if the authenticated

Strany 288

Chapter 3: Condition Reference75See Also• Conditions: attribute.name=, authenticated=, group=, http.transparent_authentication=, realm=, user=, user.d

Strany 289

ProxySG Content Policy Language Guide76has_client=The has_client= condition is used to test whether or not the current transaction has a client. This

Strany 290

Chapter 3: Condition Reference77hour=Tests if the time of day is in the specified range or an exact match. The current time is determined by the Proxy

Strany 291

ProxySG Content Policy Language Guide78<proxy>allow server_url.domain=xyz.com ; internal site always available allow weekday=6..7 ; unres

Strany 292

Chapter 3: Condition Reference79http.method=Tests HTTP request methods against any of a common set of HTTP methods. A CPL parse error is given if an u

Strany 293

ProxySG Content Policy Language Guide 8documentation. Moscow Center for SPARC Technology makes no representations about the suitability of this softwa

Strany 294

ProxySG Content Policy Language Guide80http.request.version=Tests the version of HTTP used by the client in making the request to the appliance. synta

Strany 295

Chapter 3: Condition Reference81http.response.code=Tests true if the current transaction is an HTTP transaction and the response code received from th

Strany 296

ProxySG Content Policy Language Guide82http.response.version=Tests the version of HTTP used by the origin server to deliver the response to the ProxyS

Strany 297

Chapter 3: Condition Reference83http.transparent_authentication=This trigger evaluates to true if HTTP uses transparent proxy authentication for this

Strany 298

ProxySG Content Policy Language Guide84http.x_method=Tests HTTP request methods against any uncommon HTTP methods. A CPL parse warning is given if the

Strany 299 - Filter File Syntax

Chapter 3: Condition Reference85im.buddy_id=Tests the buddy_id associated with the instant messaging transaction.Syntaxim.buddy_id[.case_sensitive]=us

Strany 300 - Filter-Part Components

ProxySG Content Policy Language Guide86im.chat_room.conference=Tests whether the chat room associated with the instant messaging transaction has the c

Strany 301

Chapter 3: Condition Reference87im.chat_room.id=Tests the chat room ID associated with the instant messaging transaction.Syntaxim.chat_room.id[.case_s

Strany 302 - ALL Statements

ProxySG Content Policy Language Guide88im.chat_room.invite_only=Tests whether the chat room associated with the instant messaging transaction has the

Strany 303

Chapter 3: Condition Reference89im.chat_room.type=Tests whether the chat room associated with the transaction is public or private.Syntaxim.chat_room.

Strany 304

Preface: Introducing the Content Policy LanguageThe Content Policy Language (CPL) is a powerful, flexible language that enables you to specify a varie

Strany 305 - Action-Part Components

ProxySG Content Policy Language Guide90im.chat_room.member=Tests whether the chat room associated with the instant messaging transaction has a member

Strany 306 - Evaluation Order

Chapter 3: Condition Reference91im.chat_room.voice_enabled=Tests whether the chat room associated with the instant messaging transaction is voice enab

Strany 307 - Upgrading from CacheOS

ProxySG Content Policy Language Guide92im.file.extension=Tests the file extension of a file associated with an instant messaging transaction. The lead

Strany 308

Chapter 3: Condition Reference93im.file.name=Tests the file name (the last component of the path), including the extension, of a file associated with

Strany 309

ProxySG Content Policy Language Guide94im.file.path=Tests the file path of a file associated with an instant messaging transaction against the specifi

Strany 310

Chapter 3: Condition Reference95im.file.size=Performs a signed 64-bit range test of the size of a file associated with an instant messaging transactio

Strany 311

ProxySG Content Policy Language Guide96im.message.opcode=Tests the value of an opcode associated with an instant messaging transaction whose im.method

Strany 312

Chapter 3: Condition Reference97im.message.route=Tests how the instant messaging message reaches its recipients.Syntaxim.message.route=service|direct|

Strany 313

ProxySG Content Policy Language Guide98im.message.size=Performs a signed 64-bit range test on the size of the instant messaging message. Syntaxim.mess

Strany 314

Chapter 3: Condition Reference99im.message.text=Tests if the message text contains the specified text or pattern.Note: The .regex version of this test

Komentáře k této Příručce

Žádné komentáře