The solution to the problem is in the expect and send strings. The
garbage you are seeing after the test command is executed is actually
binary PPP frames. You need to expect a tilde string after you finish
the basic login and password authentication using "~", then your send
string should be a null reply, such as "". The tilde is always part
of a PPP frame so your pppd will then recognize that PPP is started
and will reply properly. Right now your pppd doesn't know that PPP
has started and isn't replying so the connection is terminated. I
have had to deal with the same problem when hooking up my dialup to
mindspring. Got this out of O'Reilly's PPP book.
Example of send and expect strings after chat dials and connects:
Expect= "ogin:"
Send= "dummy"
Expect= "assword:"
Send= "fakepasswd"
Expect= "~"
Send= ""
Also, to keep your connection going, I have found the the lcp-echo and
lcp-timeout keywords will keep the connection alive. Set the echo to
every ~10 seconds and the timeout to ~2 missing echos. Read the man
page for pppd to understand what that should do. Good luck,
Dow
Marc Vogt wrote:
>
> A friend of mine is trying to connect to a free internet service
> and is having problems. Here is a message she sent to another list.
> Any ideas? Thanks - Marc
>
> ---------------------------------------------------------------------
>
> I recently found out that you can get free internet access through freei.net,
> so I thought I'd change internet providers. However, I'm having problems
> getting connected using this new service. I am using a chat script, and I
> can login successfully (sending my username and password) but am having
> problems after that. It says that they use "Annex Command Line Interpreter"
> and when I get the prompt "annex:" I'm not exactly sure what to send next.
> I tried sending the command "ppp" but after it says "Switching to PPP"
> nothing happens and my connection is eventually teminated. This is
> what I find in /var/log/messages:
>
> Jan 4 20:31:43 TnT chat[331]: expect (annex:)
> Jan 4 20:31:43 TnT chat[331]: ^M
> Jan 4 20:31:43 TnT chat[331]: annex: -- got it
> Jan 4 20:31:43 TnT chat[331]: send (ppp^M)
> Jan 4 20:31:43 TnT chat[331]: expect (~)
> Jan 4 20:31:43 TnT chat[331]: ppp^M
> Jan 4 20:31:43 TnT chat[331]: ^M
> Jan 4 20:31:43 TnT chat[331]: Switching to PPP.^M
> Jan 4 20:31:43 TnT chat[331]: ~ -- got it
> Jan 4 20:31:43 TnT pppd[330]: Serial connection established.
> Jan 4 20:31:44 TnT pppd[330]: Using interface ppp0
> Jan 4 20:31:44 TnT pppd[330]: Connect: ppp0 /dev/cua1
> Jan 4 20:32:20 TnT pppd[330]: LCP: timeout sending Config-Requests
> Jan 4 20:32:20 TnT pppd[330]: Connection terminated.
> Jan 4 20:32:20 TnT pppd[330]: Exit.
>
> In my chat script I added an extra line "test" to see if I needed to send
> anything else and this is what I get:
>
> Jan 4 20:35:19 TnT chat[343]: expect (annex:)
> Jan 4 20:35:19 TnT chat[343]: ^M
> Jan 4 20:35:20 TnT chat[343]: annex: -- got it
> Jan 4 20:35:20 TnT chat[343]: send (ppp^M)
> Jan 4 20:35:20 TnT chat[343]: expect (test)
> Jan 4 20:35:20 TnT chat[343]: ppp^M
> Jan 4 20:35:20 TnT chat[343]: ^M
> Jan 4 20:35:20 TnT chat[343]: Switching to PPP.^M
> Jan 4 20:35:41 TnT chat[343]: ~^?}#@!}!}!} }9}"}&} } } } }#}%B#}%}%}&3q{A}'}"}(
> }"E^R~~^?}#@!}!}!} }9}"}&} } } } }#}%B#}%}%}&3q{A}'}"}(}"E^R~~^?}#@!}!}!} }9}"}&
> } } } } }#}%B#}%}%}&3q{A}'}"}(}"E^R~~^?}#@!}!}!} }9}"}&} } } } }#}%B#}%}%}&3q{A}
> '}"}(}"E^R~~^?}#@!}!}!} }9}"}&} } } } }#}%B#}%}%}&3q{A}'}"}(}"E^R~~^?}#@!}!}!} }
> 9}"}&} } } } }#}%B#}%}%}&3q{A}'}"}(}"E^R~~^?}#@!}!}!} }9}"}&} } } } }#}%B#}%}%}&
> 3q{A}'}"}(}"E^R~~^? -- failed
> Jan 4 20:35:41 TnT pppd[342]: Connect script failed
> Jan 4 20:35:41 TnT pppd[342]: Exit.
>
> Any suggestions on what I'm doing wrong?
>
> --
> To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.
--
_______________________________________________________________
Dow Hurst Office: 770-499-3428
Systems Support Specialist Fax: 770-423-6744
1000 Chastain Rd.
Chemistry Department SC428 Email: ">dhurst@ksumail.kennesaw.edu
Kennesaw State University ">Dow.Hurst@mindspring.com
Kennesaw, GA 30144
*********************************
*Computational Chemistry is fun!*
*********************************
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.