Oracle iPlanet Web Proxy Server 4.0.14 Administration Guide

Chapter 7 Configuring Server Preferences

This chapter describes the Proxy Server’s system settings and tells you how to configure them. System settings affect the entire Proxy Server. The settings include options such as the user account the proxy server uses and the port to which it listens.

This chapter contains the following sections:

Starting the Proxy Server

This section describes how to start the Proxy Server on different platforms. Once the server is installed, it listens for and accepts requests.

ProcedureTo Start the Proxy Server From the Administration Interface

  1. Access the Server Manager and click the Preferences tab.

  2. Click the Start/Stop Server link.

    The Start/Stop Server page is displayed.

  3. Click the On button.

    The status of the server appears in the Start/Stop Server page.

To Start the Proxy Server on UNIX or Linux

You can start the Proxy Server on UNIX or Linux in either of the following ways:

To Start the Proxy Server on Windows

You can start the Proxy Server on Windows in any of the following ways

Starting SSL-Enabled Servers

To start an SSL-enabled server, a password is required. Although you can start an SSL-enabled server automatically if you keep the password in plain text in a file, doing so is a large security risk. Anyone who can access the file has access to the SSL-enabled server’s password. Consider the security risks before keeping the SSL-enabled server’s password in plain text

The server’s start script, key pair file, and the key password should be owned by root or, if a non-root user installed the server, that user account, with only the owner having read and write access to them.

Stopping the Proxy Server

This section describes the various methods to stop the Proxy Server on different platforms.

ProcedureTo Stop the Proxy Server From the Administration Interface

  1. Access the Server Manager and click the Preferences tab.

  2. Click the Start/Stop Server link.

    The Start/Stop Server page is displayed.

  3. Click the Off button.

    The status of the server appears in the Start/Stop Server page.

To Stop the Proxy Server on UNIX or Linux

You can stop the Proxy Server on UNIX or Linux in either of the following ways:


Note –

If you used the etc/inittab file to restart the server you must remove the line starting the server from /etc/inittab and type kill -1 1 before you try to stop the server. Otherwise, the server restarts automatically after it is stopped.


After you shut down the server, a few seconds might lapse before the server completes its shut-down process and its status changes to Off.

If your system crashes or is taken offline, the server stops and any requests it was servicing might be lost.


Note –

If you have a security module installed with your server, you will be required to provide the appropriate passwords before starting or stopping the server.


To Stop the Proxy Server on Windows

You can stop the Proxy Server on Windows in any of the following ways:

Restarting the Proxy Server

This section describes the various methods to restart the Proxy Server on different platforms.

Restarting the Server UNIX or Linux

You can restart the server using one of the following methods:

Because the installation scripts cannot edit the /etc/rc.local or /etc/inittab files, you must edit those files with a text editor. If you do not know how to edit these files, consult your system administrator or system documentation.

ProcedureTo Restart the Proxy Server From the Command Line

  1. Log in as root if the server runs on ports with numbers lower than 1024; otherwise, log in as root or with the servers user account.

  2. At the command-line prompt, type the following line and press Enter:

    server-root/proxy-serverid/restart

    where server-root is the directory where you installed the server.

    • You can use the optional parameter -i at the end of the line. The -i option runs the server in inittab mode if the server process is ever killed or crashed, inittab will restart the server for you. This option also prevents the server from putting itself in a background process.

To Restart the Server Using inittab

Add the following text on one line in the /etc/inittab file:

prxy:23:respawn:server-root/proxy-serverid/start -start -i

where server-root is the directory where you installed the server, and proxy-serverid is the server’s directory.

The -i option prevents the server from putting itself in a background process.

You must remove this line before you stop the server.

To Restart the Server Using System RC Scripts

If you use /etc/rc.local, or your system’s equivalent, place the following line in /etc/rc.local:

server-root/proxy-serverid/start

Replace server-root with the directory where you installed the server.

Restarting the Server Windows

You can restart the server by using the Services Control Panel or by completing the following task.

ProcedureTo Restart the Server on Windows

  1. Use Control Panel > Administrative Tools > Services >

  2. Select iPlanet Web Proxy Server 4.0 (proxy-serverid) from the list of services.

  3. Change the Startup type to Automatic in the Properties window. Your system will start the server each time the computer starts or reboots.

  4. Click OK.

Setting the Termination Timeout

When the server is off, it stops accepting new connections. Then the server waits for all outstanding connections to complete. The time the server waits before timing out is configurable in the magnus.conf file. By default, this value is set to 30 seconds. To change the value, add the following line to magnus.conf file:

TerminateTimeout seconds

where seconds represents the number of seconds the server will wait before timing out.

The advantages to configuring this value is that the server will wait longer for connections to complete. However, because servers often have connections open from nonresponsive clients, increasing the termination timeout might increase the time necessary for the server to shut down.

Viewing Server Settings

During installation, you configure some settings for your Proxy Server. You can view these and other system settings from the Server Manager. The View Server Settings page lists all of the settings for your Proxy Server. This page also tells you whether you have unsaved and unapplied changes. If you have unsaved changes, save the changes and restart the Proxy Server so it can begin using the new configurations.

The two types of server settings are technical and content. The server’s content settings depend on how you have configured your server. Typically, the proxy lists all templates, URL mappings, and access control. For individual templates, the View Server Settings page lists the template name, its regular expression, and the settings for the template such as cache settings.

The proxy server’s technical settings come from the magnus.conf file and the server.xml file, and the content settings come from the obj.conf file. These files are located in the server root directory in the proxy-id/config subdirectory.

ProcedureTo View the Settings for the Proxy Server

  1. Access the Server Manager and click the Preferences tab.

  2. Click the View Server Settings link.

    The View Server Settings page is displayed.

Viewing and Restoring Backups of Configuration Files

You can view or restore a backup copy of your configuration files:server.xml, magnus.conf, obj.conf, mime types, server.xml.clfilter, magnus.conf.clfilter, obj.conf.clfilter, socks5.conf, bu.conf, icp.conf, parray.pat, parent.pat, proxy-id.acl. This feature enables you to go to a previous configuration if you are having trouble with your current configuration. For example, if you made several changes to the proxy’s configuration and then the proxy does not work the way you thought it should (for example, you denied access to a URL but the proxy will service the request), you can revert to a previous configuration and then redo your configuration changes.

ProcedureTo View a Previous Configuration

  1. Access the Server Manager and click the Preferences tab.

  2. Click the Restore Configuration link.

    The Restore Configuration page is displayed. The page lists all the previous configurations ordered by date and time.

  3. Click the View link to display a listing of the technical and content settings of a particular version.

ProcedureTo Restore a Backup Copy of Your Configuration Files

  1. Access the Server Manager and click the Preferences tab.

  2. Click the Restore Configuration link.

    The Restore Configuration page is displayed. The page lists all the previous configurations ordered by date and time.

  3. Click the Restore link for the version you want to restore.

    If you want to restore all files to their state at a particular time, click the Restore to time link in the left column of the table. time is the date and time to which you want to restore.

ProcedureTo Set the Number of Backups Displayed

  1. Access the Server Manager and click the Preferences tab.

  2. Click the Restore Configuration link.

    The Restore Configuration page is displayed.

  3. In the Set Number Of Sets Of Backups field, type the number of backups you want to display.

  4. Click the Change button.

Configuring System Preferences

The Configure System Preferences page enables you to set up or change the basic aspects of your server. The page allows you to do the following:

The preference options are:

ProcedureTo Modify the System Preferences

  1. Access the Server Manager and click the Preferences tab.

  2. Click the Configure System Preferences link.

    The Configure System Preferences page is displayed.

  3. Change the options, and then click OK.

  4. Click Restart Required.

    The Apply Changes page is displayed.

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

Tuning the Proxy Server

The Tune Proxy page enables you to change the default parameters to tune your proxy server’s performance.

ProcedureTo Change the Default Tuning Parameters

  1. Access the Server Manager and click the Preferences tab.

  2. Click the Tune Proxy link.

    The Tune Proxy page is displayed.

  3. (Optional) Modify the width of FTP listings to allow longer file names and thus reduce file name truncation.

    The default width is 80 characters.

  4. Click OK.

  5. Click Restart Required.

    The Apply Changes page id displayed.

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

Adding and Editing Listen Sockets

Before the server can process a request, it must accept the request via a listen socket, then direct the request to the correct server. When you install the Proxy Server one listen socket, ls1, is created automatically. This listen socket uses the IP address 0.0.0.0 and the port number you specified as your proxy server port number during installation. You cannot delete the default listen socket.

If security is disabled, only the following parameter is displayed:

If security is enabled, the following parameters are displayed:

Listen sockets are added, edited, and deleted using the Server Manager’s Add Listen Socket and Edit Listen Sockets pages.

Security for a listen socket has Enabled as an option only after the required certificates have been installed and until then only Disabled shows up in the drop-down box.

This section contains the following topics:

ProcedureTo Add Listen Sockets

  1. Access the Server Manager and click the Preferences tab.

  2. Click the Add Listen Socket link.

    The Add Listen Socket page is displayed.

  3. Specify the internal name for the listen socket.

    You cannot change this name after the listen socket has been created.

  4. Specify the IP address of the listen socket.

    The IP address can be in dotted-pair or IPv6 notation. It can also be 0.0.0.0, any, ANY or INADDR_ANY (all IP addresses).

  5. Specify the port number to create the listen socket on. The values allowed are 1 - 65535.

    On UNIX, creating sockets that listen on ports 1 - 1024 requires superuser privileges. Configure an SSL listen socket to listen on port 443.

  6. Specify the server name to be used in the host name section of any URLs the server sends to the client.

    This setting affects URLs that the server automatically generates but does not affect the URLs for directories and files stored in the server. This name should be the alias name if your server uses an alias.

  7. From the drop-down list, specify whether security should be enabled or disabled for the listen socket.

  8. Click OK.

  9. Click Restart Required.

    The Apply Changes page is displayed.

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

ProcedureTo Edit Listen Sockets

  1. Access the Server Manager and click the Preferences tab.

  2. Click the Edit Listen Sockets link.

    The Edit Listen Sockets page is displayed.

  3. In the Configured Sockets table, click the link for the listen socket you want to edit.

    The Edit Listen Sockets page is displayed.

  4. Make the desired changes to the options.

    For a description of the options, see the beginning of this section.

  5. Click OK.

  6. Click Restart Required.

    The Apply Changes page is displayed.

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

ProcedureTo Delete Listen Sockets

  1. Access the Server Manager and click the Preferences tab.

  2. Click the Edit Listen Sockets link.

  3. Select the check box next to the listen socket you want to delete and click OK.

    You will be prompted to confirm deletion. It is possible to delete any listen socket, provided it is not the only listen socket for that instance.

  4. Click Restart Required.

    The Apply Changes page is displayed.

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

Selecting Directory Services

The Select Directory Services page lists all directory services for the specified proxy server instance. The page allows you to select the directory services to use with a specific proxy server instance. For more information, see Configuring Directory Services.

ProcedureTo Select a Directory Service

  1. Access the Server Manager, and click the Preferences tab.

  2. Click the Select Directory Services link.

    The Select Directory Services page is displayed showing all the directory services for the specified proxy server instance.

  3. Select a directory service from the list.

  4. Click OK.

  5. Click Restart Required.

    The Apply Changes page is displayed.

MIME Types

A Multi-purpose Internet Mail Extension (MIME) type is a standard for multimedia e-mail and messaging. So that you can filter files depending on their MIME type, the proxy server provides a page that lets you create new MIME types for use with your server. The proxy adds the new types to the mime.types file. For more information on blocking files based on MIME types, see Filtering by MIME Type.

This section describes how to create, edit, or remove a MIME type.

Creating a MIME Type

ProcedureTo Create a MIME Type

  1. Access the Server Manager, and click the Preferences tab.

  2. Click the Create/Edit MIME Types link.

    The Create/Edit MIME Types page is displayed showing all the MIME types listed in the proxy’s mime.types file.

  3. Specify the category of the MIME type from the drop-down list. This can be type, enc, or lang. type is the file or application type, enc is the encoding used for compression, and lang is the language encoding.

    For more information on the category, see the online Help.

  4. Specify the content type that will appear in the HTTP header.

  5. Specify the file suffix.

    File Suffix refers to the file extensions that map to the MIME type. To specify more than one extension, separate the entries with a comma. The file extensions should be unique, that is, you should not map one file extension to two MIME types.

  6. Click the New button to add the MIME type.

ProcedureTo Edit a MIME Type

  1. Access the Server Manager, and click the Preferences tab.

  2. Click the Create/Edit MIME Types link.

    The Create/Edit MIME Types page that appears shows all the MIME types listed in the proxy’s mime.types file.

  3. Click the Edit link for the MIME type you want to edit.

  4. Make the desired changes. Click the Change MIME Type button.

ProcedureTo Remove a MIME Type

  1. Access the Server Manager, and click the Preferences tab.

  2. Click the Create/Edit MIME Types link.

    The Create/Edit MIME Types page that appears shows all the MIME types listed in the proxy’s mime.types file.

  3. Click the Remove link for the MIME type you want to remove.

Administering Access Control

The Administer Access Control page enables you to manage access control lists (ACLs). ACLs enable you to control which clients can access your server. ACLs can screen out certain users, groups, or hosts to either allow or deny access to part of your server. ACLs can also set up authentication so that only valid users and groups can access part of the server. For more information about access control, see Chapter 8, Controlling Access to Your Server.

ProcedureTo Manage Access Control Lists

  1. Access the Server Manager, and click the Preferences tab.

  2. Click the Administer Access Control link.

    The Administer Access Control page is displayed.

  3. Select a resource, or an existing ACL, or type the ACL name and click the Edit button.

    The Access Control Rules for page is displayed.

  4. Make the desired changes and click Submit.

    For more information about access control see “Setting Access Control for a Server Instance” in Chapter 8, Controlling Access to Your Server.

Configuring the ACL Cache

The Configure ACL Cache page is used to enable or disable the proxy authentication cache, set the proxy authentication cache directory, configure the cache table size, and set the entry expiration time.

ProcedureTo Configure the ACL Cache

  1. Access the Server Manager and click the Preferences tab.

  2. Click the Configure ACL Cache link.

    The Configure ACL Cache page is displayed.

  3. Enable or disable the proxy authentication cache.

  4. Select the number of users in the user cache from the Proxy Auth User Cache Size drop-down list.

    The default size is 200.

  5. Select the number of group IDs that can be cached for a single UID/cache entry from the Proxy Auth Group Cache Size drop-down list.

    The default size is 4.

  6. Select the number of seconds before cache entries expire.

    Each time an entry in the cache is referenced, its age is calculated and checked against this value. The entry is not used if its age is greater than or equal to the Proxy Auth Cache Expiration value. If this value is set to 0, the cache is turned off.

    If you use a large number for this value, you may need to restart the Proxy Server when you make changes to the LDAP entries. For example, if this value is set to 120 seconds, the Proxy Server might be out of sync with the LDAP server for as long as 2 minutes. If your LDAP entries are not likely to change often, use a large number. The default expiration value is 2 minutes.

  7. Click OK.

  8. Click Restart Required.

    The Apply Changes page is displayed.

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

Understanding DNS Caching

Proxy Server supports DNS caching to reduce the number of DNS lookups performed by the proxy while it resolves DNS host names into IP addresses.

There are two types of proxy DNS cache:

From Proxy Server 4.0.10, you can configure statistics and profiling to view statistics of either the clients' ip-to-host cache or the remote servers' host-to-ip cache.

Configuring the DNS Cache

The Configure DNS Cache page is used to enable or disable DNS caching, set the size of the DNS cache, set the expiration of DNS cache entries, and enable or disable negative DNS caching.

The proxy server optionally maintains a "Client DNS cache" and a "Host DNS cache" to store the results of ipaddress to hostname lookups done on clients and hostname to ipaddress lookups done on remote hosts, respectively. The "Configure DNS Cache" page is used to configure both types of caches.

ProcedureTo Configure the DNS Cache

  1. Access the Server Manager and click the Preferences tab.

  2. Click the Configure DNS Cache link.

    The Configure DNS Cache page is displayed.

  3. Enable or disable Host/Client DNS caching.

  4. Select the number of entries from the Host/Client DNS Cache Size drop-down list that can be stored in the Host/Client DNS cache.

    The default size is 1024.

  5. Set the Host/Client DNS cache expiration time.

    The Proxy Server purges Host/Client DNS cache entries from the cache when it reaches a pre-set expiration time. The default DNS expiration time for both Host and Client DNS caches is 20 minutes.

  6. Enable or disable caching of errors when the host name is not found.

  7. Click OK.

  8. Click Restart Required.

    The Apply Changes page is displayed.

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

Configuring DNS Subdomains

Some URLs contain host names with many levels of subdomains. The proxy server might take a long time to do DNS checks if the first DNS server cannot resolve the host name. You can set the number of levels that the Proxy Server will check before returning a “host not found” message to the client.

For example, if the client requests http://www.sj.ca.example.com/index.html, the proxy could take a long time to resolve that host into an IP address because it might have to go through four DNS servers to get the IP address for the host computer. Because these lookups can take a lot of time, you can configure the proxy server to quit looking up an IP address if the proxy has to use more than a certain number of DNS servers.

ProcedureTo Set the Levels of Subdomains For Proxy Lookup

  1. Access the Server Manager and click the Preferences tab.

  2. Click the Configure DNS Subdomains link.

    The Configure DNS Subdomains page is displayed.

  3. Select a resource from the drop-down list or specify a regular expression.

  4. Select the number of levels from the Local Subdomain Depth drop-down list.

  5. Click OK.

  6. Click Restart Required.

    The Apply Changes page is displayed.

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

Configuring HTTP Keep-Alive

The Configure HTTP Client page is used to enable keep-alives on your proxy server.

Keep-alives are a TCP/IP feature that keeps a connection open after the request is complete, so that the client can quickly reuse the open connection. The proxy, by default, does not use keep-alive connections, but for some systems, using the keep-alive feature can improve the proxy’s performance.

In normal client-server transactions on the web, the client can make several connections to the server that requests multiple documents. For example, if the client requests a web page that has several graphic images, the client needs to make separate requests for each graphic file. Re-establishing connections is time consuming. Therefore, keep-alive packets can be useful.

ProcedureTo Configure HTTP Keep-Alive

  1. Access the Server Manager and click the Preferences tab.

  2. Click the Configure HTTP Client link.

    The Configure HTTP Client page is displayed.

  3. Select a resource from the drop-down list.

    Select a HTTP or HTTPS resource to configure keep-alives on your Proxy Server or specify a regular expression.

  4. Specify whether the HTTP client should use persistent connections by selecting the appropriate Keep Alive option.

  5. Specify the maximum number of seconds in the Keep Alive Timeout field to keep a persistent connection open.

    The default value is 29.

  6. Specify whether the HTTP client can reuse existing persistent connections for all types of requests by selecting the appropriate Persistent Connection Reuse option.

    The default value is off, which does not allow persistent connections to be reused for non-GET requests nor for requests with a body.

  7. Specify the HTTP protocol version string in the HTTP Version String field.

    Do not specify this parameter unless you encounter specific protocol interoperability problems.

  8. Specify the Proxy Server product name and version in the Proxy Agent Header field.

  9. Specify the nickname of the client certificate in the SSL Client Certificate Nickname field to present to the remote server.

  10. Select the appropriate SSL Server Certificate Validation option to indicate whether the Proxy Server must validate the certificate presented by the remote server.

  11. Click OK.

  12. Click Restart Required.

    The Apply Changes page is displayed.

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