Sun Java System Portal Server Secure Remote Access 7.2 Administration Guide

Defining Netlet Rules

Netlet configuration is defined by Netlet rules that are configured using the Portal Server administration console under the Secure Remote Access configuration tab. Netlet rules can be configured for organizations, roles, or users. If the Netlet rule is for a role or user, select the desired role or user after selecting the organization.


Caution – Caution –

Netlet rules do not support multibyte entries. Do not specify multibyte characters for any of the fields in Netlet rules.

Netlet rules cannot contain any port number higher than 64000.


Defining Netlet Rules lists the fields in a Netlet rule.

Table 6–1 Fields in a Netlet Rule

Parameter 

Description 

Value 

Rule Name 

Designates a name for this Netlet rule. You need to specify a unique name for each rule. This is useful while defining user access to specific rules. 

 

Encryption Ciphers 

Defines the encryption cipher, or specifies the list of ciphers that the user can choose from. 

The ciphers that you select appear in the Netlet provider as a list. The user can choose the required ciphers from the selected list. 

Default - The Default VM Native Cipher and the Default Java Plugin Cipher specified in the Netlet administration console are used. 

Remote Application URL 

Specifies the URL that the browser opens when the user clicks the associated link in the Netlet provider. The browser opens the window for the application and connects to localhost at the local port number specified later in the rule.

You need to specify a relative URL. 

URL to the application invoked by the Netlet rule. For example, telnet://localhost:30000.

Specify a URL if the application uses an applet to invoke the application. 

null– Value that you set if the application is not started by a URL or controlled by the desktop. This is normally true for non-web-based applications.

Enable Download Applet 

Indicates whether it is necessary to download an applet for this rule. 

  • Client Port indicates the destination port on the client. This port must be different from the default loopback port. Specify a unique local port for each rule.

  • Server Host is the name of the server from which to download the applet.

  • Server Port represents the port on the server used to download the applet.

    If an applet is to be downloaded, and if the server is not specified, the applet is downloaded from the Portal Server host.

Enable Extend Session 

This controls the idle time-out of a Portal Server session when Netlet is active. 

Select this checkbox to keep the portal session alive when only Netlet is active and the rest of the portal application is idle. By default, this option is not selected. 

Map Local Port to Destination Server Port 

Local Port 

Port on the client where Netlet listens. 

The value of local-port must be unique. You cannot specify a particular port number in more than one rule.

Specify multiple local ports if you are specifying multiple hosts for multiple connections. See Static Rule With Multiple Host Connections for the syntax.

For an FTP rule the local port value must be 30021. 

Destination Host 

Port on the client where Netlet listens. 

Recipient of the Netlet connection. 

host - Name of the host to receive the Netlet connection. This is used in a static rule. Use either the simple host name such as siroe, or a fully-qualified DNS-style host name such as siroe.mycompany.com. Specify multiple hosts for the following reasons:

The value of local-port must be unique. You cannot specify a particular port number in more than one rule.

Specify multiple local ports if you are specifying multiple hosts for multiple connections. See Static Rule With Multiple Host Connections for the syntax.

For an FTP rule the local port value must be 30021. 

to establish connection with each host specified. You need to specify the corresponding client and destination ports for each host specified. See Static Rule With Multiple Host Connections for the syntax.

to try to connect to any available host from the list of hosts specified. See Static Rule with Multiple Host Selection for the syntax.

TARGET - Rules that specify TARGET in the syntax are dynamic rules. TARGET indicates that end-users can specify the required destination host or hosts in the Netlet provider of the desktop.

You cannot have a combination of a static host and TARGET in a single rule. 

Destination Port 

The port on the destination host 

In addition to the host and destination host, you must specify a destination port. 

You can specify multiple destination ports in case of multiple destination hosts. Specify multiple ports in the format port1+port2+port3-port4+port5.

The plus (+) sign between ports numbers indicates the alternative ports for a single destination host. 

The minus (-) sign between port numbers is the separator between the port numbers for different destination hosts. 

Here, Netlet tries to connect to the first destination host specified using port1, port2 and port3 in order. If this fails, Netlet tries to connect to the second host using port4 and port5 in that order.

You can configure multiple ports only for static rules. 

For the Gateway to get the session notification from Portal Server, add the following:

com.iplanet.am.jassproxy.trustAllServerCerts=true

to the following property file

/etc/opt/SUNWam/config/AMConfig.instance-name.properties on the Portal Server

Types of Rules

Two types of Netlet rules are based on how the destination host is specified in the rule.

Static Rule

A static rule specifies a destination host as part of the rule. If you create a static rule, the user does not have the option to specify the required destination host. In the following example, sesta is the destination host.

Rule Name 

Encryption Cipher 

URL 

Enable Download Applet 

Enable Extend Session 

Map Local Port to Destination Server Port 

ftpstatic 

SSL_RSA_WITH_RC 4_128_MD5

null 

false 

true 

  • Local Port: 30021

  • Destination Host: sesta

  • Destination Port: 21

You can configure multiple destination hosts and ports for static rules. See Static Rule With Multiple Host Connections for an example.

Dynamic Rule

In a dynamic rule, the destination host is not specified as a part of the rule. The user can specify the required destination host in the Netlet provider. In the following example, TARGET is the placeholder for the destination host.

Rule Name 

Encryption Cipher 

Remote Application URL 

Enable Download Applet 

Enable Extend Session 

Map Local Port to Destination Server Port 

ftpdynamic 

SSL_RSA_WIT H_RC4_128_MD5

null 

Select checkbox 

Select checkbox 

  • Local Port: 30021

  • Destination Host: TARGET

  • Destination Port: 21

Encryption Ciphers

Based on the encryption cipher, Netlet rules can be further classified as follows:

Rule Name 

Encryption Cipher 

Remote Application URL 

Enable Download Applet 

Enable Extend Session 

Map Local Port to Destination Server Port 

Telnet 

SSL_RSA_WITH_RC4 _128_SHA

null 

Select checkbox 

Select checkbox 

  • Local Port: 30000

  • Destination Host: TARGET

  • Destination Port: 23

 

SSL_RSA_WITH_RC4 _128_MD5

       


Note –

Although the Portal Server host may have various ciphers enabled, the user can choose only from the list that is configured as part of the Netlet rule.


See Supported Ciphers for a list of the ciphers supported by Netlet.

Rule Name 

Encryption Cipher 

Remote Application URL 

Enable Download Applet 

Enable Extend Session 

Map Local Port to Destination Server Port 

Telnet 

SSL_RSA_WITH_RC4_128_MD5

null 

Select checkbox 

Select checkbox 

  • Local Port: 30000

  • Destination Host: TARGET

  • Destination Port: 23

See Supported Ciphers for a list of ciphers supported by Netlet.

Supported Ciphers

Supported Ciphers lists the ciphers supported by Netlet.

Table 6–2 List of Supported Ciphers

Ciphers 

Native VM Ciphers

KSSL_SSL3_RSA_WITH_3DES_EDE_CBC_SHA 

KSSL_SSL3_RSA_WITH_RC4_128_MD5 

KSSL_SSL3_RSA_WITH_RC4_128_SHA 

KSSL_SSL3_RSA_EXPORT_WITH_RC4_40_MD5 

KSSL_SSL3_RSA_WITH_DES_CBC_SHA 

Java Plugin Ciphers

SSL_RSA_WITH_3DES_EDE_CBC_SHA 

SSL_RSA_WITH_RC4_128_MD5 

SSL_RSA_WITH_RC4_128_SHA 

SSL_RSA_EXPORT_WITH_RC4_40_MD5 

SSL_RSA_WITH_DES_CBC_SHA 

SSL_RSA_WITH_NULL_MD5 

TLS_RSA_WITH_AES_128_CBC_SHA 

TLS_RSA_WITH_AES_256_CBC_SHA 

Backward Compatibility

Earlier versions of Portal Server did not support ciphers as part of the Netlet rules. For backward compatibility with existing rules without ciphers, a default cipher is used by the rules. An existing rule without ciphers such as:

Rule Name 

Encryption Cipher 

Remote Application URL 

Enable Download Applet 

Enable Extend Session 

Map Local Port to Destination Server Port 

Telnet 

 

telnet://localhost:30000

Do not select checkbox 

Select checkbox 

  • Local Port: 30000

  • Destination Host: TARGET

  • Destination Port: 23

is interpreted as:

Rule Name 

Encryption Cipher 

Remote Application URL 

Enable Download Applet 

Enable Extend Session 

Map Local Port to Destination Server Port 

Telnet 

Default ciphers 

telnet://localhost:30000

Do not select checkbox 

Select checkbox 

  • Local Port: 30000

  • Destination Host: TARGET

  • Destination Port: 23

This is similar to an Administrator Configured Rule with the Encryption cipher field chosen as Default.


Note –

Netlet rules cannot contain any port number higher than 64000.


Netlet Rule Examples

This section contains some examples of Netlet rules to illustrate how Netlet syntax works.

Basic Static Rule

This rule supports a Telnet connection from the client to the machine sesta.

Rule Name 

Encryption Cipher 

Remote Application URL 

Download Applet 

Extend Session 

Map Local Port to Destination Server Port 

myrule 

SSL_RSA_WITH_RC4_128_MD5

null 

Do not select the checkbox 

true 

  • Local Port: 1111

  • Destination Host: sesta

  • Destination Port: 23

where

myrule is the name of the rule.

SSL_RSA_WITH_RC4_128_MD5 indicates the cipher to be used.

null indicates that this application is not invoked by a URL or run through the desktop.

false indicates that the client does not download an applet to run this application.

true indicates that Portal Server should not time out when the Netlet connection is active.

1111 is the port on the client where Netlet listens for a connection request from the destination host.

sesta is the name of the recipient host in the Telnet connection.

23 is the port number on the destination host for the connection, in this case the well-known port for Telnet.

The desktop Netlet provider does not display a link, but Netlet automatically starts and listens on the port specified (1111). Instruct the user to start the client software - in this case a Telnet session that connects to localhost on port 1111.

For example, to start the Telnet session, the client needs to type the following on the UNIX command line in a terminal:


telnet localhost 1111

Static Rule With Multiple Host Connections

This rule supports a Telnet connection from the client to two machines, sesta and siroe.

Rule Name 

Encryption Cipher 

Remote Application URL 

Enable Download Applet 

Enable Extend Session 

Map Local Port to Destination Server Port 

myrule 

SSL_RSA_WITH_RC4_128_MD5

null 

Do select the checkbox 

Select the checkbox 

  • Local Port: 1111–1234

  • Destination Host: sesta-siroe

  • Destination Port: 23

where

23 is the port number on the destination host for the connection– reserved port for Telnet.

1111 is the port on the client where Netlet listens for a connection request from the first destination host sesta.

1234 is the port on the client where Netlet listens for a connection request from the second destination host siroe.

The first six fields in this rule are the same as in Basic Static Rule. The difference is that three more fields identify the second destination host.

When you add additional targets to a rule, you must add three fields, local port, destination host, and destination port, for each new destination host.


Note –

You can have multiple sets of three fields describing the connection to each destination host. Listen port numbers which are less than 2048 must not be used if the remote client is UNIX-based because low numbered ports are restricted and you must be root to start a listener.


This rule works the same as the previous rule. The Netlet provider does not display any link, but Netlet automatically starts and listens on the two ports specified (1111 and 1234). The user needs to start the client software, in this case a Telnet session that connects to localhost on port 1111 or the localhost on port 1234 to connect to the host in the second example.

Static Rule with Multiple Host Selection

Use this rule to specify multiple alternative hosts. If connection to the first host in the rule fails, Netlet tries to connect to the second host specified and so on.

Rule Name 

Encryption Cipher 

Remote Application URL 

Enable Download Applet 

Enable Extend Session 

Map Local Port to Destination Server Port 

gojoe 

SSL_RSA_WITH_RC4_128_MD5

/gojoe.html 

  • Client Port: 8000

  • Server Host: gojoeserver

  • Server Port: 8080

Select the checkbox 

  • Local Port: 10491

  • Destination Host: siroe+sesta

  • Destination Port: 35+26+491-35+491

where

10491 is the port on the client where Netlet listens for a connection request from the destination host.

Netlet tries to establish connection with siroe on port 35, port 26 and port 491 in the same order, depending on which one is available.

If connections to siroe are not possible, Netlet tries to connect to sesta on port 35 and 491 in the same order.

The plus (+) sign between hosts indicates alternative hosts.

The plus (+) sign between ports numbers indicates the alternative ports for a single destination host.

The minus (-) sign between port numbers is the separator between the port numbers for different destination hosts.


Note –

Connections to hosts provided in the chain is attempted serially. For example, if the rule is siroe+ sesta, then a connection to siroe is attempted first. If the connection fails then the connection to sesta is attempted . If the hosts listed first in the rule are physically unavailable in an active network, the time taken to connect to the next available host will increase as the number of unavailable hosts in the rule increases.


Dynamic Rule to Invoke a URL

This rule enables a user to configure the destination host required, enabling the user to telnet to various hosts over Netlet.

Rule Name 

Encryption Cipher 

Remote Application URL 

Enable Download Applet 

Enable Extend Session 

Map Local Port to Destination Server Port 

myrule 

SSL_RSA_WITH_RC4_128_MD5

telnet://localhost:30000 

Do not select the checkbox 

Select the checkbox 

  • Local Port: 30000

  • Destination Host: TARGET

  • Destination Port: 23

where

myrule is the name of the rule.

SSL_RSA_WITH_RC4_128_MD5 indicates the cipher to be used.

telnet://localhost:30000 is the URL invoked by the rule.

false indicates that no applets are to be downloaded.

Extend Session(true) indicates that the Portal Server should not time out when the Netlet connection is active.

30000 is the port on the client where Netlet listens for connection requests for this rule.

TARGET indicates that the destination host needs to be configured by the user using the Netlet provider.

23 is the port on the destination host opened by Netlet, in this case the well-known port for Telnet.

ProcedureTo Run Netlet After a Rule is Added

After this rule is added, the user must complete some steps to get Netlet running as expected. The user needs to do the following on the client side:

  1. Click Edit in the Netlet provider section of the standard Portal Server desktop.

    The new Netlet rule is listed under Rule Name in the Add New Target section.

  2. Choose the rule name and type the name of the destination host.

  3. Save the changes.

    The user returns to the desktop with the new link visible in the Netlet provider section.

  4. Click the new link.

    A new browser is launched that goes to the URL given in the Netlet rule.


    Note –

    You can add more than one destination host for the same rule by repeating these steps. Only the last link selected is active.


Dynamic Rule to Download an Applet

This rule defines a connection from the client to hosts that are dynamically allocated. The rule downloads a GO-Joe applet from the server on which the applet is located, to the client.

Rule Name 

Encryption Cipher 

Remote Application URL 

Enable Download Applet 

Extend Session 

Map Local Port to Destination Server Port 

gojoe 

SSL_RSA_WITH_RC4_128_MD5

/gojoe.html 

  • Client Port: 8000

  • Server Host: gojoeserver

  • Server Port: 8080

Select the checkbox 

  • Local Port: 3399

  • Destination Host: TARGET

  • Destination Port:58

where

gojoe is the name of the rule.

SSL_RSA_WITH_RC4_128_MD5 indicates the cipher to be used.

/gojoe.html for example is the path of the HTML page containing the applet, the path should be relative to the documentation root of the web container on which portal is deployed.

8000:server:8080 indicates that port 8000 is the destination port on the client to receive the applet, gojoeserve is the name of the server providing the applet, and 8080 is the port on the server from which the applet is downloaded.

Extended Session (true) indicates that the Portal Server should not time out when the Netlet connection is active.

3399 is the port on the client where Netlet listens for connection requests of this type.

TARGET indicates that the destination host needs to be configured by the user using the Netlet provider.

58 is the port on the destination host opened by Netlet, in this case the port for GoJoe. Port 58 is the port that the destination host listens to for its own traffic. Netlet passes information to this port from the new applet.