The configurations described in this chapter are not part of the Solstice X.25 configuration, but they are provided here for your convenience.
An xty device emulates a tty device, and is required to make outgoing calls using uucp or tip.
By default, Solstice X.25 provides 16 xty devices. This is sufficient for most purposes. If you require more than 16 xty devices, add them by editing the /etc/system file. For example, if you need 20 xty devices, you would add the following line:
set xty:xty_cnt = 20
Incoming calls are handled directly by the PAD daemon which executes the login process.
You need to modify a number of files before uucp/cu calls can be made over the xty driver. All of the files are in the directory /etc/uucp. For more detail, refer to the SunOS 5.x Administering TCP/IP and PPP guide. The files you need to modify are:
Devices Specifies which xty devices are available for outgoing calls.
Dialcodes Specifies a number of host to X.25 address mappings.
Permissions Specifies permissions that remote users have when sending files, whether local users can request files, and which commands users are allowed to use. Read the section in the SunOS 5.x Administering TCP/IP and PPP guide that tells you how to configure the permissions. Incorrectly configuring the permissions can compromise system security.
Dialers Specifies the command that uucp issues to the PAD to make a uucp call.
Systems Specifies the hosts that uucp knows about. It includes the login names and character sequences that uucp sends and expects to receive.
The xty device numbers should match those generated by kernelcreate, and should number from one upwards. Add lines like the following to the file:
Pad xty1 - Any pad Pad xty2 - Any pad |
Add entries to the Dialcodes file to specify name to X.25 address mapping. The names you specify here are used in the Permissions and Systems files. Add lines like the following to the file:
hostname1 x.25-address hostname2 x.25-address |
Enter the X.25 address in one of the following formats:
link number.x121 address (for example 0.23433140831)
link number.MAC address (for example 1.1234567890AB7E)
Add lines like the following to this file:
MACHINE=hostname1:hostname2 \ REQUEST=yes \ SENDFILES=yes \ READ=/ WRITE=/ \ COMMANDS=ALL LOGNAME=nuucp \ REQUEST=yes \ SENDFILES=yes \ READ=/ WRITE=/ \ COMMANDS=ALL |
It is standard practice to use nuucp as the LOGNAME, but this is not mandatory.
You may want to set more restrictive permissions than those shown above. For more detail, refer to the SunOS 5.x Administering TCP/IP and PPP.
You need to tell uucp the command to issue to the PAD to allow outgoing calls. Add the following line to this file:
pad "" "" P_ZERO "" CALL\040\T |
You need to add lines like this to the Systems file:
systemname Any Pad Any hostname in:--in: logname word: password |
The hostname is the hostname you mapped to an address in the Dialcodes file. Alternatively, enter the X.25 address here.
Use the LOGNAME that you set in the Permissions file. In most cases this is nuucp.
To configure tip, add the name of the remote node you want to reach to your /etc/remote file. The entry must include the device type and also specify the pad command needed to reach the remote device. If the remote destination is in the hosts database, you can give the hostname you entered there. The entry looks like this:
hostname:\ :dv=/dev/xtydevice:cm=CALL x25.address: |
Use the xty device you set using x25tool.
Enter the X.25 address in one of the following formats:
link number.x121 address (for example 0.23433140831)
link number.MAC address (for example 1.1234567890AB7E)