LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-31-2004, 02:55 PM   #1
Nodren
LQ Newbie
 
Registered: Aug 2004
Distribution: Ubuntu 5.04
Posts: 21

Rep: Reputation: 15
dialup authentication


I have been attempting to go online with linux, im using fedora core 1, i am trying to dial using the redhat network config, and i have so far managed to get my modem worked, connet and all that(heres a copy of my logs)

Quote:
Aug 31 01:04:27 localhost ifup-ppp: pppd started for NetPTC on /dev/modem at 115200
Aug 31 01:04:27 localhost pppd[5630]: pppd 2.4.1 started by root, uid 0
Aug 31 01:04:28 localhost wvdial[5643]: WvDial: Internet dialer version 1.53
Aug 31 01:04:28 localhost wvdial[5643]: Initializing modem.
Aug 31 01:04:28 localhost wvdial[5643]: Sending: ATZ
Aug 31 01:04:28 localhost wvdial[5643]: ATZ
Aug 31 01:04:28 localhost wvdial[5643]: OK
Aug 31 01:04:28 localhost wvdial[5643]: Sending: ATM1L1
Aug 31 01:04:28 localhost wvdial[5643]: ATM1L1
Aug 31 01:04:28 localhost wvdial[5643]: OK
Aug 31 01:04:28 localhost wvdial[5643]: Modem initialized.
Aug 31 01:04:28 localhost wvdial[5643]: Sending: ATDT8684000
Aug 31 01:04:28 localhost wvdial[5643]: Waiting for carrier.
Aug 31 01:04:28 localhost wvdial[5643]: ATDT8684000
Aug 31 01:05:26 localhost wvdial[5643]: CONNECT 45333 NoEC
Aug 31 01:05:26 localhost wvdial[5643]: Carrier detected. Chatmode finished.
Aug 31 01:05:26 localhost pppd[5630]: Serial connection established.
Aug 31 01:05:26 localhost pppd[5630]: Using interface ppp0
Aug 31 01:05:26 localhost pppd[5630]: Connect: ppp0 <--> /dev/modem
Aug 31 01:05:58 localhost pppd[5630]: LCP: timeout sending Config-Requests
Aug 31 01:05:58 localhost pppd[5630]: Connection terminated.
Aug 31 01:05:58 localhost pppd[5630]: Hangup (SIGHUP)
Aug 31 01:05:58 localhost pppd[5630]: Exit.
unfortunately i cannot figure out why it times out, i have checked up on many ppp howto's, im beyond the scope of a few of them, ive looked into pap and chap authentication(i know for a fact i use PAP authentication and no compression) the problem is the guides tell me of a debug command to which typing "debug" or "./debug" does nothing nor do anywhere in the those tutorials do they really explain what to do even if the debug command worked.

if anyone has any idea where i should go or what i should do i'd appreciate the help.
 
Old 08-31-2004, 03:17 PM   #2
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: SuSE 8.2, Slackware current, OpenBSD 3.5-3.8, Fedora Core 2
Posts: 400

Rep: Reputation: 30
For some reason, wvdial flaked out on me as well. Although the crazy thing was that I had it working for like 3 or 4 months just fine. Then one day I went to connect via wvdial and it did exactly what you describe. And it's done that ever since. I used kppp for a while, but then decided to figure out how to use pppd directly, since both wvdial and kppp use pppd.

Honestly, I don't have any advice on how to correct wvdial since I never figured out what the problem was (or what had changed). If you'd like though, I can share with you how I set up something similar using pppd.
 
Old 08-31-2004, 03:19 PM   #3
Nodren
LQ Newbie
 
Registered: Aug 2004
Distribution: Ubuntu 5.04
Posts: 21

Original Poster
Rep: Reputation: 15
please do any help is welcomed
 
Old 08-31-2004, 03:37 PM   #4
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: SuSE 8.2, Slackware current, OpenBSD 3.5-3.8, Fedora Core 2
Posts: 400

Rep: Reputation: 30
OK. In your /etc/ppp/peers directory, you need to set up two files. Since my provider is Verizon, I have the files 'verizon' and 'verizonchat'. Inside 'verizon' is the following:


115200
-detach
/dev/modem
crtscts
defaultroute
usepeerdns
user <username>
connect '/usr/sbin/chat -v -t3 -f /etc/ppp/peers/verizonchat'


The things you'll want to customize are the 115200 (max baud rate), /dev/modem (you can also use the direct serial port such as /dev/ttyS0), and <username>, which is your login name.

Inside 'verizonchat' is the following:


'' AT OK ATZ OK AT$QCMDR=3 OK ATDTxxxyyyzzzz CONNECT ''

(where '' represents two singles quotes, not a double quote)

In this file, you'll want to supply your dialup number xxxyyyzzzz as well as any modem start-up commands you might have. One thing to note about this is that everything is in request-response pairs -- AT OK, ATZ OK, etc. The AT$QCMDR is specific to my modem, you probably won't need it.

Once you finished creating these two files for your ISP (and you can call these two whatever you want, BTW), you'll need to set up your CHAP/PAP authentication (which it sounds like you may have already done). In case you haven't, edit either the chap-secrets or pap-secrets file in /etc/ppp to include the following line

"<username>" * "<password>"

(where " is a double quote, not a single quote)

Obviously you'll need to replace <username> with your username and <password> with your password.

OK, now that you have all of that done, to connect it is very simple. As root, issue

pppd call verizon

Or, substitute whatever the name for your main file is that you created.

One other thing you may need to do (I had to do this) is to add at least one of your DNS servers to the /etc/resolv.conf file in order to get DNS resolution. You can do this simply by adding a line to your /etc/resolv.conf file such as

nameserver xxx.xxx.xxx.xxx

Hope that helps.

Last edited by Tino27; 08-31-2004 at 03:40 PM.
 
Old 09-12-2004, 05:25 PM   #5
h1tman
Member
 
Registered: Jul 2003
Distribution: Slackware 11
Posts: 439

Rep: Reputation: 30
did this work for anyone?
 
Old 09-12-2004, 06:13 PM   #6
Nodren
LQ Newbie
 
Registered: Aug 2004
Distribution: Ubuntu 5.04
Posts: 21

Original Poster
Rep: Reputation: 15
didnt work for me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Authentication service cannot retrieve authentication info Moffett67 Linux - Software 3 12-13-2007 04:16 AM
dialup authentication failure raypuddy Linux - General 8 05-22-2005 06:00 PM
linux dialup faster and more stable than windows dialup -why? whitshade Linux - Networking 4 06-19-2004 04:52 PM
Route dialup modem packets back through dialup instead of default route cable modem jogress Linux - Networking 1 10-21-2003 04:48 PM
Dialup? hurstcactus Linux - Newbie 2 04-09-2002 11:27 AM


All times are GMT -5. The time now is 05:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration