Peer is not authorized to use remote address
Hello to everybody! I tried to use my GPRS phone for Internet connection. When pppd try to connect,remote server response as follow:
Apr 24 01:36:52 notebook pppd[5470]: Connect: ppp0 <--> /dev/usb/tts/0 Apr 24 01:36:53 notebook pppd[5470]: rcvd [LCP ConfReq id=0x1c <mru 1600> <auth pap> <magic 0x5fb8dec7> <asyncmap 0x0> <pcomp> <accomp>] Apr 24 01:36:53 notebook pppd[5470]: sent [LCP ConfReq id=0x1 <mru 1600> <asyncmap 0x0> <magic 0x578adae8> <pcomp> <accomp>] Apr 24 01:36:53 notebook pppd[5470]: sent [LCP ConfRej id=0x1c <auth pap>] Apr 24 01:36:53 notebook pppd[5470]: rcvd [LCP ConfAck id=0x1 <mru 1600> <asyncmap 0x0> <magic 0x578adae8> <pcomp> <accomp>] Apr 24 01:36:53 notebook pppd[5470]: rcvd [LCP ConfReq id=0x1d <mru 1600> <magic 0x5fb8dec7> <asyncmap 0x0> <pcomp> <accomp>] Apr 24 01:36:53 notebook pppd[5470]: sent [LCP ConfAck id=0x1d <mru 1600> <magic 0x5fb8dec7> <asyncmap 0x0> <pcomp> <accomp>] Apr 24 01:36:53 notebook pppd[5470]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>] Apr 24 01:36:55 notebook pppd[5470]: rcvd [IPCP ConfNak id=0x1 <addr 10.224.151.128> <ms-dns1 194.185.97.134> <ms-dns3 194.185.97.134>] Apr 24 01:36:55 notebook pppd[5470]: sent [IPCP ConfReq id=0x2 <addr 10.224.151.128> <ms-dns1 194.185.97.134> <ms-dns3 194.185.97.134>] Apr 24 01:36:55 notebook pppd[5470]: rcvd [IPCP ConfReq id=0x2c <addr 255.255.255.255>] Apr 24 01:36:55 notebook pppd[5470]: sent [IPCP ConfAck id=0x2c <addr 255.255.255.255>] Apr 24 01:36:55 notebook pppd[5470]: rcvd [IPCP ConfAck id=0x2 <addr 10.224.151.128> <ms-dns1 194.185.97.134> <ms-dns3 194.185.97.134>] Apr 24 01:36:55 notebook pppd[5470]: Peer is not authorized to use remote address 255.255.255.255 Apr 24 01:36:55 notebook pppd[5470]: sent [IPCP TermReq id=0x3 "Unauthorized remote IP address"] Apr 24 01:36:55 notebook pppd[5470]: rcvd [IPCP TermAck id=0x3] Apr 24 01:36:55 notebook pppd[5470]: sent [LCP TermReq id=0x2 "No network protocols running"] Apr 24 01:36:55 notebook pppd[5470]: rcvd [LCP TermAck id=0x2] Apr 24 01:36:55 notebook pppd[5470]: Connection terminated. Apr 24 01:36:55 notebook pppd[5470]: Connect time 0.1 minutes. Apr 24 01:36:55 notebook pppd[5470]: Sent 54 bytes, received 54 bytes. Apr 24 01:36:55 notebook chat[5490]: send (\K^M) Apr 24 01:36:55 notebook chat[5490]: send (+++ATH^M) Apr 24 01:36:55 notebook pppd[5470]: Serial link disconnected. Apr 24 01:36:56 notebook pppd[5470]: Exit. It is very strange that server send a broadcast IP for remote IP. I've just tried to use ipcp-accept-local and ipcp-accept-remote, but the connection follow down. __________________________________________________________ pppd configuration hide-password lock noauth debug 115200 crtscts defaultroute noipdefault #ipcp-accept-local #ipcp-accept-remote #0.0.0.0:10.0.0.1 noipx remotename gprs_vodafone ipparam gprs_vodafone usepeerdns disconnect '/usr/sbin/chat -e -f /usr/share/gprsec/tools/disconnect -v' connect '/usr/sbin/chat -e -v -f /home/fransemail/.gprsec/chat' /dev/usb/tts/0 #With this option, pppd will accept all control characters from the peer, including those marked in the receive asyncmap logfile "/home/fransemail/.gprsec/conn.log" mru 1600 novj nobsdcomp nodeflate |
I'd like to see the log when you use ipcp-accept-local and ipcp-accept-remote. Who is your gprs provider? Are you using a chap or pap secrets file? Are you sure that you are dialing the correct number for access?
I have just gone through all of this with t-mobile and gprs, so I am pretty sure that I can help you. I found success putting an entry for ppp config like this: name gprs and adding a line in the pap-secrets file like this: gprs * gprs It really doesn't matter what name you use as long as it matches the name used in the pap-secrets file. I know it sounds stupid, but that is what was holding me up. Assuming you are dialing the correct number, (there may be multiple numbers for the same provider and only one of which you are authorized to use), try adding the name and pap entry, and you should be using the ipcp-accept local and remote options too. We'll work on DNS when you actually get and stay connected. There's a trick to that too.... Let me know... |
No results.... please help me
Thanks for your reply! My operator is Vodafone (Italy). I've already
tried to use name gprs or username gprs, without results My chap script is: ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED TIMEOUT 10 '' AT&F OK ATE1 OK AT+CGDCONT=1,"IP","web.omnitel.it","",0,0 SAY "Calling Vodafone GPRS\n" TIMEOUT 60 OK ATD*99# CONNECT '' I also tried to substitute *99# with *99***1# without success. _____________________ pppd version 2.4.1 - kernel 2.6.1 ( I' ve also tried with 2.6.5 ) - My phone LG G5300 - I use an USB to Serial connection with a pl2303 connector and the LG vendor cable |
Did you use a pap-secrets file when you used "user gprs" in the pppd config? The secrets files are in /etc/ppp.
|
Re: No results.... please help me
Also make sure that "web.omnitel.it" is correct for your SIM. Verify with Vodafone. I had three SIMs and radios working with "internet2.voicestream.com" but it did not work with new SIMs that I received shortly afterwards because they were configured to work with "internet3.voicestream.com" Just a thought...
|
the problem is not the phone
thanks for your reply tlaresearch. I'm sure that vodafone cannot require pap autentication,but I've tried to add 'user gprs' without results. However I've test and logged my phone with windows and I verified with my chat script. It is correct. I belive that the problem is pppd, however I use an internet connection with an internal slmodem without problem. I've already tested my connection with another operator and the problem is the same. Any iseas?
|
I have almost the same problem here
but i don't get these messages, may be because my cellular differs, however, i suspect its a related problem: May 3 20:24:39 gfdsanb pppd[5702]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>] May 3 20:24:39 gfdsanb pppd[5702]: rcvd [IPCP ConfReq id=0x0 <addr 10.6.6.6>] May 3 20:24:39 gfdsanb pppd[5702]: sent [IPCP ConfAck id=0x0 <addr 10.6.6.6>] May 3 20:24:41 gfdsanb pppd[5702]: rcvd [LCP TermReq id=0x2] May 3 20:24:41 gfdsanb pppd[5702]: LCP terminated by peer May 3 20:24:41 gfdsanb pppd[5702]: sent [LCP TermAck id=0x2] May 3 20:24:44 gfdsanb pppd[5702]: Connection terminated. the pppd's files are the same anyone has an idea? may be someone has success connecting to this omnitel? |
i did connect!
here is the chat: ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED '' ATZ OK-AT-OK AT+CGDCONT=1,"IP","web.omnitel.it","",0,0 OK-AT-OK AT+CGATT=1 OK-AT-OK ATD*99***1# CONNECT '' and here is the peer's config: hide-password noauth connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs_vodafone.bak" debug -crtscts /dev/ircomm0 57600 defaultroute #noipdefault #10.128.201.76 remotename gprs_vodafone ipparam gprs_vodafone usepeerdns novj nobsdcomp nodeflate ipcp-accept-local ipcp-accept-remote invoked pppd command `pppd call "peer's name"` resulted: May 3 20:34:02 gfdsanb chat[5725]: ^M May 3 20:34:05 gfdsanb chat[5725]: AT+CGATT=1^M^M May 3 20:34:05 gfdsanb chat[5725]: OK May 3 20:34:05 gfdsanb chat[5725]: -- got it May 3 20:34:05 gfdsanb chat[5725]: send (ATD*99***1#^M) May 3 20:34:05 gfdsanb chat[5725]: expect (CONNECT) May 3 20:34:05 gfdsanb chat[5725]: ^M May 3 20:34:05 gfdsanb chat[5725]: ATD*99***1#^M^M May 3 20:34:05 gfdsanb chat[5725]: CONNECT May 3 20:34:05 gfdsanb chat[5725]: -- got it May 3 20:34:05 gfdsanb chat[5725]: send (^M) May 3 20:34:05 gfdsanb pppd[5724]: Serial connection established. May 3 20:34:05 gfdsanb pppd[5724]: using channel 18 May 3 20:34:05 gfdsanb pppd[5724]: Using interface ppp0 May 3 20:34:05 gfdsanb pppd[5724]: Connect: ppp0 <--> /dev/ircomm0 May 3 20:34:05 gfdsanb pppd[5724]: rcvd [LCP ConfReq id=0x0 <auth pap> <mru 1500> <asyncmap 0xa0000>] May 3 20:34:05 gfdsanb pppd[5724]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe085ecc7> <pcomp> <accomp>] May 3 20:34:05 gfdsanb pppd[5724]: No auth is possible May 3 20:34:05 gfdsanb pppd[5724]: sent [LCP ConfRej id=0x0 <auth pap>] May 3 20:34:05 gfdsanb pppd[5724]: rcvd [LCP ConfRej id=0x1 <magic 0xe085ecc7> <pcomp> <accomp>] May 3 20:34:05 gfdsanb pppd[5724]: sent [LCP ConfReq id=0x2 <asyncmap 0x0>] May 3 20:34:05 gfdsanb pppd[5724]: rcvd [LCP ConfReq id=0x1 <mru 1500> <asyncmap 0xa0000>] May 3 20:34:05 gfdsanb pppd[5724]: sent [LCP ConfAck id=0x1 <mru 1500> <asyncmap 0xa0000>] May 3 20:34:05 gfdsanb pppd[5724]: rcvd [LCP ConfAck id=0x2 <asyncmap 0x0>] May 3 20:34:05 gfdsanb pppd[5724]: Couldn't set pass-filter in kernel: Invalid argument May 3 20:34:05 gfdsanb pppd[5724]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>] May 3 20:34:05 gfdsanb pppd[5724]: rcvd [IPCP ConfReq id=0x0 <addr 10.6.6.6>] May 3 20:34:05 gfdsanb pppd[5724]: sent [IPCP ConfAck id=0x0 <addr 10.6.6.6>] May 3 20:34:06 gfdsanb pppd[5724]: rcvd [IPCP ConfNak id=0x1 <addr 10.200.132.22> <ms-dns1 194.185.97.134> <ms-dns3 194.185.97.134>] May 3 20:34:06 gfdsanb pppd[5724]: sent [IPCP ConfReq id=0x2 <addr 10.200.132.22> <ms-dns1 194.185.97.134> <ms-dns3 194.185.97.134>] May 3 20:34:06 gfdsanb pppd[5724]: rcvd [IPCP ConfAck id=0x2 <addr 10.200.132.22> <ms-dns1 194.185.97.134> <ms-dns3 194.185.97.134>] May 3 20:34:06 gfdsanb pppd[5724]: not replacing existing default route to eth0 [192.168.8.254] May 3 20:34:06 gfdsanb pppd[5724]: local IP address 10.200.132.22 May 3 20:34:06 gfdsanb pppd[5724]: remote IP address 10.6.6.6 May 3 20:34:06 gfdsanb pppd[5724]: primary DNS address 194.185.97.134 May 3 20:34:06 gfdsanb pppd[5724]: secondary DNS address 194.185.97.134 May 3 20:34:06 gfdsanb pppd[5724]: Script /etc/ppp/ip-up started (pid 5730) May 3 20:34:06 gfdsanb pppd[5724]: Script /etc/ppp/ip-up finished (pid 5730), status = 0x1 May 3 20:40:40 gfdsanb pppd[5724]: Terminating on signal 15. May 3 20:40:40 gfdsanb pppd[5724]: Script /etc/ppp/ip-down started (pid 5760) May 3 20:40:40 gfdsanb pppd[5724]: sent [LCP TermReq id=0x3 "User request"] May 3 20:40:40 gfdsanb pppd[5724]: Script /etc/ppp/ip-down finished (pid 5760), status = 0x1 May 3 20:40:40 gfdsanb pppd[5724]: rcvd [LCP TermAck id=0x3] May 3 20:40:40 gfdsanb pppd[5724]: Connection terminated. May 3 20:40:40 gfdsanb pppd[5724]: Connect time 6.6 minutes. May 3 20:40:40 gfdsanb pppd[5724]: Sent 8862 bytes, received 96979 bytes. May 3 20:40:40 gfdsanb pppd[5724]: Hangup (SIGHUP) May 3 20:40:40 gfdsanb pppd[5724]: Connect time 6.6 minutes. May 3 20:40:40 gfdsanb pppd[5724]: Sent 8862 bytes, received 96979 bytes. May 3 20:40:40 gfdsanb pppd[5724]: Exit. connected through infrared "ircomm", nokia 6310 wget http://switch.dl.sourceforge.net/sou...s/cdex_151.exe --20:40:11-- http://switch.dl.sourceforge.net/sou...s/cdex_151.exe => `cdex_151.exe' Resolving switch.dl.sourceforge.net... done. Connecting to switch.dl.sourceforge.net[195.176.255.8]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 2,000,324 [application/octet-stream] 2% [==> ] 55,022 3.49K/s ETA 09:04 |
and another $0.02, since this page is googled...
if a was going right away here: http://www.s0linux.com/modules/nsect...ticle&artid=27 things could be much easier for me |
nothing to do
Thanks for all! I've tried but the error is always the same....
|
Apr 24 01:36:55 notebook pppd[5470]: rcvd [IPCP ConfReq id=0x2c <addr 255.255.255.255>]
Apr 24 01:36:55 notebook pppd[5470]: sent [IPCP ConfAck id=0x2c <addr 255.255.255.255>] these 2 are making the problem you suffer from, and as i see, its provider's fault, really, why their "router" should be 255.255.255.255 ? looks crappy... can you try a sim card from another provider? |
another $.02
read here (look for mails with 255.255.255.255) in subj: http://www.faqchest.com/linux/PPP/pp...12/ppp-021201/ so it is providers crap, their are violate all the RFCs I think it should go into some FAQ somewhere... However, the guy is pointing into the code that leads to this problem, and as i understand its fixable, at least pppd can re-request it, and just drop the IPCP session. As an advise, try to reach that guy, may be he fixed it and will send you a patch, another advise, talk to pppd guys, find them somewhere on the samba.org, this can go into some "quirks" features, if they want to help ppl (usually they do, but slow. and the last advise: go buy another sim card :-) |
another sim tested
Thx for your reply! Sorry,but I do not found any solution. I've tried with another sim to connect without any results.
|
All times are GMT -5. The time now is 07:27 AM. |