Problem
How do I manually configure Morning Star PPP for incoming and/or
outgoing connections on my SCO server? Although this can be
done easily through the Internet Manager (on Internet FastStart
Release 1.0.0 and later), the layered Morning Star PPP product must
have all connections configured manually. Solution
This is broken into two parts, one for outgoing and one for
incoming PPP connections. Note that this article assumes you
have working modems on both systems.OUTGOING CONNECTION:For outgoing Morning Star PPP connections, there are only three
files that need to be modified, all in the /usr/lib/mstppp
directory. If you have installed the Morning Star layered
product, you will need to create these files to have the
following permissions:-rwx------ 1 root bin 0 Nov 12 11:57 Autostart
-rw-r--r-- 1 root sys 0 Nov 12 11:57 Devices
-rw------- 1 root sys 0 Nov 12 11:57 SystemsNote that only Autostart is executable.To set up a dialout connection, first configure the modem to use a specific dialer (from /usr/lib/uucp/atdial* ), by adding an entry in the /usr/lib/mstppp/Devices file that looks something like this:
atdialACCURA tty1A 38400The file follows the format "dialer modem-tty baud-rate".
Then, configure the /usr/lib/mstppp/Systems file for dialout:
remoteip Any;5 ACU 38400 1-831-427-6800 "" "" in:--in: \dnppp word: \qtest123
(all one contiguous line), where "remoteip" is the IP address of the remote PPP machine, the 38400 matches the Devices file speed, "nppp" is the PPP account name to log in as, and "test123" is the account password.
Finally, in /usr/lib/mstppp/Autostart, add an entry such as:
/usr/lib/mstppp/dialout localip:remoteip auto exec /usr/lib/mstppp/exec.dialout netmask 255.255.255.0 idle 60 debug 5
(all one contiguous line), where "dialout" is the script that runs to set up pppd and routing; "remoteip" matches the Systems file, "localip" is the IP address to use on the client side of the connection; "auto"-bring up the link anytime there is traffic for that connection; "exec.dialout" is the script that sets up modem conditions and IP addresses for the connection; the netmask is set for a class C address; the idle time is set to 60 seconds; and debugging level 5 (output to /usr/adm/pppd.log) is set.
There are many other options you can add to this Autostart entry;
run `/usr/lib/mstppp/pppd help` for more information.To activate the pppd process for this connection, run:
/usr/lib/mstppp/Autostartand then check for an active interface with `ifconfig -a`. You
should also see a pppd process with the correct IP addresses
running; use `ps -ef | grep pppd` to verify this.For troubleshooting information, see other articles in this database.
INCOMING CONNECTION:For incoming connections, there is only one file that needs to be modified, also in the /usr/lib/mstppp directory:
/usr/lib/mstppp/AccountsIf you have installed the Morning Star layered product, you will need to create this file to have the following permissions:
-rw-r--r-- 1 root bin 0 Nov 12 12:28 Accountswith an entry that will look similar to this:
nppp localip:remoteip exec /usr/lib/mstppp/exec.dialin netmask 255.255.255.0 idle 60 debug 5
(all one contiguous line), where "nppp" is the account name to log in as (make sure the "nppp" account is of group "ppp", with home directory /usr/lib/ppp and shell /usr/lib/ppp/ppp); "localip" is the server's IP address and "remoteip" is the client's IP address; "exec.dialin" is the server's connection processing script; a class C netmask is assigned; idle time is set to 60 seconds; and debugging level 5 (output to /usr/adm/pppd.log) is set.
As with the outgoing connection, there are many other options you
can specify in the Accounts file, run `/usr/lib/mstppp/pppd help`
for more information on those advanced options.Also note that there will not be a pppd process for incoming connections until the PPP negotiation begins.
The final step is to create the "nppp" account. Using the
Account Manager (through scoadmin), create an account with the
home directory of /usr/lib/mstppp and a shell of /usr/lib/ppp/ppp.
A corresponding /etc/passwd entry for this user would look like
this:nppp:x:212:100:PPP account:/usr/lib/mstppp:/usr/lib/ppp/pppYou are now ready to test the connection by dialing into the
server. For troubleshooting information, see other articles in
this database.NOTE: It is not necessary to run netconfig to add a WAN link before
configuring Morning Star PPP. The du0 interface is created by
/usr/lib/mstpp/dialout when called by /usr/lib/mstppp/Autostart. See also
SCO Help documentation for MST_PPP category. There is also a WWW
site with all SCO documentation online, see:http://www2.sco.com:1996/Internet/html.MST_PPP/for further information.