We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

PAP Connections Setup

bross073097
bross073097 asked
on
Medium Priority
353 Views
Last Modified: 2010-05-18
I have been trying to get Linux 2.0.28 to allow PAP dialin connections.

Currently on one server I hand out a script for the login. I want to setup another server to accept PAP connections for WEBTV. How do I get PAP to start after the modems have connected and user the /etc/passwd file to get the info.

I don't know how to do this at all. Have worked with a lot of different things but still can't get a PAP connection.

Any detaiiled instruction on how to do this would be great.

Thanks
Bob Ross
Comment
Watch Question

Commented:
Hi Bob,

I recently solved the same problem. To accept PPP logins with PAP authentication, you will need to install mgetty+sendfax, which is (among other places) available from ftp://ftp.buoy.com/pub/isp/mgetty1.1.9-Aug17.tar.gz. Edit the policy.h file to match your system and add the -DAUTO_PPP flag in the Makefile. Make sure your pppd supports shadow passwords, if you use them. Remove the /etc/ppp/pap-secrets file if present, and put '-detach' in your /etc/ppp/options file. Then, make an options.ttyXX file for every tty you want to provide ppp on, stating the IP of your host and the IP you want to assign to that particular port, in the form hostip:dialinip. Edit you /usr/local/etc/mgetty+sendfax/login.config file, and make sure the following line is present:

/AutoPPP/       -       -       /usr/sbin/pppd auth -chap +pap login modem crtscts lock

This enables mgetty to auto-sense PPP connects, and start your pppd with the apropriate options. Last but not least, put mgetty in your /etc/inittab for every tty you want mgetty to listen to.

Good luck,

Alex Bik
(alex@ddsw.nl)

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Sorry I didn't get back to you sooner, I almost missed the message.

This seemed to work. I will have it test by webtv next week.

Do I let the password file default to the settings the server puts in or do i need to have something else beside a /bin/bash access.

Thanks again.
Bob Ross
bross@kingman.com "If you would like to send mail"

Commented:
Hi,

You don't have to change anything to your passwd and/or shadow files..

Regards,

Alex

Author

Commented:
So far so good with what I have done so far. I am having a problem with the login being able to get out. When a standard login dilas in they go anywhere. With the PAP they are not going anywhere. I do a "route" command and see the login listed.

Any ideas what might be the hold up.

Thanks
Bob

Author

Commented:
I got it. I had to add the defaultroute IP.AD.DR.ESS to the line in the login.config file.

Thanks
Bob ross

Author

Commented:
Do you have any Idea why I get the error on the screen

mgetty FATAL: C## cannot get TIO

Doesn't seem to do much but have been getting the error.

Thanks
Bob Ross

Commented:
Same here. Every now and then the error message apears.
It has something to do with Mgetty not being able to communicate with your modem properly. (because your modem is busy doing other things). I get the error every time someone logs off.
Just ignore it or, if it bugs you, set the mgetty debug level a bit lower.

Author

Commented:
OK, thanks. That's what I thought.

Thanks
Bob

Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.