The example configuration
includes an external SAS client, a firewall, and a
SAS/CONNECT server session and a spawner program
that run on the local area network. Each external client connects
to the server using a single port, which is enabled by socket inheritance.
Here are
the steps for setting up a firewall configuration:
-
At each external SAS
client, the user must configure the firewall port, 5010, in its services
file.
fireport 5010/tcp # Firewall computer port
FIREPORT is a defined
service in the TCP/IP services file that is associated with port 5010.
FIREPORT is the single port through which all external SAS clients
will access SAS servers in the internal network.
Note: The firewall server does
not necessarily have to run SAS software.
-
The administrator of
the firewall server must configure the firewall port, 5010, and map
it to another port number on the
SAS/CONNECT server.
Specific details about
configuring and mapping ports on the firewall server vary according
to the specific firewall software that is used.
-
The administrator
of the
SAS/CONNECT server
must configure these ports in its services file:
-
the port that is used by the external
SAS client to communicate with the spawner
-
the ports that are used by the
spawner to communicate with the
SAS/CONNECT server
Here is an example of these entries in the services
file:
spawnport 5060/tcp # Port for external SAS client to spawner
servport 5080/tcp # Port for spawner and SAS/CONNECT server
SPAWNPORT is a defined
service in the services file that is associated with port 5060. SERVPORT
is associated with port 5080.
-
The administrator of
the
SAS/CONNECT server starts
the spawner using a command that enables socket inheritance:
spawner -inheritance -service spawnport -sasdaemonservice servport
-sascmd mysas.cmd
Note: Windows uses the
spawner
command;
UNIX uses the
sastcpd
command. The -INHERITANCE
option can be omitted from the command because the option is enabled,
by default. Socket inheritance implements the use of a single port.
Here is an explanation
of the spawner command:
Explanation of Spawner Command
|
|
|
Starts the Windows spawner.
|
|
Specifies that sockets
are inherited. Socket inheritance implements the use of a single port.
The omission of this
option implies socket inheritance.
|
|
Specifies the service
or its port, 5060, at which the spawner listens for requests from
SAS clients to connect to a SAS/CONNECT server.
|
-sasdaemonservice
servport
|
Specifies the service
or port, 5080, through which the spawner relays the SAS client's request
to connect to the SAS/CONNECT
server.
|
|
Specifies the script
that starts the SAS/CONNECT
session.
|
-
To test the configuration,
start a SAS session on a computer that is outside the firewall and
sign on to the server that is inside the firewall. Here is an example:
options comamid=tcp;
signon firewall.fireport username="myuser" password="mypass";