Sun Java System Web Proxy Server 4.0.3 2006Q2 Administration Guide

Routing through Another Proxy

The Set Routing Preferences page is used to configure your proxy server to route certain resources using the derived default configuration or direct connections; or through proxy arrays, ICP neighborhood, another proxy server, or a SOCKS server.

Configuring Routing for a Resource

ProcedureTo configure routing for a resource

Steps
  1. Access the Server Manager and click the Routing tab.

  2. Click the Set Routing Preferences link.

    The Set Routing Preferences page displays.

  3. Select the resource from the drop-down list or click the Regular Expression button, enter a regular expression, and clicking OK.

  4. Select the radio button for the type of routing you would like for the resource you are configuring.

    You can choose one of the following:

    • Derived Default Configuration. The proxy server uses a more general template (that is, one with a shorter, matching regular expression) to determine if it should use the remote server or another proxy. For example, if the proxy routes all http://.* requests to another proxy server and all http://www.* requests to the remote server, you could create a derived default configuration routing for http://www.example.* requests, which would then go directly to the remote server because of the setting for the http://www.* template.

    • Direct Connections. The request will always go directly to the remote server instead of through the proxy.

    • Route Through A SOCKS Server. The requests for the specified resource will be routed through a SOCKS server. If you choose this option, you need to specify the name (or IP address) and the port number of the SOCKS server that the proxy server will route through.

    • Route Through. Lets you specify whether you would like to route through a proxy array, ICP neighborhood, parent array, and/or proxy server. If you choose multiple routing methods here, the proxy will follow the hierarchy shown on the form (i.e. proxy array, redirect, ICP, parent array, another proxy). For more information on routing through a proxy server, see Chaining Proxy Servers.

      For information on routing through a SOCKS server, see Routing through a SOCKS Server. For information on routing through proxy arrays, parent arrays, or ICP neighborhoods, see Chapter 12, Caching.


    Note –

    To enable routing of connect requests on non-default ports (other than 443), you need to change the ppath parameter to connect://.* in the obj.conf file.


  5. Click OK.

  6. Click Restart Required.

    The Apply Changes page displays.

  7. Click the Restart Proxy Server button to apply the changes.

Chaining Proxy Servers

You can have the proxy access another proxy for some resources instead of accessing the remote server. This means you can chain proxies together. Chaining is a good way to organize several proxies behind a firewall. Chaining also lets you build hierarchical caching.

ProcedureTo route through another proxy server

Steps
  1. Access the Server Manager and click the Routing tab.

  2. Click the Set Routing Preferences link.

    The Set Routing Preferences page displays.

  3. Select the resource from the drop-down list or click the Regular Expression button, enter a regular expression and click OK.

  4. Select the Route Through option in the Routing Through Another Proxy section of the page.

  5. Select the Another Proxy checkbox.

  6. In the Another Proxy field, you can enter the server name and the port number of the proxy sever that you want to route through.

    Enter the server name and port number as servername:port

  7. Click OK.

  8. Click Restart Required.

    The Apply Changes page displays.

  9. Click the Restart Proxy Server button to apply the changes.

Routing through a SOCKS Server

If you already have a remote SOCKS server running on your network, you can configure the proxy to connect to it for specific resources.

ProcedureTo route through a SOCKS server

Steps
  1. Access the Server Manager and click the Routing tab.

  2. Click the Set Routing Preferences link.

    The Set Routing Preferences page displays.

  3. Select the resource from the drop-down list or click the Regular Expression button, enter a regular expression and click OK.

  4. Select the Route Through option in the Routing Through Another Proxy section of the page.

  5. Select the Route Through SOCKS Server option.

  6. Specify the name (or IP address) and the port number of the SOCKS server that the proxy server will route through.

  7. Click OK.


    Note –

    Once you have enabling routing through a SOCKS server, you should create proxy routes using the SOCKS v5 Routing page. Proxy routes identify the IP addresses that are accessible through the SOCKS server your proxy routes through. They also specify whether that SOCKS server connects directly to the host.


  8. Click Restart Required.

    The Apply Changes page displays.

  9. Click the Restart Proxy Server button to apply the changes.