Public domain
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
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
d0:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyS0
/AutoPPP/ - a_ppp /usr/sbin/pppd call dialin
debug 4
fax-id 49 115 xxxxxxxx
speed 38400
rings 3
# client server secret IP addresses
pejman * 123456 172.16.10.22
telinit q
BY: Pejman Moghadam
TAG: mgetty, dialin
DATE: 2012-05-08 11:38:43