- Manual page updated.

This commit is contained in:
calle 2000-11-01 10:04:24 +00:00
parent 5e42607f7a
commit bd900eb523
1 changed files with 97 additions and 97 deletions

View File

@ -1,5 +1,5 @@
.\" manual page [] for capiplugin 2.3 .\" manual page [] for capiplugin 2.3
.\" $Id: capiplugin.8,v 1.3 2000/10/25 10:01:47 calle Exp $ .\" $Id: capiplugin.8,v 1.4 2000/11/01 10:04:24 calle Exp $
.\" SH section heading .\" SH section heading
.\" SS subsection heading .\" SS subsection heading
.\" LP paragraph .\" LP paragraph
@ -7,7 +7,7 @@
.\" TP hanging label .\" TP hanging label
.TH CAPIPLUGIN 8 .TH CAPIPLUGIN 8
.SH NAME .SH NAME
capiplugin \- Plugin for pppd (Point to Point Protocol daemon) capiplugin \- Plugin for pppd (Point-to-Point Protocol daemon)
.SH SYNOPSIS .SH SYNOPSIS
.B pppd .B pppd
[\fIoptions\fR] [\fIoptions\fR]
@ -19,28 +19,28 @@ capiplugin \- Plugin for pppd (Point to Point Protocol daemon)
The capiplugin provides a method to use PPP over ISDN with The capiplugin provides a method to use PPP over ISDN with
ISDN controllers that provide a CAPI2.0 interface. ISDN controllers that provide a CAPI2.0 interface.
The plugin is responsible for the call setup with CAPI2.0. The plugin is responsible for the call setup with CAPI2.0.
You can dial out, wait for incoming calls and setup communication over You can dial out, wait for incoming calls and set up communication over
leased lines. It implements the feature to reject a incoming call leased lines. It implements a feature to reject an incoming call
and call back. When dialing out this feature can also be used. and call back. This feature can also be used when dialing out.
In this case the called party has to reject the call and call back soon. In this case, the party called has to reject the call and call back soon.
.SH HOW IS WORKS .SH HOW IT WORKS
.LP .LP
The capiplugin registers a new_phase_hook and its own options to the pppd The capiplugin registers a new_phase_hook and its own options to the pppd
when loaded. When the pppd goes into phase SERIALCONN the capiplugin when loaded. When the pppd goes into phase SERIALCONN, the capiplugin
will setup a connection and sets the global variable devnam. set up a connection and sets the global variable devnam.
The capiplugin will register a timer function that is The capiplugin will register a timer function that is
called every second to handle the capi messages while pppd is running. called every second to handle the CAPI messages while pppd is running.
To let pppd wakeup when capi messages arrive, the capi file desciptor To notify pppd when CAPI messages arrive, the CAPI file desciptor
is added to the list of file descriptors on which the pppd waits for input. is added to the list of file descriptors which the pppd monitors for input.
After the connection is established the pppd will start PPP negotiation Once the connection is set up the pppd will start PPP negotiation
on device devnam. When the pppd goes into phase DEAD, the connection will on device devnam. When the pppd enters the DEAD phase, the connection will
be dropped (if not already dropped) and the timer function and the capi file be dropped (if it is still active) and the timer function and the CAPI file
desciptor will be unregistered. desciptor will be unregistered.
.SH MODES OF OPERATION .SH MODES OF OPERATION
.TP .TP
.B normal dial out .B normal dial out
Simply make a connection, for example to your internet provider. Simply make a connection, for example to your Internet provider.
.br .br
Required options: \fInumber\fR. Required options: \fInumber\fR.
Recommended options: \fImsn\fR. Recommended options: \fImsn\fR.
@ -52,8 +52,7 @@ Other possible options:
\fIredialdelay\fR. \fIredialdelay\fR.
.TP .TP
.B dial out with callback .B dial out with callback
Call a given number, the called party call back after rejecting the call Call a given number, the called party rejects the call and then calls back.
and then call back.
.br .br
Required options: \fInumber\fR and \fIclicb\fR. Required options: \fInumber\fR and \fIclicb\fR.
Recommended options: \fIcli\fR and \fImsn\fR or \fIinmsn\fR. Recommended options: \fIcli\fR and \fImsn\fR or \fIinmsn\fR.
@ -88,7 +87,7 @@ Other possible options:
.TP .TP
.B leased line .B leased line
setup a leased line connection, with or without CAPI channel bundling set up a leased line connection, with or without CAPI channel bundling.
.br .br
Required options: \fIchannels\fR. Required options: \fIchannels\fR.
Other possible options: Other possible options:
@ -103,97 +102,98 @@ Other possible options:
.TP .TP
.B cbdelay \fI<seconds> .B cbdelay \fI<seconds>
Number of seconds to wait before callback, when acting as Number of seconds to wait before callback, when acting as
dialin server with callback. Default is 2 seconds. dial-in server with callback. Default value is 2 seconds.
.TP .TP
.B cbnumber \fI<phone numbers> .B cbnumber \fI<phone numbers>
Comma seperated list of phone numbers for call back, when acting as List of phone numbers for callback, separated by commas, when acting as
dialin server with callback. dial-in server with callback.
.TP .TP
.B cbwait \fI<seconds> .B cbwait \fI<seconds>
Time to wait for a call back, before giving up. Default is 60 seconds. Time to wait for callback before giving up. Default value is 60 seconds.
.TP .TP
.B channels \fI<channel specification> .B channels \fI<channel specification>
Comma seperated list of b-channels or ranges to activate leased line mode. List of b-channels or ranges to activate leased line mode, separated by commas.
.TP .TP
.B cli \fI<telephon numbers> .B cli \fI<phone numbers>
A comma seperated list of numbers from where incoming calls will be accepted. List of numbers from which incoming calls will be accepted, separated by commas.
.TP .TP
.B clicb .B clicb
Enable callback mode. When option \fInumber\fR is present, call number Enable callback mode. When option \fInumber\fR is set, call number
and wait for callback. When option \fInumber\fR is not present, and wait for callback. When option \fInumber\fR is not set,
wait for incoming call, reject the call and call back. wait for incoming call, reject the call and call back.
This option is is optional if option \fIcbnumber\fR is present. This option is optional if the \fIcbnumber\fR option is set.
.TP .TP
.B connectdelay \fI<seconds> .B connectdelay \fI<seconds>
Number of seconds to wait after connecting is established, Number of seconds to wait after a connection is set up,
before PPP negotiation starts. Defaultvalue is 0 seconds. before PPP negotiation starts. Default value is 0 seconds.
This option is use full, when connecting with protocol \fImodem\fR. This option is useful when connecting with protocol \fImodem\fR.
Some internet access servers will hang up, if they get data immediatly Some Internet access servers will hang up if they receive data
after connection is established. immediatly after connection is established.
.TP .TP
.B controller \fI<controller specification> .B controller \fI<controller specification>
For point to multipoint \fI<controller specification\fR is only the For point-to-multipoint \fI<controller specification>\fR is only the
CAPI2.0 controller number , default is 1. CAPI 2.0 controller number, default is 1.
For point-to-point specify \fI<controller number>\fR,\fI<ddi>\fR,\fI<length of internal numbers\> For point-to-point, specify \fI<controller number>\fR,\fI<ddi>\fR,\fI<length of internal numbers\>
.TP .TP
.B dialmax \fI<times> .B dialmax \fI<times>
Maximum number of times the list of phone numbers is tried before give up. Maximum number of times the list of phone numbers is tried before giving up.
Default is 4. Default value is 4.
.TP .TP
.B dialtimeout \fI<seconds> .B dialtimeout \fI<seconds>
Time to wait until connection established or failed before giving up. Time to wait for the connection to be established or fail before giving up.
Default is 60 seconds. Default value is 60 seconds.
.TP .TP
.B inmsn \fI<msn> .B inmsn \fI<msn>
Phone umber to listen on for calls, when different from option \fImsn\fR. Phone number to monitor for calls, when different from option \fImsn\fR.
.TP .TP
.B msn \fI<msn> .B msn \fI<msn>
Phone umber from where to call out. Also used for incoming calls Phone number used to make outgoing calls. Also used for incoming calls
if option \fIinmsn\fR is not present. if option \fIinmsn\fR is not set.
.TP .TP
.B number \fI<phone numbers> .B number \fI<phone numbers>
Comma seperated list of phone numbers to call. List of phone numbers to call, separated by commas.
Every number in the list is called until a connection can be established. Every number in the list is called until a connection can be established.
When the end of the list is reached, the first number is called again. When the end of the list is reached, the first number is called again.
See option \fIdialmax\fR. See option \fIdialmax\fR.
.TP .TP
.B numberprefix \fI<prefix> .B numberprefix \fI<prefix>
phone number to dial to get outline access. For example. \fInumberprefix 0\fR. phone number to dial to access an outside line. For example, \fInumberprefix 0\fR.
.TP .TP
.B protocol \fIhdlc\fR | \fIx75\fR | \fIv42bis\fR | \fImodem\fR .B protocol \fIhdlc\fR | \fIx75\fR | \fIv42bis\fR | \fImodem\fR
ISDN protocol to use. With \fIhdlc\fR you need to add option \fIsync\fR ISDN protocol to use. With \fIhdlc\fR, the \fIsync\fR option
to the pppd. With \fIx75\fR,\fIv42bis\fR and \fImodem\fR option \fIsync\fR must be added to the pppd.
MUST NOT be present. Defaultvalue is \fIhdlc\fR. With \fIx75\fR, \fIv42bis\fR and \fImodem\fR, the \fIsync\fR option
MUST NOT be enabled. Default value is \fIhdlc\fR.
Not all controllers support \fIv42bis\fR and \fImodem\fR. Not all controllers support \fIv42bis\fR and \fImodem\fR.
Use capiinfo(8) to see the features your controller support. Use capiinfo(8) to view which features your controller supports.
.TP .TP
.B redialdelay \fI<seconds> .B redialdelay \fI<seconds>
Number of seconds to wait between redialing. Default is 5 seconds. Number of seconds to wait between redialing. Default value is 5 seconds.
.SH EXAMPLE FOR NORMAL DIAL OUT .SH EXAMPLE FOR NORMAL DIAL OUT
.LP .LP
Probably the most common use of pppd is to dial out to an ISP. This Probably the most common use of pppd is to dial out to an ISP. This
can be done with a command such as can be specified with a command like
.IP .IP
pppd call isp pppd call isp
.LP .LP
where the /etc/ppp/peers/isp file is set up by the system where the /etc/ppp/peers/isp file is set up by the system
administrator to contain something like this: administrator to resemble the following:
.IP .IP
sync sync
.br .br
@ -217,19 +217,19 @@ ipcp-accept-remote
.br .br
/dev/null /dev/null
.LP .LP
where the /etc/ppp/pap-secrets and /etc/ppp/chap-secrets file is set up by and where the files /etc/ppp/pap-secrets and /etc/ppp/chap-secrets are set up by
the system administrator to contain something like this: the system administrator to resemble the following:
.IP .IP
USERNAME * PASSWORD * USERNAME * PASSWORD *
.SH EXAMPLE FOR DIAL OUT WITH CALLBACK .SH EXAMPLE OF DIAL OUT WITH CALLBACK
.LP .LP
Dial out with callback can be done with a command such as Dial out with callback can be specified with a command like
.IP .IP
pppd call isp-callback pppd call isp-callback
.LP .LP
where the /etc/ppp/peers/isp-callback file is set up by the system where the /etc/ppp/peers/isp-callback file is set up by the system
administrator to contain something like this: administrator to resemble the following:
.IP .IP
sync sync
.br .br
@ -257,31 +257,31 @@ ipcp-accept-remote
.br .br
/dev/null /dev/null
.LP .LP
where the /etc/ppp/pap-secrets and /etc/ppp/chap-secrets file is set up by and where the files /etc/ppp/pap-secrets and /etc/ppp/chap-secrets are set up by
the system administrator to contain something like this: the system administrator to resemble the following:
.br .br
USERNAME * PASSWORD * USERNAME * PASSWORD *
.SH EXAMPLE FOR WAIT FOR DIAL IN WITHOUT CLI AUTHENTICATION .SH EXAMPLE OF WAIT FOR DIAL IN WITHOUT CLI AUTHENTICATION
.LP .LP
Wait for incoming calls, accept them according to options \fImsn\fR, Wait for incoming calls, accept them according to options \fImsn\fR,
\fIinmsn\fR, and \fIprotocol\fI. \fIinmsn\fR, and \fIprotocol\fI.
.LP .LP
Do not provide option \fIcli\fR to the capiplugin. Do not provide option \fIcli\fR to the capiplugin.
Start a pppd for every b channel. Start a pppd for every b channel.
Authorisation is made with PAP or CHAP and the ip numbers are assigned Authorization is checked using PAP or CHAP and the ip numbers are assigned
according to file /etc/ppp/pap-secrets or file /etc/ppp/chap-secrets. according to the /etc/ppp/pap-secrets or /etc/ppp/chap-secrets file.
Let's assume the server has ip number 192.168.0.1 and the clients should Assume that the server has ip number 192.168.0.1, the clients are
have the ip numbers starting at 192.168.0.2 and the hostname of the to be assigned the ip numbers starting from 192.168.0.2, and the hostname of the
server is \"dialinserver\". server is "dialinserver".
Add this two lines to the file /etc/inittab: Add these two lines to the /etc/inittab file:
.IP .IP
p0:23:respawn:/usr/sbin/pppd call incoming-noncli p0:23:respawn:/usr/sbin/pppd call incoming-noncli
.br .br
p1:23:respawn:/usr/sbin/pppd call incoming-noncli p1:23:respawn:/usr/sbin/pppd call incoming-noncli
.LP .LP
where the /etc/ppp/peers/incoming-noncli file is set up where the /etc/ppp/peers/incoming-noncli file is set up
to contain something like this: to resemble the following:
.IP .IP
sync sync
.br .br
@ -294,22 +294,22 @@ inmsn MSN
protocol hdlc protocol hdlc
192.168.0.1: 192.168.0.1:
.LP .LP
with the file /etc/ppp/pap-secrets and file /etc/ppp/chap-secrets file is set up with the files /etc/ppp/pap-secrets and /etc/ppp/chap-secrets set up
to contain something like this: to resemble the following:
.IP .IP
user1 dialinserver PASSWORD1 192.168.0.2 user1 dialinserver PASSWORD1 192.168.0.2
.br .br
user2 dialinserver PASSWORD2 192.168.0.3 user2 dialinserver PASSWORD2 192.168.0.3
.SH EXAMPLE FOR WAIT FOR DIAL IN WITH CLI AUTHENTICATION .SH EXAMPLE OF WAIT FOR DIAL IN WITH CLI AUTHENTICATION
.LP .LP
Wait for incoming calls, accept them according to options \fImsn\fR, Wait for incoming calls, accept them according to options \fImsn\fR,
\fIinmsn\fR, \fIcli\fR and \fIprotocol\fI. \fIinmsn\fR, \fIcli\fR and \fIprotocol\fI.
.LP .LP
Start a pppd for every client. Start a pppd for every client.
Let's assume the server has ip number 192.168.0.1 and the clients should Assume that the server has ip number 192.168.0.1 and the clients are to be
have the ip numbers starting at 192.168.0.2. assigned the ip numbers starting from 192.168.0.2.
Add this three lines to file /etc/inittab: Add these three lines to the /etc/inittab file:
.IP .IP
p0:23:respawn:/usr/sbin/pppd call incoming-cli cli 04711 192.168.0.1:192.168.0.2 p0:23:respawn:/usr/sbin/pppd call incoming-cli cli 04711 192.168.0.1:192.168.0.2
.br .br
@ -319,7 +319,7 @@ p2:23:respawn:/usr/sbin/pppd call incoming-cli cli 04713 192.168.0.1:192.168.0.4
.LP .LP
where the /etc/ppp/peers/incoming-cli file is set up where the /etc/ppp/peers/incoming-cli file is set up
to contain something like this: to resemble the following:
.IP .IP
sync sync
.br .br
@ -331,16 +331,16 @@ inmsn MSN
.br .br
protocol hdlc protocol hdlc
.SH EXAMPLE FOR WAIT FOR DIAL IN WITH CLI AUTHENTICATION AND CALLBACK .SH EXAMPLE OF WAIT FOR DIAL IN WITH CLI AUTHENTICATION AND CALLBACK
.LP .LP
Wait for incoming calls, accept them according to options \fImsn\fR, Wait for incoming calls, accept them according to options \fImsn\fR,
\fIinmsn\fR, \fIcli\fR and \fIprotocol\fI, reject incoming calls \fIinmsn\fR, \fIcli\fR and \fIprotocol\fI, reject incoming calls
and call back. and call back.
.LP .LP
.B start a pppd for every client Start a pppd for every client.
Let assume the server has ip numbers 192.168.0.1 and the clients should Assume that the server has ip number 192.168.0.1 and the clients are to be
have the ip numbers starting at 192.168.0.2. assigned the ip numbers starting from 192.168.0.2.
Add this three lines to the file /etc/inittab. Add these three lines to the /etc/inittab file.
.IP .IP
p0:23:respawn:/usr/sbin/pppd call incoming-cli cli 04711 cbnumber 4711 192.168.0.1:192.168.0.2 p0:23:respawn:/usr/sbin/pppd call incoming-cli cli 04711 cbnumber 4711 192.168.0.1:192.168.0.2
.br .br
@ -349,7 +349,7 @@ p1:23:respawn:/usr/sbin/pppd call incoming-cli cli 04712 cbnumber 4712 192.168.0
p2:23:respawn:/usr/sbin/pppd call incoming-cli cli 04713 cbnumber 4713 192.168.0.1:192.168.0.4 p2:23:respawn:/usr/sbin/pppd call incoming-cli cli 04713 cbnumber 4713 192.168.0.1:192.168.0.4
.LP .LP
where the /etc/ppp/peers/incoming-cli file is set up where the /etc/ppp/peers/incoming-cli file is set up
to contain something like this: to resemble the following:
.IP .IP
sync sync
.br .br
@ -361,16 +361,16 @@ inmsn MSN
.br .br
protocol hdlc protocol hdlc
.SH EXAMPLE FOR A LEASED LINE CONNECTION WITH HDLC .SH EXAMPLE OF A LEASED LINE CONNECTION WITH HDLC
.LP .LP
Let assume the server has ip numbers 192.168.0.1 and the peer has Assume that the server has ip number 192.168.0.1 and the peer has
the ip number 192.168.0.2. the ip number 192.168.0.2.
Add this line to the file /etc/inittab: Add this line to the /etc/inittab file:
.IP .IP
p0:23:respawn:/usr/sbin/pppd call leased-hdlc controller 1 channels 1 192.168.0.1:192.168.0.2 p0:23:respawn:/usr/sbin/pppd call leased-hdlc controller 1 channels 1 192.168.0.1:192.168.0.2
.LP .LP
where the /etc/ppp/peers/leased-hdlc file is set up where the /etc/ppp/peers/leased-hdlc file is set up
to contain something like this: to resemble the following:
.IP .IP
sync sync
.br .br
@ -394,20 +394,20 @@ plugin /etc/ppp/plugins/capiplugin.so
.br .br
protocol hdlc protocol hdlc
.SH EXAMPLE FOR A LEASED LINE CONNECTION WITH V42BIS .SH EXAMPLE OF A LEASED LINE CONNECTION WITH V42BIS
.LP .LP
Let assume the server has ip numbers 192.168.0.1 and the peer has Assume that the server has ip number 192.168.0.1 and the peer has
the ip number 192.168.0.2. the ip number 192.168.0.2.
Add this line to the file /etc/inittab for server 1 (192.168.0.1): Add this line to the /etc/inittab file for server 1 (192.168.0.1):
.IP .IP
p0:23:respawn:/usr/sbin/pppd call leased-v42bis controller 1 channels 1 192.168.0.1:192.168.0.2 p0:23:respawn:/usr/sbin/pppd call leased-v42bis controller 1 channels 1 192.168.0.1:192.168.0.2
.LP .LP
and this line to the file /etc/inittab for server 1 (192.168.0.2): and this line to the /etc/inittab file for server 1 (192.168.0.2):
.IP .IP
p0:23:respawn:/usr/sbin/pppd call leased-v42bis controller 1 channels p1 192.168.0.2:192.168.0.1 p0:23:respawn:/usr/sbin/pppd call leased-v42bis controller 1 channels p1 192.168.0.2:192.168.0.1
.LP .LP
where the /etc/ppp/peers/leased-v42bis file is set up where the /etc/ppp/peers/leased-v42bis file is set up
to contain something like this: to resemble the following:
.IP .IP
sync sync
.br .br
@ -433,21 +433,21 @@ protocol v42bis
.SH CAVEATS .SH CAVEATS
.LP .LP
Every pppd waiting for incoming calls can get an incoming call first. Every pppd awaiting incoming calls can receive an incoming call first.
So when you start two pppd listening on the same MSN, one with So when two pppds are started to monitor the same MSN, one with
CLI Authentication and the other not, the following can happen: CLI Authentication and the other without, the following can happen:
.IP .IP
The Client with the CLI specified to the first pppd calls, but the pppd The Client with the CLI specified to the first pppd calls, but the pppd
without option \fIcli\fR will get the call first and accepts the call. without the \fIcli\fR option receives the call first and accepts it.
.LP .LP
So if you want to mix CLI Authentication and PAP/CHAP Authentication To combine CLI Authentication and PAP/CHAP Authentication,
use one MSN for CLI authenticated calls and another for the PAP/CHAP use one MSN for CLI authenticated calls and another for the PAP/CHAP
authenticated calls. authenticated calls.
.SH DIAGNOSTICS .SH DIAGNOSTICS
.LP .LP
Messages are sent to the syslog daemon like pppd did usually, see Messages are sent to the syslog daemon just as in normal pppd operation;
pppd manual page. see the pppd manual page.
.SH SEE ALSO .SH SEE ALSO
pppd(8), capiinfo(8), capiinit(8), capictrl(8) pppd(8), capiinfo(8), capiinit(8), capictrl(8)