1) Edit inittab and add following line
s1:2345:respawn:/usr/sbin/mgetty ttyS0
2) Change pppd to setuid
chmod 4755 /usr/sbin/pppd
3) Create /etc/ppp/pap-secrets file with this content
#user server secret addrs
* * """" *
ullas * - *
root * - *
bin * - *
deamon * - *
4) Create file /etc/ppp/options.ttyS0
192.168.0.1:192.168.0.100
5) Create file /etc/ppp/options.server
-detach
asyncmap 0
modem
crtscts
lock
require-pap
refuse-chap
login
proxyarp
ms-dns 192.168.0.1
6) Check /etc/pam.d/login and make sure the following line is commented out:
auth required pam_dialup.so
insert a # in front of the line to comment out.
7) In /etc/mgetty+sendfax/login.config add following file.
/AutoPPP/ - @ /usr/sbin/pppd file /etc/ppp/options.server
8) In /etc/bashrc file add the following line
alias ppp="exec /usr/sbin/pppd -detach"
9) Now create a normal user as follows.
elango:x:522:100:Elangovan:/tmp:/etc/ppp/ppplogin
10) Now create /etc/ppp/ppplogin
#!/bin/sh
mesg -n
stty -echo
exec /usr/sbin/pppd crtscts modem passive auth
Labels
- news (101)
- Linux (72)
- tips (36)
- ubuntu (32)
- hardware (24)
- videos (24)
- howtos (21)
- kde (20)
- open source (20)
- solaris (18)
- solaris interview questions (18)
- external links (10)
- fedora (10)
- windows (10)
- debian (8)
- kernel (8)
- solaris interview questions and answers (8)
- MCSE Videos (6)
- commands (6)
- sun (6)
- linus torvalds (5)
- Sun Solaris 10 CBT (4)
- network administration (4)
- web design (4)
- solaris-express (3)
- backup (2)
- virtualization (1)
PPP Server
Labels: Linux