Главная страница


ru.unix.bsd

 
 - RU.UNIX.BSD ------------------------------------------------------------------
 From : Oleg Kuznetsov                       2:5011/139     19 Oct 2002  22:51:30
 To : All
 Subject : ppp+radius
 -------------------------------------------------------------------------------- 
 
 
 настраиваю сабжевую связку
 всё делал по факу icradius
 наложил этот патч
 Note: для FreeBSD 4.x-RELEASE можно использовать патч, который добавляет
     обработку атрибутов:
         Filter-Id
         Session-Timeout
         Session-Octets-Limit
         Octets-Direction
     и исправляет такую ошибку, как назначение RADIUS сервером пользователю
     ip адреса 255.255.255.254.
     Скачать можно:
     http://www.i.kremenchug.net/patches/ppp-4x.patch.gz
 до накладке этого патча было почти всё нормально, за исключением того что адрес 
 клиенту назначался 255.255.255.254, но клиент приконнекчивался
 
 после накладки , клиент не может приконнектиться
 
 === Begin ppp.log ===
 Oct 19 21:54:22 shark ppp[59162]: Phase: Using interface: tun0
 Oct 19 21:54:22 shark ppp[59162]: Phase: deflink: Created in closed state
 Oct 19 21:54:22 shark ppp[59162]: tun0: Command: default: ident user-ppp VERSION
 (built COMPILATIONDATE)
 Oct 19 21:54:22 shark ppp[59162]: tun0: Command: default: set device /dev/cuaa0
 Oct 19 21:54:22 shark ppp[59162]: tun0: Command: default: set speed 115200
 Oct 19 21:54:22 shark ppp[59162]: tun0: Command: default: disable pred1
 Oct 19 21:54:22 shark ppp[59162]: tun0: Command: default: deny pred1
 Oct 19 21:54:22 shark ppp[59162]: tun0: Command: default: disable lqr
 Oct 19 21:54:22 shark ppp[59162]: tun0: Command: default: deny lqr
 Oct 19 21:54:22 shark ppp[59162]: tun0: Command: default: set dial ABORT BUSY
 ABORT NO\sCARRIER TIMEOUT 5            "" AT OK-AT-OK ATE1Q0 OK \dATDP\T TIMEOUT
 40 CONNECT
 Oct 19 21:54:22 shark ppp[59162]: tun0: Command: default: set timeout 180
 Oct 19 21:54:22 shark ppp[59162]: tun0: Command: default: enable dns
 Oct 19 21:54:22 shark ppp[59162]: tun0: Command: default: set redial 3 10
 Oct 19 21:54:22 shark ppp[59162]: tun0: Command: dial-in: enable chap pap
 chap80nt chap81 passwdauth
 Oct 19 21:54:22 shark ppp[59162]: tun0: Command: dial-in: set ifaddr x.x.x.x
 y.y.y.1-y.y.y.254
 Oct 19 21:54:22 shark ppp[59162]: tun0: Warning: ParseAddr: x.x.x.x: Bad address
 Oct 19 21:54:22 shark ppp[59162]: tun0: Warning: set ifaddr: Failed 1
 Oct 19 21:54:22 shark ppp[59162]: tun0: Command: dial-in: accept dns
 Oct 19 21:54:22 shark ppp[59162]: tun0: Command: dial-in: load radius
 Oct 19 21:54:22 shark ppp[59162]: tun0: Command: radius: set radius
 /etc/ppp/radius.conf
 Oct 19 21:54:22 shark ppp[59162]: tun0: Phase: PPP Started (direct mode).
 Oct 19 21:54:22 shark ppp[59162]: tun0: Phase: bundle: Establish
 Oct 19 21:54:22 shark ppp[59162]: tun0: Phase: deflink: closed -> opening
 Oct 19 21:54:22 shark ppp[59162]: tun0: Phase: deflink: Connected!
 Oct 19 21:54:22 shark ppp[59162]: tun0: Phase: deflink: opening -> carrier
 Oct 19 21:54:23 shark ppp[59162]: tun0: Phase: deflink: /dev/cuaa0: CD detected
 Oct 19 21:54:23 shark ppp[59162]: tun0: Phase: deflink: carrier -> lcp
 Oct 19 21:54:23 shark ppp[59162]: tun0: LCP: FSM: Using "deflink" as a transport
 Oct 19 21:54:23 shark ppp[59162]: tun0: LCP: deflink: State change Initial -->
 Closed
 Oct 19 21:54:23 shark ppp[59162]: tun0: LCP: deflink: State change Closed -->
 Stopped
 Oct 19 21:54:24 shark ppp[59162]: tun0: LCP: deflink: LayerStart
 Oct 19 21:54:24 shark ppp[59162]: tun0: LCP: deflink: SendConfigReq(1) state =
 Stopped
 Oct 19 21:54:24 shark ppp[59162]: tun0: LCP:  ACFCOMP[2]
 Oct 19 21:54:24 shark ppp[59162]: tun0: LCP:  PROTOCOMP[2]
 Oct 19 21:54:24 shark ppp[59162]: tun0: LCP:  ACCMAP[6] 0x00000000
 Oct 19 21:54:24 shark ppp[59162]: tun0: LCP:  MRU[4] 1500
 Oct 19 21:54:24 shark ppp[59162]: tun0: LCP:  MAGICNUM[6] 0x07555680
 Oct 19 21:54:24 shark ppp[59162]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x05)
 Oct 19 21:54:24 shark ppp[59162]: tun0: LCP: deflink: State change Stopped -->
 Req-Sent
 Oct 19 21:54:25 shark ppp[59162]: tun0: LCP: deflink: RecvConfigReq(2) state =
 Req-Sent
 Oct 19 21:54:25 shark ppp[59162]: tun0: LCP:  ACCMAP[6] 0x00000000
 Oct 19 21:54:25 shark ppp[59162]: tun0: LCP:  MAGICNUM[6] 0x371b6833
 Oct 19 21:54:25 shark ppp[59162]: tun0: LCP:  PROTOCOMP[2]
 Oct 19 21:54:25 shark ppp[59162]: tun0: LCP:  ACFCOMP[2]
 Oct 19 21:54:25 shark ppp[59162]: tun0: LCP:  CALLBACK[3] CBCP
 Oct 19 21:54:25 shark ppp[59162]: tun0: LCP: deflink: SendConfigRej(2) state =
 Req-Sent
 Oct 19 21:54:25 shark ppp[59162]: tun0: LCP:  CALLBACK[3] CBCP
 Oct 19 21:54:25 shark ppp[59162]: tun0: LCP: Sending ident magic 07555680 text
 user-ppp 2.3.3 (built Oct 19 2002)
 Oct 19 21:54:25 shark ppp[59162]: tun0: LCP: deflink: SendIdent(0) state =
 Req-Sent
 Oct 19 21:54:26 shark ppp[59162]: tun0: LCP: deflink: RecvConfigAck(1) state =
 Req-Sent
 Oct 19 21:54:26 shark ppp[59162]: tun0: LCP: deflink: State change Req-Sent --> 
 Ack-Rcvd
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: deflink: RecvConfigReq(3) state =
 Ack-Rcvd
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP:  ACCMAP[6] 0x00000000
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP:  MAGICNUM[6] 0x371b6833
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP:  PROTOCOMP[2]
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP:  ACFCOMP[2]
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: deflink: SendConfigAck(3) state =
 Ack-Rcvd
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP:  ACCMAP[6] 0x00000000
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP:  MAGICNUM[6] 0x371b6833
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP:  PROTOCOMP[2]
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP:  ACFCOMP[2]
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: deflink: State change Ack-Rcvd --> 
 Opened
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: deflink: LayerUp
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: Sending ident magic 07555680 text
 user-ppp 2.3.3 (built Oct 19 2002)
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: deflink: SendIdent(1) state =
 Opened
 Oct 19 21:54:27 shark ppp[59162]: tun0: Phase: bundle: Authenticate
 Oct 19 21:54:27 shark ppp[59162]: tun0: Phase: deflink: his = none, mine = CHAP 
 0x05
 Oct 19 21:54:27 shark ppp[59162]: tun0: Phase: Chap Output: CHALLENGE
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: deflink: RecvIdent(4) state =
 Opened
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: Received ident: MSRASV5.10
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: deflink: RecvIdent(5) state =
 Opened
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: Received ident:
 MSRAS-1-WHO-HJOYRP4744E
 Oct 19 21:54:27 shark ppp[59162]: tun0: Phase: Chap Input: RESPONSE (16 bytes
 from ppp)
 Oct 19 21:54:27 shark ppp[59162]: tun0: Phase: Radius: Request sent
 Oct 19 21:54:27 shark ppp[59162]: tun0: Phase: Radius(auth): ACCEPT received
 Oct 19 21:54:27 shark ppp[59162]: tun0: Phase:         IP 255.255.255.254
 Oct 19 21:54:27 shark ppp[59162]: tun0: Phase:         MTU 1500
 Oct 19 21:54:27 shark ppp[59162]: tun0: Phase: Chap Output: SUCCESS
 Oct 19 21:54:27 shark ppp[59162]: tun0: Warning: OpenSecret: Can't open
 /etc/ppp/ppp.secret.
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP: FSM: Using "deflink" as a transport
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP: deflink: State change Initial -->
 Closed
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP: deflink: LayerStart.
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP: MPPE: Not usable without CHAP81
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP: deflink: SendConfigReq(1) state =
 Closed
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP:  DEFLATE[4] win 15
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP: deflink: State change Closed -->
 Req-Sent
 Oct 19 21:54:27 shark ppp[59162]: tun0: Phase: deflink: lcp -> open
 Oct 19 21:54:27 shark ppp[59162]: tun0: Phase: bundle: Network
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: FSM: Using "deflink" as a
 transport
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: deflink: State change Initial --> 
 Closed
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: deflink: LayerStart.
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: deflink: SendConfigReq(1) state = 
 Closed
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  IPADDR[6]  255.255.255.255
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  COMPPROTO[6]  16 VJ slots with
 slot compression
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  PRIDNS[6]  213.24.104.197
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  SECDNS[6]  213.24.96.234
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: deflink: State change Closed -->
 Req-Sent
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP: deflink: RecvConfigReq(6) state =
 Req-Sent
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP:  MPPE[6] value 0x00000001 ( bits,
 stateful, compressed)
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP: MPPE: Not usable without CHAP81
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP: deflink: SendConfigRej(6) state =
 Req-Sent
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP:  MPPE[6] value 0x00000001 ( bits,
 stateful, compressed)
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: Sending ident magic 07555680 text
 user-ppp 2.3.3 (built Oct 19 2002)
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: deflink: SendIdent(2) state =
 Opened
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: deflink: RecvConfigReq(7) state = 
 Req-Sent
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  COMPPROTO[6]  16 VJ slots with
 slot compression
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  IPADDR[6]  0.0.0.0
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  PRIDNS[6]  0.0.0.0
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  PRINBNS[6]  0.0.0.0
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: NBNS REQ - rejected - nbns not set
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  SECDNS[6]  0.0.0.0
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  SECNBNS[6]  0.0.0.0
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: NBNS REQ - rejected - nbns not set
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: deflink: SendConfigRej(7) state = 
 Req-Sent
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  PRINBNS[6]  0.0.0.0
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  SECNBNS[6]  0.0.0.0
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: Sending ident magic 07555680 text
 user-ppp 2.3.3 (built Oct 19 2002)
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: deflink: SendIdent(3) state =
 Opened
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP: deflink: RecvConfigRej(1) state =
 Req-Sent
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: Sending ident magic 07555680 text
 user-ppp 2.3.3 (built Oct 19 2002)
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: deflink: SendIdent(4) state =
 Opened
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP:  DEFLATE[4] win 15
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP: MPPE: Not usable without CHAP81
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP: deflink: SendConfigReq(2) state =
 Req-Sent
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP:   [EMPTY]
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: deflink: RecvConfigRej(1) state = 
 Req-Sent
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: Sending ident magic 07555680 text
 user-ppp 2.3.3 (built Oct 19 2002)
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: deflink: SendIdent(5) state =
 Opened
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  PRIDNS[6]  213.24.104.197
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  SECDNS[6]  213.24.96.234
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: deflink: SendConfigReq(2) state = 
 Req-Sent
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  IPADDR[6]  255.255.255.255
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  COMPPROTO[6]  16 VJ slots with
 slot compression
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP: deflink: RecvTerminateReq(8) state 
 = Req-Sent
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP: deflink: SendTerminateAck(8) state 
 = Req-Sent
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: deflink: RecvConfigReq(9) state = 
 Req-Sent
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  COMPPROTO[6]  16 VJ slots with
 slot compression
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  IPADDR[6]  0.0.0.0
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  PRIDNS[6]  0.0.0.0
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  SECDNS[6]  0.0.0.0
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: deflink: SendConfigNak(9) state = 
 Req-Sent
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  IPADDR[6]  0.0.0.0
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  PRIDNS[6]  213.24.104.197
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  SECDNS[6]  213.24.96.234
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: deflink: RecvConfigAck(2) state = 
 Req-Sent
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: deflink: State change Req-Sent -->
 Ack-Rcvd
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: deflink: RecvTerminateReq(10)
 state = Ack-Rcvd
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: deflink: SendTerminateAck(10)
 state = Ack-Rcvd
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: deflink: State change Ack-Rcvd -->
 Req-Sent
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: deflink: RecvTerminateReq(11) state
 = Opened
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: deflink: LayerDown
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: deflink: SendTerminateAck(11) state
 = Opened
 Oct 19 21:54:27 shark ppp[59162]: tun0: LCP: deflink: State change Opened -->
 Stopping
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP: deflink: State change Req-Sent --> 
 Starting
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP: deflink: LayerFinish.
 Oct 19 21:54:27 shark ppp[59162]: tun0: CCP: deflink: State change Starting --> 
 Initial
 Oct 19 21:54:27 shark ppp[59162]: tun0: Phase: deflink: open -> lcp
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: deflink: State change Req-Sent -->
 Starting
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: deflink: LayerFinish.
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: Connect time: 0 secs: 0 octets in,
 0 octets out
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: : 0 packets in, 0 packets out
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP:  total 0 bytes/sec, peak 0
 bytes/sec on Sat Oct 19 21:54:27 2002
 Oct 19 21:54:27 shark ppp[59162]: tun0: IPCP: deflink: State change Starting -->
 Initial
 Oct 19 21:54:27 shark ppp[59162]: tun0: Phase: bundle: Terminate
 Oct 19 21:54:30 shark ppp[59162]: tun0: LCP: deflink: LayerFinish
 Oct 19 21:54:30 shark ppp[59162]: tun0: LCP: deflink: State change Stopping --> 
 Stopped
 Oct 19 21:54:30 shark ppp[59162]: tun0: LCP: deflink: State change Stopped -->
 Closed
 Oct 19 21:54:30 shark ppp[59162]: tun0: LCP: deflink: State change Closed -->
 Initial
 Oct 19 21:54:30 shark ppp[59162]: tun0: Phase: deflink: Disconnected!
 Oct 19 21:54:30 shark ppp[59162]: tun0: Phase: deflink: Connect time: 8 secs:
 530 octets in, 692 octets out
 Oct 19 21:54:30 shark ppp[59162]: tun0: Phase: deflink: : 24 packets in, 21
 packets out
 Oct 19 21:54:30 shark ppp[59162]: tun0: Phase:  total 152 bytes/sec, peak 244
 bytes/sec on Sat Oct 19 21:54:28 2002
 Oct 19 21:54:30 shark ppp[62047]: tun0: Phase: deflink: lcp -> closed
 Oct 19 21:54:30 shark ppp[62047]: tun0: Phase: bundle: Dead
 Oct 19 21:54:30 shark ppp[62047]: tun0: Phase: PPP Terminated (normal).
 === End ppp.log ===
 === Begin ppp.conf ===
 radius:
  set radius /etc/ppp/radius.conf
 dial-in:
  enable chap pap chap80nt chap81 passwdauth
 
 > set ifaddr x.x.x.x y.y.y.1-y.y.y.254
 
 да и чё-то не нравиться мне эта строчка
  accept dns
  load radius
 === End ppp.conf ===
 
 подскажите что сделать, мож из-за этой стротчки все беды
 
 Oleg
 
 ... XMMS not load
 --- GoldED+ 1.1.5 (FreeBSD 4.6.2-RELEASE i386)
  * Origin: 22:48  up 1 day, 50 mins, 7 users, load averages: 0,12  (2:5011/139)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 ppp+radius   Oleg Kuznetsov   19 Oct 2002 22:51:30 
 ppp+radius   Wadim Shkirmantov   19 Oct 2002 23:06:02 
 ppp+radius   Oleg Kuznetsov   20 Oct 2002 10:46:22 
 ppp+radius   Alexander Lunyov   21 Oct 2002 10:50:16 
 ppp+radius   Oleg Kuznetsov   21 Oct 2002 18:21:20 
 ppp+radius   Alexander Lunyov   21 Oct 2002 20:40:12 
 ppp+radius   Alexander Lunyov   21 Oct 2002 10:43:36 
 ppp+radius   Oleg Kuznetsov   21 Oct 2002 18:55:22 
Архивное /ru.unix.bsd/22953db19023.html, оценка 3 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional