linux accepting PAP dail up connections

Using slackware linux 2.0.x., boca 16 port serial card. i would like to have the linux box accept calls via modem, do PAP auth and then deliver PPP. basically for a small isp kind of environment. help would be appreciated. thanks
rayjAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sauronCommented:
You need to alter your /etc/inittab. Normally, you create a user account, with the appropriate pppd command as a shell, and then alter /etc/inittab to run a getty process on ttyS1 (or whatever serial line your modem is connected to). Then, when someone dials in, they get a login, and after succesful login, pppd start up.

In your case, you don't want to use a getty first, so you probably want to alter /etc/inittab so that a pppd process is attached to ttyS1 (or whatever tty is relevant to you). You should possibly add pppd to /etc/shells, though this shouldn't be important. So, you then need to sort out your pap-secrets file, and start pppd with the +pap option to enable pap authentication.


Having done all this, if you dial into your box with a serial comms program, from another machine, you should see ascii garbage coming down the link, which should be the PPP packets.

That's it, as far as I understand, I hope this sorts it for you.
0
rayjAuthor Commented:
thanks for your response. i was kind of hoping to get an answer like enter "xxxx" in the inittab file, edit the user profile with "xxx", that kind of stuff. if you could be more specific as to what should be entered in these files and the like, it would be appreciated. also, what are the specifics on the PAP secrets file. im not familar with the parms of it. the serial comms package for dial in would be win95 dial up networking. i would also need to assign an IP address to that caller and the dns used on our end, which is passes as part of PAP

thanks again



thanks


0
cedricCommented:
Hy,
I'm using a similar config as yours, here are my setup files...
1- in the /usr/local/etc/mgetty+sendfax/login.conf
or you can adapt this one to your ppp-dialin script.

/AutoPPP/ -     a_ppp   /usr/sbin/pppd -chap +pap login -detach modem crtscts lock 192.168.0.2:192.168.0.3 proxyarp
2- my /etc/ppp/options
-detach
modem
crtscts
lock
192.168.0.2:192.168.0.3
you can also have a "spool" of ip adress by specifying options.ttyXXXX

3- thepap secret file
# client        server  secret                  IP addresses
*               *       ''
because you are using the "login" fonctionnality of pppd.

Here it is. Just ask if you want some more.


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rayjAuthor Commented:
thanks cedric, im going to try this in a day or so. can i contact you by email in the event i have difficulty. it would be much appreciated. i also am not real familiar with tha gettys, or pap secrets. so it would be great help if i can just email you when im trying to get this going.

thanks again

ray@havenet.com


0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.