Date: Wed, 12 Jun 2002 19:58:14 +0200 From: Norbert Augenstein <norbert@augenstein.net> To: dodi agusri <dodi_tdp@yahoo.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: user ppp does not work Message-ID: <20020612195814.5a812d86.norbert@augenstein.net> In-Reply-To: <20020612110022.27244.qmail@web14809.mail.yahoo.com> References: <20020612110022.27244.qmail@web14809.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, i have changed ppp.conf a little bit, give it a try send ppp.log if it does not work. rename obsolete(for this purpose) ppp.linkup to something else auge BTW if you have an older version maybe you have to use ppp.linkup [auge@seth auge]$ ppp Working in interactive mode Using interface: tun0 ppp ON seth> show version PPP Version 2.3.3 - May 20 2002 ppp ON seth> --------------------------------------------------------- ---------------------------------------------------------- default: set log phase Chat LCP IPCP tun command set device /dev/cuaa0 set speed 38400 disable pred1 deny pred1 disable lqr deny lqr set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 50 \"\" \ ATZ OK-ATZ-OK ATDT\\T TIMEOUT 60 CONNECT" set redial 3 10 enable dns # POS DOES NOT WORK =============== pos: set authname XXXXXXXX set authkey XXXXXXXX set phone XXXXXXXX set timeout 900 # set openmode active # accept chap set ifaddr 127.1.1.1/0 127.2.2.2/0 add default HISADDR # 0 0 127.2.2.2 # INDOSAT775001 works =========== indosat775001 : set authname XXXXXXXX set authkey XXXXXXXX set phone XXXXXXXX set timeout 900 # set openmode active # accept pap set ifaddr 127.1.1.1/0 127.2.2.2/0 add default HISADDR# 0 0 127.2.2.2 --------------------------------------------------- ---------------------------------------------------- On Wed, 12 Jun 2002 04:00:22 -0700 (PDT) dodi agusri <dodi_tdp@yahoo.com> wrote: > I am using two ISP's for my internet cafe and using > USER PPP with tun0. > But one of my ISP does not work at all. It > disconnected Immediately when connecting. > my BSD version is 4.5. > > Here is my ppp.conf file: > default: > set log phase Chat LCP IPCP tun command > set device /dev/cuaa0 > set speed 38400 > disable pred1 > deny pred1 > disable lqr > deny lqr > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT > 50 \"\" \ ATZ OK-ATZ-OK ATDT\\T TIMEOUT 60 CONNECT" > set redial 3 10 > enable dns > > > # POS DOES NOT WORK > =============== > pos: > set authname XXXXXXXX > set authkey XXXXXXXX > set phone XXXXXXXX > > set timeout 900 > set openmode active > > > accept chap > set ifaddr 127.1.1.1/0 127.2.2.2/0 > 255.255.255.255 > add 0 0 127.2.2.2 > > > # INDOSAT775001 works > =========== > indosat775001 : > set authname XXXXXXXX > set authkey XXXXXXXX > set phone XXXXXXXX > > set timeout 900 > set openmode active > accept pap > set ifaddr 127.1.1.1/0 127.2.2.2/0 > 255.255.255.255 > add 0 0 127.2.2.2 > > > > Here is my ppp.linkup : > > indosat775001: > delete ALL > add 0 0 HISADDR > > > pos: > delete ALL > add 0 0 HISADDR > > > Here is the content of /var/log/ppp.log dialling pos : > Jun 8 12:14:15 server ppp[113]: Phase: Using > interface: tun0 > Jun 8 12:14:16 server ppp[113]: Phase: deflink: > Created in closed state > Jun 8 12:14:16 server ppp[113]: tun0: Command: > default: set device /dev/cuaa0 > Jun 8 12:14:16 server ppp[113]: tun0: Command: > default: set speed 38400 > Jun 8 12:14:16 server ppp[113]: tun0: Command: > default: disable pred1 > Jun 8 12:14:16 server ppp[113]: tun0: Command: > default: deny pred1 > Jun 8 12:14:16 server ppp[113]: tun0: Command: > default: disable lqr > Jun 8 12:14:16 server ppp[113]: tun0: Command: > default: deny lqr > Jun 8 12:14:16 server ppp[113]: tun0: Command: > default: set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT > 50 "" ATZ OK-ATZ-OK ATDT\T TIMEOUT 60 CONNECT > Jun 8 12:14:16 server ppp[113]: tun0: Command: > default: set redial 3 10 > Jun 8 12:14:16 server ppp[113]: tun0: Command: > default: enable dns > Jun 8 12:14:16 server ppp[113]: tun0: Command: pos: > set authname silicom > Jun 8 12:14:16 server ppp[113]: tun0: Command: pos: > set authkey ******** > Jun 8 12:14:16 server ppp[113]: tun0: Command: pos: > set phone 27789 > Jun 8 12:14:16 server ppp[113]: tun0: Command: pos: > set timeout 900 > Jun 8 12:14:16 server ppp[113]: tun0: Command: pos: > set openmode active > Jun 8 12:14:16 server ppp[113]: tun0: Command: pos: > accept chap > Jun 8 12:14:16 server ppp[113]: tun0: Command: pos: > set ifaddr 127.1.1.1/0 127.2.2.2/0 255.255.255.255 > Jun 8 12:14:16 server ppp[113]: tun0: Command: pos: > add 0 0 127.2.2.2 > Jun 8 12:14:16 server ppp[114]: tun0: Phase: PPP > Started (auto mode). > Jun 8 12:14:44 server ppp[114]: tun0: Phase: bundle: > Establish > Jun 8 12:14:44 server ppp[114]: tun0: Phase: deflink: > closed -> opening > Jun 8 12:14:44 server ppp[114]: tun0: Phase: deflink: > Connected! > Jun 8 12:14:44 server ppp[114]: tun0: Phase: deflink: > opening -> dial > Jun 8 12:14:44 server ppp[114]: tun0: Chat: Phone: > 27789 > Jun 8 12:14:44 server ppp[114]: tun0: Chat: deflink: > Dial attempt 1 of 10 > Jun 8 12:14:44 server ppp[114]: tun0: Chat: Send: > ATZ^M > Jun 8 12:14:44 server ppp[114]: tun0: Chat: > Expect(50): OK > Jun 8 12:14:44 server ppp[114]: tun0: Chat: Received: > ATZ^M^M > Jun 8 12:14:44 server ppp[114]: tun0: Chat: Received: > OK^M > Jun 8 12:14:44 server ppp[114]: tun0: Chat: Send: > ATDT27789^M > Jun 8 12:14:44 server ppp[114]: tun0: Chat: > Expect(60): CONNECT > Jun 8 12:15:04 server ppp[114]: tun0: Chat: Received: > ATDT27789^M^M > Jun 8 12:15:04 server ppp[114]: tun0: Chat: Received: > CONNECT 33600/ARQ/V34/LAPM/V42BIS^M > Jun 8 12:15:04 server ppp[114]: tun0: Phase: deflink: > dial -> carrier > Jun 8 12:15:05 server ppp[114]: tun0: Phase: deflink: > /dev/cuaa0: CD detected > Jun 8 12:15:05 server ppp[114]: tun0: Phase: deflink: > carrier -> login > Jun 8 12:15:05 server ppp[114]: tun0: Phase: deflink: > login -> lcp > Jun 8 12:15:05 server ppp[114]: tun0: LCP: FSM: Using > "deflink" as a transport > Jun 8 12:15:05 server ppp[114]: tun0: LCP: deflink: > State change Initial --> Closed > Jun 8 12:15:05 server ppp[114]: tun0: LCP: deflink: > State change Closed --> Stopped > Jun 8 12:15:06 server ppp[114]: tun0: LCP: deflink: > LayerStart > Jun 8 12:15:06 server ppp[114]: tun0: LCP: deflink: > SendConfigReq(1) state = Stopped > Jun 8 12:15:06 server ppp[114]: tun0: LCP: > ACFCOMP[2] > Jun 8 12:15:06 server ppp[114]: tun0: LCP: > PROTOCOMP[2] > Jun 8 12:15:06 server ppp[114]: tun0: LCP: ACCMAP[6] > 0x00000000 > Jun 8 12:15:06 server ppp[114]: tun0: LCP: MRU[4] > 1500 > Jun 8 12:15:06 server ppp[114]: tun0: LCP: > MAGICNUM[6] 0x735f804d > Jun 8 12:15:06 server ppp[114]: tun0: LCP: deflink: > State change Stopped --> Req-Sent > Jun 8 12:15:06 server ppp[114]: tun0: LCP: deflink: > RecvConfigReq(1) state = Req-Sent > Jun 8 12:15:06 server ppp[114]: tun0: LCP: MRU[4] > 1522 > Jun 8 12:15:06 server ppp[114]: tun0: LCP: ACCMAP[6] > 0x000a0000 > Jun 8 12:15:06 server ppp[114]: tun0: LCP: > AUTHPROTO[12] 0xc027 (unknown) > Jun 8 12:15:06 server ppp[114]: tun0: LCP: > AUTHPROTO[12] 0xc027 - not recognised, NAK > Jun 8 12:15:06 server ppp[114]: tun0: LCP: > MAGICNUM[6] 0xa05dec47 > Jun 8 12:15:06 server ppp[114]: tun0: LCP: > ACFCOMP[2] > Jun 8 12:15:06 server ppp[114]: tun0: LCP: deflink: > SendConfigNak(1) state = Req-Sent > Jun 8 12:15:06 server ppp[114]: tun0: LCP: > AUTHPROTO[12] 0xc027 (unknown) > Jun 8 12:15:06 server ppp[114]: tun0: LCP: deflink: > RecvConfigAck(1) state = Req-Sent > Jun 8 12:15:06 server ppp[114]: tun0: LCP: deflink: > State change Req-Sent --> Ack-Rcvd > Jun 8 12:15:06 server ppp[114]: tun0: LCP: deflink: > RecvConfigReq(2) state = Ack-Rcvd > Jun 8 12:15:06 server ppp[114]: tun0: LCP: MRU[4] > 1522 > Jun 8 12:15:06 server ppp[114]: tun0: LCP: ACCMAP[6] > 0x000a0000 > Jun 8 12:15:06 server ppp[114]: tun0: LCP: > AUTHPROTO[8] 0xc027 (unknown) > Jun 8 12:15:06 server ppp[114]: tun0: LCP: > AUTHPROTO[8] 0xc027 - not recognised, NAK > Jun 8 12:15:06 server ppp[114]: tun0: LCP: > MAGICNUM[6] 0xa05dec47 > Jun 8 12:15:06 server ppp[114]: tun0: LCP: > ACFCOMP[2] > Jun 8 12:15:06 server ppp[114]: tun0: LCP: deflink: > SendConfigNak(2) state = Ack-Rcvd > Jun 8 12:15:06 server ppp[114]: tun0: LCP: > AUTHPROTO[8] 0xc027 (unknown) > Jun 8 12:15:07 server ppp[114]: tun0: LCP: deflink: > RecvConfigReq(3) state = Ack-Rcvd > Jun 8 12:15:07 server ppp[114]: tun0: LCP: MRU[4] > 1522 > Jun 8 12:15:07 server ppp[114]: tun0: LCP: ACCMAP[6] > 0x000a0000 > Jun 8 12:15:07 server ppp[114]: tun0: LCP: > AUTHPROTO[8] 0xc123 (unknown) > Jun 8 12:15:07 server ppp[114]: tun0: LCP: > AUTHPROTO[8] 0xc123 - not recognised, NAK > Jun 8 12:15:07 server ppp[114]: tun0: LCP: > MAGICNUM[6] 0xa05dec47 > Jun 8 12:15:07 server ppp[114]: tun0: LCP: > ACFCOMP[2] > Jun 8 12:15:07 server ppp[114]: tun0: LCP: deflink: > SendConfigNak(3) state = Ack-Rcvd > Jun 8 12:15:07 server ppp[114]: tun0: LCP: > AUTHPROTO[8] 0xc123 (unknown) > Jun 8 12:15:07 server ppp[114]: tun0: LCP: deflink: > RecvConfigReq(4) state = Ack-Rcvd > Jun 8 12:15:07 server ppp[114]: tun0: LCP: MRU[4] > 1522 > Jun 8 12:15:07 server ppp[114]: tun0: LCP: ACCMAP[6] > 0x000a0000 > Jun 8 12:15:07 server ppp[114]: tun0: LCP: > AUTHPROTO[5] 0xc223 (CHAP 0x05) > Jun 8 12:15:07 server ppp[114]: tun0: LCP: > MAGICNUM[6] 0xa05dec47 > Jun 8 12:15:07 server ppp[114]: tun0: LCP: > ACFCOMP[2] > Jun 8 12:15:07 server ppp[114]: tun0: LCP: deflink: > SendConfigAck(4) state = Ack-Rcvd > Jun 8 12:15:07 server ppp[114]: tun0: LCP: MRU[4] > 1522 > Jun 8 12:15:07 server ppp[114]: tun0: LCP: ACCMAP[6] > 0x000a0000 > Jun 8 12:15:07 server ppp[114]: tun0: LCP: > AUTHPROTO[5] 0xc223 (CHAP 0x05) > Jun 8 12:15:07 server ppp[114]: tun0: LCP: > MAGICNUM[6] 0xa05dec47 > Jun 8 12:15:07 server ppp[114]: tun0: LCP: > ACFCOMP[2] > Jun 8 12:15:07 server ppp[114]: tun0: LCP: deflink: > State change Ack-Rcvd --> Opened > Jun 8 12:15:07 server ppp[114]: tun0: LCP: deflink: > LayerUp > Jun 8 12:15:07 server ppp[114]: tun0: Phase: bundle: > Authenticate > Jun 8 12:15:07 server ppp[114]: tun0: Phase: deflink: > his = CHAP 0x05, mine = none > Jun 8 12:15:07 server ppp[114]: tun0: Phase: Chap > Input: CHALLENGE (16 bytes from p01-sv2) > Jun 8 12:15:07 server ppp[114]: tun0: Phase: Chap > Output: RESPONSE (silicom) > Jun 8 12:15:08 server ppp[114]: tun0: Phase: Chap > Input: FAILURE > Jun 8 12:15:08 server ppp[114]: tun0: LCP: deflink: > LayerDown > Jun 8 12:15:08 server ppp[114]: tun0: LCP: deflink: > SendTerminateReq(2) state = Opened > Jun 8 12:15:08 server ppp[114]: tun0: LCP: deflink: > State change Opened --> Closing > Jun 8 12:15:08 server ppp[114]: tun0: Phase: Chap > Input: CHALLENGE (16 bytes from p01-sv2) > Jun 8 12:15:08 server ppp[114]: tun0: Phase: Chap > Output: RESPONSE (silicom) > Jun 8 12:15:08 server ppp[114]: tun0: LCP: deflink: > RecvTerminateAck(2) state = Closing > Jun 8 12:15:08 server ppp[114]: tun0: LCP: deflink: > LayerFinish > Jun 8 12:15:08 server ppp[114]: tun0: LCP: deflink: > State change Closing --> Closed > Jun 8 12:15:08 server ppp[114]: tun0: LCP: deflink: > State change Closed --> Initial > Jun 8 12:15:08 server ppp[114]: tun0: Phase: deflink: > Disconnected! > Jun 8 12:15:08 server ppp[114]: tun0: Phase: deflink: > lcp -> logout > Jun 8 12:15:08 server ppp[114]: tun0: Phase: deflink: > logout -> hangup > Jun 8 12:15:08 server ppp[114]: tun0: Phase: deflink: > Disconnected! > Jun 8 12:15:08 server ppp[114]: tun0: Phase: deflink: > Connect time: 24 secs: 398 octets in, 297 octets out > Jun 8 12:15:08 server ppp[114]: tun0: Phase: deflink: > : 17 packets in, 8 packets out > Jun 8 12:15:08 server ppp[114]: tun0: Phase: total > 28 bytes/sec, peak 101 bytes/sec on Sat Jun 8 > 12:15:08 2002 > Jun 8 12:15:08 server ppp[114]: tun0: Phase: deflink: > hangup -> closed > Jun 8 12:15:08 server ppp[114]: tun0: Phase: bundle: > Dead > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! - Official partner of 2002 FIFA World Cup > http://fifaworldcup.yahoo.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the > message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020612195814.5a812d86.norbert>