Thanks to Alireza Yazdani for this driver
Public domain
cd /usr/src/
wget -c "http://pmoghadam.com/homepage/Pages/Deposit/Drivers/mxdrv_5.5.15.tgz"
tar xf mxdrv_5.5.15.tgz
cd /usr/src/mxdrv/
make clean
make
make install
/usr/lib/moxa/mxmknod 31 37 1
modprobe moxa
/usr/lib/moxa/moxaload -y
reboot
/etc/radiusclient/servers
localhost testing123
/etc/radiusclient/radiusclient.conf
authserver localhost
acctserver localhost
/etc/radiusclient/dictionary
ATTRIBUTE CHAP-Password 3 string
ATTRIBUTE CHAP-Challenge 60 string
ATTRIBUTE Acct-Input-Packets 47 integer
ATTRIBUTE Acct-Output-Packets 48 integer
cd /usr/src
wget ftp://mgetty.greenie.net/pub/mgetty/source/1.1/mgetty1.1.36-Jun15.tar.gz
tar -zxvf mgetty1.1.36-Jun15.tar.gz
cd mgetty-1.1.36/
cp policy.h-dist policy.h
.
.
#define AUTO_PPP
#define CNDFILE "dialin.config"
#define SYSLOG
Just check for installation DIRs
groupadd modem
useradd fax
make
make install
mkdir -p /etc/ppp/peers
auth
-chap
+pap
asyncmap 0
netmask 255.255.255.0
ms-dns 172.16.10.50
proxyarp
lock
crtscts
modem
mtu 1500
debug
10.0.0.2:
plugin radius.so
plugin radattr.so
A11:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA11
A12:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA12
A13:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA13
A14:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA14
A15:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA15
A16:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA16
A17:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA17
A18:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA18
A21:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA21
A22:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA22
A23:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA23
A24:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA24
A25:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA25
A26:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA26
A27:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA27
A28:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA28
A31:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA31
A32:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA32
A33:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA33
A34:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA34
A35:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA35
A36:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA36
A37:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA37
A38:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA38
A41:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA41
A42:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA42
A43:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA43
A44:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA44
A45:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA45
A46:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA46
A47:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA47
A48:12345:respawn:/usr/local/sbin/mgetty -s 57600 -x 3 ttyA48
/AutoPPP/ - a_ppp /usr/sbin/pppd call dialin
rings 3
telinit q
BY: Pejman Moghadam
TAG: moxa, mgetty, radiusclient, dialin
DATE: 2008-01-23 16:03:22