Subject: Re: ppp server
To: Pran Joseph <pran@nice.ncore.soft.net>
From: John Nemeth <jnemeth@cue.bc.ca>
List: port-i386
Date: 07/11/1998 18:18:04
On Jul 8,  6:50pm, Pran Joseph wrote:
}  
} Any one know how to set up a ppp server using netbsd 1.3. 
} 
} Can I set the ppp server to assign dynamic address to clients. 

     This is fairly easy to do.  The catch is if you need to account
for usage or limit their time.  In that case, you will have to write
some custom software, or buy a commercial package.  Anyways, to assign
dynamic addresses, simply create a bunch of files in /etc/ppp (one for
each tty that will be used) with the name, options.<tty>, of the form:

<your hostname>:<remote address>

You'll also need another file called options, to set overall
options...

% ls /etc/ppp
                options.tty05   options.tty0a   options.tty0f
options         options.tty06   options.tty0b   options.tty10
options.tty02   options.tty07   options.tty0c   options.tty11
options.tty03   options.tty08   options.tty0d   pap-secrets
options.tty04   options.tty09   options.tty0e

% cat /etc/ppp/options.tty02
test2:ppp0

% cat /etc/ppp/options
passive
lock
proxyarp
crtscts
modem
silent
-detach
ms-dns x.x.x.x
ms-dns x.x.x.x
mtu 1500
netmask 255.255.255.255

     If you want to support PAP connections (Win95 and other modern
PPP clients) then get modemd from the packages collection and create a
config file for it like this:

% cat /etc/modemcap
ppp-login:\
	br#38400:bt#8:hf:pp=/usr/sbin/pppd auth -chap +pap login:

You will need an entry in /etc/ppp/pap-secrets of the form

<user> <your hostname> "" *

for each user allowed to login using PAP (the actual password will be
gotten from /etc/master.passwd.  Finally, you will need entries in
/etc/ttys of the form:

% grep tty02 /etc/ttys
tty02	"/usr/pkg/sbin/modemd ppp-login"	unknown on rtscts

     The above covers the basics of setting up a PPP server.  For more
information, see the man pages for pppd(8), modemd(8), modemcap(5),
and ttys(5).  You may also find helpful information in the "HOW-TO's"
of various versions of UNIX.  Anything beyond this is going to require
some research and/or custom coding on your part.

}-- End of excerpt from Pran Joseph