LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   pppd behaves strange (https://www.linuxquestions.org/questions/linux-networking-3/pppd-behaves-strange-94925/)

Castor 09-20-2003 03:39 PM

pppd behaves strange
 
Hi,
I got this weird problem with pppd:
I have 3 ISPs. There are no problems connecting to two of them, but there is a problem with the third one. All three use PAP method via PPP. The main difference between them that (i think) causes the problem is that the 2 non-problematic ISP's operate on *nix like OSs(one SunOS 5.9, one FreeBSD 4.2), and the ISP that I got problem connecting to,operates on Windows2000 Server.

My OS is Slack Linux 9.0.
Every time I use ppp to connect to Win, happens this:
it calls through, connects to the server, but doesn't pass the authentication.
I looked at the syslog and debug info, and saw this:
...
pppd[788]: pppd 2.4.1 started by root, uid 0
pppd[788]: Using interface ppp0
pppd[788]: Connect: ppp0 <--> /dev/modem
/etc/hotplug/net.agent: assuming ppp0 is already up
pppd[788]: LCP terminated by peer (ej8^T^@<M-Mt^@^@^BM-f)
pppd[788]: Hangup (SIGHUP)
pppd[788]: Modem hangup
pppd[788]: Connection terminated.
pppd[788]: Exit.
...
& debug info
...
ppp-go
Serial connection established.
Using interface ppp0
Connect: ppp0 <--> /dev/modem
LCP terminated by peer (#M-|^HM-6^@<M-Mt^@^@^BM-f)
Modem hangup
Connection terminated.
...
On exit pppd return value = 16
which is - " the link was terminated by the modem hanging up".
after i read this, i ran pppsetup and did not enter any values for username and password, and removed the ppp-secret file entry, just to test if the server asks for them.
I tried to connect and recieved the same error, which means that pppd does not recieve a username/password request. I went through all possible man pages howto's, faq's, readme's etc. Found some hints, but they didn't help.
I connected to their admin, and he said that their server does not operate over terminal mode anyhow, and as a result the pppd does not recieve username/password request over the same terminal mode(which as i understood is the default method pppd operates on).
He said that it's possible to tune pppd so it would be able to recive the request not over terminal mode, but didn't say how to (i don't know why he didn't, though...).
After that I went through all settings and options files of ppp, reconfigured, and now besides the old error messages, I sometime recieve this one:
...
No chap secret found for authenticating us to SERVER (here SERVER =the server name)
Remote message: E=691 R=1 V=3
CHAP authentication failed
Connection terminated
...

though I did not use CHAP method during configuration. and I have no idea why this happens...
Please help, last 2 days have been really tough for me 'cause of this problem.
TIA.

peter_robb 09-20-2003 04:32 PM

Usually, the pppd daemon is actually started by wvdial
It does the dialling heuristics and then gives the modem connection to pppd to authenticate etc...

Have a look at this pppd tutorial and follow the steps to identify the possible breaks...

m0rl0ck 09-21-2003 10:28 AM

Did you try putting your auth info in your chap-secrets file?
Is it in your pap-secrets file?
What happens when you try to connect with minicom?

mudelf 09-24-2003 08:12 AM

ppp died
 
I have been having similar problems but am using wvdial.
I know that it is configured and working and my hardware supported but it keeps dying with a 16 exit code.


All times are GMT -5. The time now is 07:57 PM.