Pejman Moghadam / Slackware

Slackware 12.2 - Dial-in server

Public domain


mgetty installation

cd /usr/src
wget http://pmoghadam.com/homepage/Pages/Deposit/Source-packages/mgetty1.1.37-Jun05.tar.gz
tar xf mgetty1.1.37-Jun05.tar.gz
cd mgetty-1.1.37/
cp policy.h-dist policy.h
sed -i \
  -e 's,/\* #define AUTO_PPP \*/,#define AUTO_PPP,' \
  -e 's,/\* #define CNDFILE \"dialin.config\" \*/,#define CNDFILE \"dialin.config\",' \
  -e 's,/\* #define SYSLOG \*/,#define SYSLOG,' \
  policy.h

# Check Makefile for installation directories

groupadd modem
useradd fax
make
make install
mkdir -p /etc/ppp/peers

/etc/ppp/peers/dialin

auth
-chap
+pap
asyncmap 0
netmask 255.255.255.0
ms-dns 8.8.8.8
proxyarp
lock
crtscts
modem
mtu 1500
debug
172.16.17.8:172.16.17.9
#10.0.0.2:
#plugin radius.so
#plugin radattr.so

Add to /etc/inittab

d0:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyS0

Add to /usr/local/etc/mgetty+sendfax/login.config

/AutoPPP/ - a_ppp /usr/sbin/pppd call dialin

/usr/local/etc/mgetty+sendfax/mgetty.config

debug 4
fax-id 49 115 xxxxxxxx
speed 38400
rings 3

Add to /etc/ppp/pap-secrets

# client server secret  IP addresses
pejman   *      123456  172.16.10.22

Start mgetty

telinit q

BY: Pejman Moghadam
TAG: mgetty, dialin
DATE: 2012-05-08 11:38:43


Pejman Moghadam / Slackware [ TXT ]