HP-UX Reference (11i v2 03/08) - 1 User Commands N-Z (vol 2)

p
pppd(1) pppd(1)
SIGUSR2 Reset the debugging verbosity level to the base value (1 unless
debug 0 was supplied on
the command line).
SIGALRM Take no action except to re-read the filter and key files.
EXAMPLES
To run a pair of daemons on ‘oursystem, one maintaining a constant link with ‘backbonesystem and the
other prepared to initiate outbound calls to a neighboring machine named ‘theirsystem’, add the following
to
/sbin/rc2.d/S522ppp
:
if [ -f /etc/ppp/Autostart ]; then
/etc/ppp/Autostart
fi
Then make
/etc/ppp/Autostart
look like this:
#!/bin/sh
PATH=/usr/etc:/bin:/usr/bin
if [ -f /var/adm/pppd.log ]; then
mv /var/adm/pppd.log /var/adm/OLDpppd.log
fi
echo -n "Starting PPP daemons:" >/dev/console
pppd oursystem:backbonesystem auto up
(echo -n ’ backbonesystem’) >/dev/console
pppd oursystem:theirsystem auto idle 120
(echo -n ’ theirsystem’) >/dev/console
echo ’.’ >/dev/console
To allow a PPP implementation running on ‘theirsystem to dial into ‘oursystem’, insert the following into
/etc/passwd on ‘oursystem:
Pthem:?:105:20:Their PPP:/etc/ppp:/etc/ppp/Login
where group 20 is the gid of the ppp group which owns /usr/etc/pppd, and
/etc/ppp/Login is an exe-
cutable shell script that looks something like
#!/bin/sh
PATH=/usr/bin:/usr/etc:/bin
mesg n
stty -tostop
exec pppd ‘hostname‘:
RECOMMENDATIONS
Use host names when running
/etc/ppp/Autostart from /sbin/rc2.d/S522ppp
only if they are
known locally. If a PPP connection to a DNS server would be required to resolve a host name, use its
literal IP address instead.
EXTERNAL INFLUENCES
Environment Variables
The environment variable
PPPHOME, if present, specifies the directory in which pppd looks for its
configuration files (Filter and Auth for all connections, along with Systems, Devices, and
Dialers if the connection is ‘outbound’). You can specify PPPHOME either in the Autostart script or
in an incoming connection’s Login script. If PPPHOME is not present, pppd will expect to find its
configuration files in /etc/ppp/*.
SECURITY CONCERNS
pppd should be mode 4750, owned by root, and executable only by the members of the group containing
all the incoming PPP login users’.
Section 1698 Hewlett-Packard Company 6 HP-UX 11i Version 2: August 2003