Subject: dial-in server
To: None <,>
From: mel kravitz <>
List: netbsd-users
Date: 02/24/2001 19:37:26
mgetty+sendfax in /usr/pkgsrc/comms should be used with kernel pppd to
set up a simple dial-in server.
Is your 4 port serial card supported in NetBSD? Steps are:
1) config a kernel with multiport card support.
2) set up dial-out scripts using this cards tty* ports.-test your
3) install mgetty program from /pkgsrc, edit
/usr/pkg/libexec/mgetty+sendfax/login.config to allow autoPPP(enable
this feature -remove #)
4) edit /etc/ttys  add a line such as: ttyC0 "/usr/pkg/sbin/mgetty -s
57600 " dialup on insecure
-one line for each port on serial card , ttyC1,ttyC2, and ttyC3.
5)set up pap-secrets file in /etc/ppp directory file should be of the
username       *         userpasswd          *
chmod 600 pap-secrets  - this file should not be world readable.
6) see man pppd for /etc/ppp/options file setup for dialin use, my file
has :
lock, proxyarp, debug, asyncmap 0 ,moden ,and crtscts-proxyarp to allow
dialin users to get ethernet service to the firewall machine.
7) addusers to dialin machine use useradd command.
only users who have been added to the dialin box and have corresponding
entries in /etc/ppp/pap-secrets will be allowed to dial-in.
8) add options.ttyC1-C4 files to /etc/ppp directory. Each (4 files in
your case)contains one line:
local machine ip: remote machine ip
each 'modem' will be assigned the remote ip address as will each dialin
user.-That's it