mirror of https://github.com/tLDP/LDP
filename change
This commit is contained in:
parent
68bcae0d19
commit
3a358961fb
|
@ -3,8 +3,8 @@
|
|||
<ARTICLE>
|
||||
|
||||
<title>call-back mini HOWTO
|
||||
<author>by Pawel Skonecki, <tt><htmlurl url="mailto:stona@fizyka.umcs.lublin.pl" name="stona@fizyka.umcs.lublin.pl"></tt>
|
||||
<date>v1.1a, June 2000</date>
|
||||
<author>by Pawel Skonecki, <tt><htmlurl url="mailto:stona@fizyka.umcs.lublin.pl" name="stona@kft.umcs.lublin.pl"></tt>
|
||||
<date>v2.0a, Sept 2000</date>
|
||||
|
||||
<abstract>
|
||||
This document describes how to set up call-back by using the Linux
|
||||
|
@ -18,13 +18,12 @@ system and modem. I would like to thank Anna for her patience.
|
|||
<SECT1>OPINION
|
||||
|
||||
<P>
|
||||
I'll will be waiting for all opinions about this document. I have tried
|
||||
to gather information as complete as possible. Tell me when your find
|
||||
any mistakes. I'll be grateful to people who will send me any suggestions
|
||||
or corrections. Their contributions will make this document better.
|
||||
I don't mind answering your questions but I'd rather you read the
|
||||
whole article first.
|
||||
|
||||
I will be waiting for all opinions about this document. I have
|
||||
tried to gather information as complete as possible. Tell me when your
|
||||
find any mistakes. I'll be grateful to people who will send me any
|
||||
suggestions or corrections. Their contributions will make this
|
||||
document better. I don't mind answering your questions but I'd rather
|
||||
you read the whole article first.
|
||||
</SECT1>
|
||||
|
||||
<SECT1>PUBLISHING
|
||||
|
@ -44,23 +43,35 @@ This document is free.
|
|||
<SECT1>PART I: Net at home ?
|
||||
|
||||
<P>
|
||||
Most of us use the Internet in a place of work. However we offen need
|
||||
the net at home or outside the place of work. It may be possible that
|
||||
the work from home is cheaper then from a company building. I think
|
||||
that the best solution is to install call-back software on the Linux
|
||||
server. Call-back makes it possible to re-call index number at the
|
||||
cost of the company. I'll try to present how it works. An entitled
|
||||
person calls modem is varied for the first time in Linux server. Then
|
||||
on the user's side the "hang up modem" is switched on. At the same
|
||||
time Linux calls the user. User is verified again. We have connection
|
||||
and the server is charged. The user pays only for the initiation of
|
||||
connection. The double verification and extra options in the call-back
|
||||
program unable the unsuitable persons to charge our bill. We can restrict
|
||||
the access to the connection only to corporation network or Internet.
|
||||
Call-back is very flexible. Below, I'll try to present the configuration
|
||||
of a call-back server on Linux system and I'll show you how to set
|
||||
up your computer for re-calling the connection.
|
||||
|
||||
Most of us use the Internet in a place of work. However we offen need
|
||||
the net at home or outside the place of work. It may be possible that
|
||||
the work from home is cheaper then from a company building. I think
|
||||
that the best solution is to install call-back software on the Linux
|
||||
server. Call-back makes it possible to re-call index number at the
|
||||
cost of the company. I'll try to present how it works. An entitled
|
||||
person who calls the modem is varied for the first time in Linux server.
|
||||
Then on the user's side the "hang up modem" is switched on. At the same
|
||||
time Linux calls the user. User is verified again. We have connection
|
||||
and the server is charged. The user pays only for the initiation of the
|
||||
connection. The double verification and extra options in the call-back
|
||||
program unable the unsuitable persons to charge our bill. We can
|
||||
restrict the access to the connection only to corporation network or the
|
||||
Internet. Call-back is very flexible. Below, I'll try to present the
|
||||
configuration of a call-back server on Linux system and I'll show you
|
||||
how to set up your computer for re-calling the connection. I don't
|
||||
describe configuration of ISDN call-back because I don't use ISDN in
|
||||
my connection to the Internet. If you set call-back on ISDN send me
|
||||
your configuration.
|
||||
I had some problem when I changed my kernel from 2.2.x to 2.4.x. I will
|
||||
describe new option for a new kernel. Remember that if you change your
|
||||
kernel for high version you will have to change pppd, too.
|
||||
I don't create a new section for description of new possibility in kernels
|
||||
2.4.x but I write a new configurations in old section.
|
||||
I would like to apologise to people who asked me about options for new
|
||||
kernels.
|
||||
I didn't have time to write a new version of HOW-TO. I have changed my
|
||||
work and place of liveing. Sorry.
|
||||
|
||||
</SECT1>
|
||||
|
||||
<SECT1>PART II: The first steps with modem.
|
||||
|
@ -78,17 +89,16 @@ computer
|
|||
<item>The internal modem with ISA slot is better then the are with PCI
|
||||
slot (you can use your PCI slot for something different)
|
||||
|
||||
<item>Don't use Plug&Play modem. If you have it set off, Plug&Play options
|
||||
and set up modem on free com (read Plug&Play-HOWTO).
|
||||
<item>Don't use Plug&Play modem. If you have it set Plug&Play
|
||||
options off and set up modem on free com (read Plug&Play-HOW-TO).
|
||||
|
||||
</itemize>
|
||||
|
||||
<P>
|
||||
When we have the suitable modem we have to set it up in our system.
|
||||
We have to check on which com our modem is. Then we have to make a
|
||||
symbolic link to this hardware and /dev/modem. For example, if we
|
||||
have the modem for the 2nd com we write:
|
||||
|
||||
When we have the suitable modem we have to set it up in our system.
|
||||
We have to check on which com our modem is. Then we have to make a
|
||||
symbolic link to this hardware and /dev/modem. For example, if we have
|
||||
the modem for the 2nd com we write:
|
||||
<VERB>
|
||||
ln -s /dev/cua1 /dev/modem
|
||||
</VERB>
|
||||
|
@ -129,29 +139,74 @@ Now, we check our configuration using the program minicom.
|
|||
<SECT1>PART III Call Linux
|
||||
|
||||
<P>
|
||||
The first step to make the call-back on Linux accessible is to set
|
||||
up a suitable parameter in kernel. Then we check whether our kernel
|
||||
serves the protocol ppp. If you don't have ppp in your kernel or in
|
||||
module you will have to compile your kernel and add ppp. You will
|
||||
find more information in Kernel-HOWTO. OK. We have a good kernel.
|
||||
Now, we have to set up software to our system. The call-back program
|
||||
is a part of mgetty-sendfax and ppp. You will find it all in your
|
||||
distribution. Because call-back system we have double verification
|
||||
and we create a user who will be running ppp on the side of server.
|
||||
The first step to make the call-back on Linux accessible is to set up
|
||||
a suitable parameters in kernel. Then we check whether our kernel
|
||||
serves the protocol ppp. If you don't have ppp in your kernel or in
|
||||
module you will have to compile your kernel and add ppp. You will find
|
||||
more information in Kernel-HOWTO.In the kernels 2.4.x series you have to
|
||||
mark follow options:
|
||||
|
||||
CONFIG_PPP=m
|
||||
# CONFIG_PPP_MULTILINK is not set
|
||||
CONFIG_PPP_ASYNC=m
|
||||
CONFIG_PPP_SYNC_TTY=m
|
||||
CONFIG_PPP_DEFLATE=m
|
||||
CONFIG_PPP_BSDCOMP=m
|
||||
|
||||
After compilation you have to add some lines for /etc/modules.conf
|
||||
|
||||
|
||||
alias /dev/ppp ppp_generic
|
||||
alias char-major-108 ppp_generic
|
||||
alias tty-ldisc-3 ppp_async
|
||||
alias tty-ldisc-14 ppp_synctty
|
||||
alias ppp-compress-21 bsd_comp
|
||||
alias ppp-compress-24 ppp_deflate
|
||||
alias ppp-compress-26 ppp_deflate
|
||||
|
||||
You can't forget that you need new pppd demon for kernels 2.4.x (for me
|
||||
it was ppp-2.4.0).
|
||||
|
||||
|
||||
OK. We have a good kernel. Now, we have to set up the software to our system.
|
||||
The call-back program is a part of mgetty-sendfax and ppp. You will
|
||||
find it all in your distribution.
|
||||
Because the call-back system has double verification we create a
|
||||
user who will be running ppp on the side of server.
|
||||
In /etc/passwd you have new user and you have to change their shall.
|
||||
|
||||
|
||||
<VERB>
|
||||
pppuser:klkIOM89mn65H:230:PPP Dialin:/home/pppuser:/etc/ppp/ppplogin
|
||||
</VERB>
|
||||
|
||||
Then change the password. We have to add information abut password in
|
||||
the file <TT>/etc/ppp/pap-secrets</TT> (more in man pppd)
|
||||
I changed the above line for kernel 2.4.x this line in /etc/passwd (I use shadow
|
||||
and you don't see password)
|
||||
|
||||
<VERB>
|
||||
pppuser:x:6778:44:PPP Dialin:/etc/ppp/:/usr/sbin/pppd
|
||||
</VERB>
|
||||
|
||||
I don't use a special script for the running of pppd but I run it directly
|
||||
while login pppuser.
|
||||
|
||||
Then change the password. We have to add information abut password in
|
||||
the file <TT>/etc/ppp/pap-secrets</TT> (more in man pppd)
|
||||
|
||||
|
||||
<VERB>
|
||||
pppuser * password_for_pppuser *
|
||||
</VERB>
|
||||
|
||||
In the 2.4.x kernels you have to write in <TT>/etc/ppp/pap-secrets</TT>
|
||||
|
||||
|
||||
<VERB>
|
||||
* * "" *
|
||||
</VERB>
|
||||
|
||||
This user doesn't have a usual shell but a file <TT>/etc/ppp/ppplogin</TT>.
|
||||
We have to make it ourselves. for example <TT>vi /etc/ppp/ppplogin</TT> and
|
||||
We have to make it ourselves. For example <TT>vi /etc/ppp/ppplogin</TT> and
|
||||
we type:
|
||||
|
||||
<VERB>
|
||||
|
@ -177,6 +232,26 @@ crtscts
|
|||
|
||||
modem
|
||||
</VERB>
|
||||
|
||||
If it's 2.4.x kernel you write in <TT>/etc/ppp/options</TT>
|
||||
|
||||
<VERB>
|
||||
-detach
|
||||
asyncmap 0
|
||||
modem
|
||||
crtscts
|
||||
proxyarp
|
||||
lock
|
||||
require-pap
|
||||
refuse-chap
|
||||
ms-dns 192.168.1.1
|
||||
</VERB>
|
||||
|
||||
The last 3rd option is very important. You use only PAP authentication
|
||||
,require-pap. Don't use chap authentication, refuse-chap.
|
||||
You can use ms-dns, If you have M$ Windows system clients you can send
|
||||
them information about DNS server.
|
||||
|
||||
|
||||
Proxyarp is the most important from the above options, because you
|
||||
can go to Internet by the modem in the server. The remaining options
|
||||
|
@ -189,13 +264,20 @@ and we add it's to modem on the 2en com.
|
|||
<VERB>
|
||||
s1:2345:respawn:/sbin/mgetty ttyS1 -D /dev/ttyS1 vt100
|
||||
</VERB>
|
||||
or
|
||||
<VERB>
|
||||
s1:2345:respawn:/sbin/mgetty ttyS1 -s 115200 -D /dev/ttyS1
|
||||
</VERB>
|
||||
|
||||
For the 1st com line looks as follows:
|
||||
|
||||
<VERB>
|
||||
s0:2345:respawn:/sbin/mgetty ttyS1 -D /dev/ttyS1 vt100
|
||||
</VERB>
|
||||
|
||||
or
|
||||
<VERB>
|
||||
s0:2345:respawn:/sbin/mgetty ttyS0 -s 115200 -D /dev/ttyS0
|
||||
</VERB>
|
||||
We make <TT>init q</TT>. If we don't have information about any mistakes in
|
||||
logs we go to the next step. We come back to directory <TT>/etc/ppp</TT> and
|
||||
create <TT>options.ttyS1</TT> (for modem com1 <TT>options.ttyS0</TT>)
|
||||
|
@ -217,6 +299,10 @@ We have done a lot work so far. Now, we check the file
|
|||
/AutoPPP/ - a_ppp /usr/sbin/pppd auth -chap +pap login detach kdebug 7 debug
|
||||
</VERB>
|
||||
|
||||
If you have 2.4.x kernel you have write in this file:
|
||||
<VERB>
|
||||
/AutoPPP/ - a_ppp /usr/sbin/pppd file /etc/ppp/options
|
||||
</VERB>
|
||||
The remaining lines can be marked <TT>#</TT>.
|
||||
|
||||
<P>
|
||||
|
@ -265,7 +351,7 @@ write the numbers we have connected earlier. In order to do it we
|
|||
edit <TT>/etc/mgetty+sendfax/login.conf</TT> and add line:
|
||||
|
||||
<VERB>
|
||||
call - - /usr/sbin/callback - S 123456
|
||||
call - - /usr/sbin/callback -S 123456
|
||||
</VERB>
|
||||
|
||||
where call is a pseudo-user needed to initiate the connection. The
|
||||
|
@ -535,14 +621,15 @@ endproc
|
|||
<SECT1>PART V Summary
|
||||
|
||||
<P>
|
||||
The Configuration of call-back is not complicated. The most important
|
||||
thing is a proper arrangement of ppp server on Linux. I don't know
|
||||
a better way of setting up an access - server. The configuration presented
|
||||
above is a result of numerous attempts and it can be done in a different
|
||||
way. That's way I suggest reading all documents concerning this issue
|
||||
man pppd, NET4-HOWTO, PPP-HOWTO.
|
||||
The Configuration of call-back is not complicated. The most important
|
||||
thing is a proper arrangement of ppp server on Linux. I don't know a
|
||||
better way of setting up an access - server. The configuration
|
||||
presented above is a result of numerous attempts and it can be done in
|
||||
a different way. That's way I suggest reading all the documents concerning
|
||||
the issue man pppd, NET4-HOWTO, PPP-HOWTO.
|
||||
|
||||
</SECT1>
|
||||
</SECT>
|
||||
|
||||
</ARTICLE>
|
||||
|
Loading…
Reference in New Issue