Remove X-Bluecoat-Via Header

book

Article ID: 167710

calendar_today

Updated On:

Products

Advanced Secure Gateway Software - ASG ProxySG Software - SGOS

Issue/Introduction

Some devices can generate errors due to the X-Bluecoat-Via header. Some examples are listed below but are not all-inclusive.

  • Network Error (tcp_error) when going to dishtv.in
  • Network issue upstream due to the X-Bluecoat-Via Header

Resolution

If removing the header for a specific destination for example dishtv.in.

The example below shows how to remove the header via CPL and VPM. 

This error occours because the OCS resets GET requests where the header contains X-BlueCoat-Via. To allow access to the page, create a rule that can supress the X-BlueCoat-Via header from the request.

Copy the following CPL into the local policy file:

<Proxy>
    url.domain=//dishtv.in/ action.Remove_X-Bluecoat-Via(yes)

define action Remove_X-Bluecoat-Via
  delete( request.header.X-BlueCoat-Via )
end

or create a VPM policy in the Web Access Layer  using the following rule:

  • Destination— Request URL: dishtv.in
  • Action—Control Request Header, Header Name: X-BlueCoat-Via, Supress

 

To remove the X-Bluecoat-Via Header from ALL traffic:

Copy the following CPL into the local policy file:

<Proxy>
   action.Remove_X-Bluecoat-Via(yes)

define action Remove_X-Bluecoat-Via
  delete( request.header.X-BlueCoat-Via )
end

To create a VPM policy in the Web Access Layer with a source/destination of ANY ANY with the same action as shown above.

  • Source — ANY
  • Destination— ANY
  • ​Action—Control Request Header, Header Name: X-BlueCoat-Via, Supress

 

The X-Bluecoat-Via Header is used to keep the proxy from inspecting the traffic a second time should a loop in the network path occour.
For more information regaurding this please see "Why the ProxySG sends a header "X-Bluecoat-Via:?"

Attachments