Find the answer to your Linux question:
Results 1 to 10 of 10
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Ubuntu: ppp & pap-secrets


    When trying to connect via modem using pppd in Ubuntu I get the following error:

    Code:
    pppd: The remote system is required to authenticate itself
    pppd: but I couldn't find any suitable secret (password) for it to use to do so.
    This works fine in Mandriva, I've noticed Ubuntu makes the pap-secrets file much more complicated than it has to be, so I'm suspecting something is wrong there. I've configured things exactly as I did on my Mandriva system, so I'm not sure why Ubuntu can't authenticate.

  2. #2

    edit config file

    Hi,
    I suspect your /etc/ppp/options file contains the line 'auth'
    edit that to read 'noauth' and see what happens.
    Regards.

  3. #3
    Thanks, it looks like that tip helped me get passed that error. Still can't connect to the internet for some reason though; here's the output from ppp.

    Code:
    username@localhost:~$ pppd call mymodem
    Serial connection established.
    using channel 5
    Using interface ppp0
    Connect&#58; ppp0 <--> /dev/modem
    sent &#91;LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x6a29c9ea> <pcomp> <accomp>&#93;
    rcvd &#91;LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x6a29c9ea> <pcomp> <accomp>&#93;
    rcvd &#91;LCP ConfReq id=0xa <mru 1600> <auth pap> <magic 0x5fb8dec7> <asyncmap 0x0> <pcomp> <accomp>&#93;
    sent &#91;LCP ConfAck id=0xa <mru 1600> <auth pap> <magic 0x5fb8dec7> <asyncmap 0x0> <pcomp> <accomp>&#93;
    sent &#91;LCP EchoReq id=0x0 magic=0x6a29c9ea&#93;
    sent &#91;PAP AuthReq id=0x1 user="guest" password="*"&#93;
    rcvd &#91;LCP EchoRep id=0x0 magic=0x6a29c9ea&#93;
    appear to have received our own echo-reply!
    rcvd &#91;PAP AuthAck id=0x1 "TTP Com PPP - Password Verified OK"&#93;
    Remote message&#58; TTP Com PPP - Password Verified OK
    PAP authentication succeeded
    sent &#91;CCP ConfReq id=0x1 <deflate 15> <deflate&#40;old#&#41; 15> <bsd v1 15>&#93;
    sent &#91;IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>&#93;
    rcvd &#91;LCP ProtRej id=0x4 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f 32&#93;
    Protocol-Reject for 'Compression Control Protocol' &#40;0x80fd&#41; received
    rcvd &#91;IPCP ConfRej id=0x1 <compress VJ 0f 01>&#93;
    sent &#91;IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>&#93;
    rcvd &#91;IPCP ConfReq id=0x5 <addr 10.0.0.1>&#93;
    sent &#91;IPCP ConfAck id=0x5 <addr 10.0.0.1>&#93;
    rcvd &#91;IPCP ConfNak id=0x2 <addr 10.64.77.193> <ms-dns1 10.250.1.10> <ms-dns3 10.250.1.11>&#93;
    sent &#91;IPCP ConfReq id=0x3 <addr 10.64.77.193> <ms-dns1 10.250.1.10> <ms-dns3 10.250.1.11>&#93;
    rcvd &#91;IPCP ConfNak id=0x3 <ms-dns1 10.250.1.10> <ms-dns3 10.250.1.11>&#93;
    sent &#91;IPCP ConfReq id=0x4 <addr 10.64.77.193> <ms-dns1 10.250.1.10> <ms-dns3 10.250.1.11>&#93;
    rcvd &#91;IPCP ConfNak id=0x4 <ms-dns1 10.250.1.10> <ms-dns3 10.250.1.11>&#93;
    sent &#91;IPCP ConfReq id=0x5 <addr 10.64.77.193> <ms-dns1 10.250.1.10> <ms-dns3 10.250.1.11>&#93;
    rcvd &#91;IPCP ConfAck id=0x5 <addr 10.64.77.193> <ms-dns1 10.250.1.10> <ms-dns3 10.250.1.11>&#93;
    not replacing default route to eth0 &#91;192.168.0.1&#93;
    Cannot determine ethernet address for proxy ARP
    local  IP address 10.64.77.193
    remote IP address 10.0.0.1
    primary   DNS address 10.250.1.10
    secondary DNS address 10.250.1.11
    Script /etc/ppp/ip-up started &#40;pid 8156&#41;
    Script /etc/ppp/ip-up finished &#40;pid 8156&#41;, status = 0x0
    appear to have received our own echo-reply!
    Any ideas?

    Thanks

  4. $spacer_open
    $spacer_close
  5. #4
    Now it will let me connect with pretty much the same output as in my last post. However I can only stay connected for about two minutes at most. I think it has something to do with that echo reply error. I think there are also a few other issues presented in that output (not sure if they're all related or not) such as the protocol rejected statement.

    Any ideas?

  6. #5

    Another method?

    Hi again,
    Not having had that problem before I can't call upon past experience.
    I have tried both kppp & pppconfig to get my dial-up working in Sarge so I might be able to help if you wish to try those.
    Regards.

  7. #6
    Unfortunately, I only have the option of using ppp / pppd as to ensure compatibility with other components. This is the output that occurs after the last output I posted but right before the modem disconnects.

    Code:
    appear to have received our own echo-reply!
    appear to have received our own echo-reply!
    No response to 4 echo-requests
    Serial link appears to be disconnected.
    Connect time 2.0 minutes.
    Sent 64995 bytes, received 358101 bytes.
    Script /etc/ppp/ip-down started &#40;pid 9205&#41;
    sent &#91;LCP TermReq id=0x2 "Peer not responding"&#93;
    rcvd &#91;LCP TermAck id=0x2&#93;
    Connection terminated.
    Waiting for 1 child processes...
      script /etc/ppp/ip-down, pid 9205
    Script /etc/ppp/ip-down finished &#40;pid 9205&#41;, status = 0x0

  8. #7
    Perhaps this ifconfig information would be relivant?

    Code:
    username@localhost&#58;~$ ifconfig
    eth0      Link encap&#58;Ethernet  HWaddr 00&#58;03&#58;25&#58;13&#58;54&#58;DD
              inet6 addr&#58; fe80&#58;&#58;203&#58;25ff&#58;fe13&#58;54dd/64 Scope&#58;Link
              UP BROADCAST MULTICAST  MTU&#58;1500  Metric&#58;1
              RX packets&#58;0 errors&#58;0 dropped&#58;0 overruns&#58;0 frame&#58;0
              TX packets&#58;0 errors&#58;0 dropped&#58;0 overruns&#58;0 carrier&#58;0
              collisions&#58;0 txqueuelen&#58;1000
              RX bytes&#58;0 &#40;0.0 b&#41;  TX bytes&#58;0 &#40;0.0 b&#41;
              Interrupt&#58;23 Base address&#58;0x1800
    
    lo        Link encap&#58;Local Loopback
              inet addr&#58;127.0.0.1  Mask&#58;255.0.0.0
              inet6 addr&#58; &#58;&#58;1/128 Scope&#58;Host
              UP LOOPBACK RUNNING  MTU&#58;16436  Metric&#58;1
              RX packets&#58;1461 errors&#58;0 dropped&#58;0 overruns&#58;0 frame&#58;0
              TX packets&#58;1461 errors&#58;0 dropped&#58;0 overruns&#58;0 carrier&#58;0
              collisions&#58;0 txqueuelen&#58;0
              RX bytes&#58;132160 &#40;129.0 KiB&#41;  TX bytes&#58;132160 &#40;129.0 KiB&#41;
    
    ppp0      Link encap&#58;Point-to-Point Protocol
              inet addr&#58;10.104.203.94  P-t-P&#58;10.0.0.1  Mask&#58;255.255.255.255
              UP POINTOPOINT RUNNING NOARP MULTICAST  MTU&#58;1500  Metric&#58;1
              RX packets&#58;6 errors&#58;0 dropped&#58;0 overruns&#58;0 frame&#58;0
              TX packets&#58;7 errors&#58;0 dropped&#58;0 overruns&#58;0 carrier&#58;0
              collisions&#58;0 txqueuelen&#58;3
              RX bytes&#58;96 &#40;96.0 b&#41;  TX bytes&#58;141 &#40;141.0 b&#41;
    It appears someone else has run into this issue and found a fix, I'm not exactly sure what they did though:

    http://www.linuxquestions.org/questi...hreadid=341151

  9. #8
    Here's some additional information:

    Code:
    username@localhost&#58;~$ route -n
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    10.0.0.1        0.0.0.0         255.255.255.255 UH           0      0        0 ppp0
    0.0.0.0          10.0.0.1       0.0.0.0                   UG            0      0        0 ppp0

  10. #9
    Now it will let me connect with pretty much the same output as in my last post. However I can only stay connected for about two minutes at most.
    Not sure if info would still be useful but I've had same issue on my GPRS connection and was able to fix it by adding to /etc/peers/gprs file these two options:
    Code:
    lcp-echo-interval 0
    lcp-echo-failure 0
    So I think it doesn't harm to try if it out

  11. #10
    Adding those options fixed the problem for me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •