LINUX.ORG.RU
ФорумAdmin

abills HELP!!!


0

0

Настроил, все работает, радиус запускается веб-админ abiils'a работает прописал NAS, пользователя делаю:

radtest ppp1 ppp1 127.0.0.1 0 pass 0 127.0.0.1 говорит:

Sending Access-Request of id 253 to 127.0.0.1 port 1812 User-Name = "ppp1" User-Password = "ppp1" NAS-IP-Address = 127.0.0.1 NAS-Port = 0 Framed-Protocol = PPP Re-sending Access-Request of id 253 to 127.0.0.1 port 1812 User-Name = "ppp1" User-Password = "ppp1" NAS-IP-Address = 127.0.0.1 NAS-Port = 0 Framed-Protocol = PPP rad_recv: Access-Reject packet from host 127.0.0.1:1812, id=253, length=47 Reply-Message = "Unknow server '127.0.0.1'"

radiusd -X говорит:

rad_recv: Access-Request packet from host 127.0.0.1:1026, id=253, length=62 User-Name = "ppp1" User-Password = "ppp1" NAS-IP-Address = 127.0.0.1 NAS-Port = 0 Framed-Protocol = PPP Processing the authorize section of radiusd.conf modcall: entering group authorize for request 7 radius_xlat: '/usr/abills/libexec/rauth.pl pre_auth' Exec-Program: /usr/abills/libexec/rauth.pl pre_auth Exec-Program output: Auth-Type := Accept Exec-Program-Wait: value-pairs: Auth-Type := Accept Exec-Program: returned: 0 modcall[authorize]: module "pre_auth" returns ok for request 7 modcall[authorize]: module "preprocess" returns ok for request 7 modcall[authorize]: module "mschap" returns noop for request 7 rlm_realm: No '@' in User-Name = "ppp1", looking up realm NULL rlm_realm: No such realm "NULL" modcall[authorize]: module "suffix" returns noop for request 7 users: Matched entry DEFAULT at line 1 modcall[authorize]: module "files" returns ok for request 7 modcall: leaving group authorize (returns ok) for request 7 rad_check_password: Found Auth-Type Accept rad_check_password: Auth-Type = Accept, accepting the user radius_xlat: '/usr/abills/libexec/rauth.pl' Exec-Program: /usr/abills/libexec/rauth.pl Exec-Program output: Reply-Message = "Unknow server '127.0.0.1'" Exec-Program-Wait: value-pairs: Reply-Message = "Unknow server '127.0.0.1'" Exec-Program: returned: 1 Found Post-Auth-Type Processing the post-auth section of radiusd.conf modcall: entering group REJECT for request 7 radius_xlat: '/usr/abills/libexec/rauth.pl post_auth' Exec-Program: /usr/abills/libexec/rauth.pl post_auth Exec-Program output: Exec-Program: returned: 0 modcall[post-auth]: module "post_auth" returns ok for request 7 modcall: leaving group REJECT (returns ok) for request 7 Delaying request 7 for 1 seconds Finished request 7 Going to the next request --- Walking the entire request list --- Waking up in 1 seconds... rad_recv: Access-Request packet from host 127.0.0.1:1026, id=253, length=62 Sending Access-Reject of id 253 to 127.0.0.1 port 1026 Reply-Message = "Unknow server '127.0.0.1'" --- Walking the entire request list --- Waking up in 2 seconds... --- Walking the entire request list --- Cleaning up request 7 ID 253 with timestamp 44d83df9 Nothing to do. Sleeping until we see a request.

abills.log :

2006-08-08 11:32:11 LOG_WARNING: AUTH [ppp1] NAS: 0 Unknow server '127.0.0.1' 2006-08-08 11:32:12 LOG_INFO: AUTH [ppp1] AUTH REJECT

HELP!!! очень надо, гарю!!!!


Настроил, все работает, радиус запускается веб-админ abiils'a работает прописал NAS, пользователя делаю: 

radtest ppp1 ppp1 127.0.0.1 0 pass 0 127.0.0.1
говорит: 

Sending Access-Request of id 253 to 127.0.0.1 port 1812
        User-Name = "ppp1"
        User-Password = "ppp1"
        NAS-IP-Address = 127.0.0.1
        NAS-Port = 0
        Framed-Protocol = PPP
Re-sending Access-Request of id 253 to 127.0.0.1 port 1812
        User-Name = "ppp1"
        User-Password = "ppp1"
        NAS-IP-Address = 127.0.0.1
        NAS-Port = 0
        Framed-Protocol = PPP
rad_recv: Access-Reject packet from host 127.0.0.1:1812, id=253, length=47
        Reply-Message = "Unknow server '127.0.0.1'"


radiusd -X говорит: 


rad_recv: Access-Request packet from host 127.0.0.1:1026, id=253, length=62
        User-Name = "ppp1"
        User-Password = "ppp1"
        NAS-IP-Address = 127.0.0.1
        NAS-Port = 0
        Framed-Protocol = PPP
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 7
radius_xlat:  '/usr/abills/libexec/rauth.pl pre_auth'
Exec-Program: /usr/abills/libexec/rauth.pl pre_auth
Exec-Program output: Auth-Type := Accept
Exec-Program-Wait: value-pairs: Auth-Type := Accept
Exec-Program: returned: 0
  modcall[authorize]: module "pre_auth" returns ok for request 7
  modcall[authorize]: module "preprocess" returns ok for request 7
  modcall[authorize]: module "mschap" returns noop for request 7
    rlm_realm: No '@' in User-Name = "ppp1", looking up realm NULL
    rlm_realm: No such realm "NULL"
  modcall[authorize]: module "suffix" returns noop for request 7
    users: Matched entry DEFAULT at line 1
  modcall[authorize]: module "files" returns ok for request 7
modcall: leaving group authorize (returns ok) for request 7
  rad_check_password:  Found Auth-Type Accept
  rad_check_password: Auth-Type = Accept, accepting the user
radius_xlat:  '/usr/abills/libexec/rauth.pl'
Exec-Program: /usr/abills/libexec/rauth.pl
Exec-Program output: Reply-Message = "Unknow server '127.0.0.1'"
Exec-Program-Wait: value-pairs: Reply-Message = "Unknow server '127.0.0.1'"
Exec-Program: returned: 1
  Found Post-Auth-Type
  Processing the post-auth section of radiusd.conf
modcall: entering group REJECT for request 7
radius_xlat:  '/usr/abills/libexec/rauth.pl post_auth'
Exec-Program: /usr/abills/libexec/rauth.pl post_auth
Exec-Program output:
Exec-Program: returned: 0
  modcall[post-auth]: module "post_auth" returns ok for request 7
modcall: leaving group REJECT (returns ok) for request 7
Delaying request 7 for 1 seconds
Finished request 7
Going to the next request
--- Walking the entire request list ---
Waking up in 1 seconds...
rad_recv: Access-Request packet from host 127.0.0.1:1026, id=253, length=62
Sending Access-Reject of id 253 to 127.0.0.1 port 1026
        Reply-Message = "Unknow server '127.0.0.1'"
--- Walking the entire request list ---
Waking up in 2 seconds...
--- Walking the entire request list ---
Cleaning up request 7 ID 253 with timestamp 44d83df9
Nothing to do.  Sleeping until we see a request.




abills.log : 

2006-08-08 11:32:11 LOG_WARNING: AUTH [ppp1] NAS: 0 Unknow server '127.0.0.1' 
2006-08-08 11:32:12 LOG_INFO: AUTH [ppp1] AUTH REJECT 

HELP!!! очень надо, горю!!!! 

Cast
() автор топика
Ответ на: комментарий от anonymous

Тогда: Reply-Message = "Unknow server '255.255.255.255'"

Проблема решилать путем настройки тарифов на abills

Но теберь другая беда pppoe не хочет разговаривать с радиусом

radiusclient стоит

nas сервер прописан но дело в том, что pppoe даже не обращается к радиусу просто зависает в пямяти и все:
pppoe-server-options:

logfile /etc/ppp/pppoe.log
debug
mtu 1472
mru 1472
auth
require-pap
#require-chap
default-asyncmap
ktune
lcp-echo-interval 20
lcp-echo-failure 2
ms-dns 10.0.0.1
plugin radius.so
#plugin radattr.so
10.0.0.1:
nobsdcomp
noccp
noendpoint
noipdefault
noipx
novj
receive-all

------------------------

pppoe.conf

Plugin radius.so loaded.
RADIUS plugin initialized.
using channel 9
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <mru 1472> <auth pap> <magic 0xa8ae59cd>]
sent [LCP ConfReq id=0x1 <mru 1472> <auth pap> <magic 0xa8ae59cd>]
rcvd [LCP ConfReq id=0x2 <mru 1492> <magic 0x36982263> <callback CBCP> <mrru 1614> <endpoint [local:69.2e.2f.52.78.66.47.6c.84.44.ab.b8.4b.72.46.c0.00.00.00.00]>]
sent [LCP ConfRej id=0x2 <callback CBCP> <mrru 1614> <endpoint [local:69.2e.2f.52.78.66.47.6c.84.44.ab.b8.4b.72.46.c0.00.00.00.00]>]
sent [LCP ConfReq id=0x1 <mru 1472> <auth pap> <magic 0xa8ae59cd>]
sent [LCP ConfReq id=0x1 <mru 1472> <auth pap> <magic 0xa8ae59cd>]
rcvd [LCP ConfReq id=0x4 <mru 1492> <magic 0x36982263> <callback CBCP> <mrru 1614> <endpoint [local:69.2e.2f.52.78.66.47.6c.84.44.ab.b8.4b.72.46.c0.00.00.00.00]>]
sent [LCP ConfRej id=0x4 <callback CBCP> <mrru 1614> <endpoint [local:69.2e.2f.52.78.66.47.6c.84.44.ab.b8.4b.72.46.c0.00.00.00.00]>]
sent [LCP ConfReq id=0x1 <mru 1472> <auth pap> <magic 0xa8ae59cd>]
sent [LCP ConfReq id=0x1 <mru 1472> <auth pap> <magic 0xa8ae59cd>]
sent [LCP ConfReq id=0x1 <mru 1472> <auth pap> <magic 0xa8ae59cd>]
rcvd [LCP EchoReq id=0x0 magic=0x0 17 01 69 2e]
sent [LCP ConfReq id=0x1 <mru 1472> <auth pap> <magic 0xa8ae59cd>]
rcvd [LCP ConfReq id=0x7 <mru 1492> <magic 0x36982263> <callback CBCP> <mrru 1614> <endpoint [local:69.2e.2f.52.78.66.47.6c.84.44.ab.b8.4b.72.46.c0.00.00.00.00]>]
sent [LCP ConfRej id=0x7 <callback CBCP> <mrru 1614> <endpoint [local:69.2e.2f.52.78.66.47.6c.84.44.ab.b8.4b.72.46.c0.00.00.00.00]>]
sent [LCP ConfReq id=0x1 <mru 1472> <auth pap> <magic 0xa8ae59cd>]
sent [LCP ConfReq id=0x1 <mru 1472> <auth pap> <magic 0xa8ae59cd>]
rcvd [LCP EchoReq id=0x0 magic=0x0 17 01 69 2e]
LCP: timeout sending Config-Requests
Connection terminated.
using channel 10
Using interface ppp0
Connect: ppp0 <--> /dev/pts/3
Waiting for 2 child processes...
  script /usr/sbin/pppoe -n -I eth0 -e 1:00:10:4b:9f:0b:9a -S '', pid 5549
  script /usr/sbin/pppoe -n -I eth0 -e 1:00:10:4b:9f:0b:9a -S '', pid 5538
sent [LCP ConfReq id=0x2 <mru 1472> <auth pap> <magic 0x4ddc8671>]
sent [LCP ConfReq id=0x2 <mru 1472> <auth pap> <magic 0x4ddc8671>]
sending SIGTERM to process 5549
sending SIGTERM to process 5538
tcflush failed: Bad file descriptor



и 2 процесса pppoe остаются висеть в памяти

Cast
() автор топика
Ответ на: комментарий от Cast

в упор не вижу тега radius-config-file

у вообще как ты думаешь, вот ты сказал демону pppd, дескать используй plugin radius.so

а где лежит радиус сервер ты указал ему? ключ для соединения?

anonymous
()
Ответ на: комментарий от anonymous

Подскажи, как, я ставил radiusclient и сказал ему в файле servers что сервер 
127.0.0.1 pass

Что надо, чтобы увиделся радиус, хотя я поставил ppp-2.4.3 говорят, что он глючный???

Cast
() автор топика
Ответ на: комментарий от Cast

1) man pppd-radius на предмет radius-config-file

2) в radiusclient.conf все подробно описано

> я поставил ppp-2.4.3 говорят, что он глючный???

не слышал про его глюки. у меня уже полгода работает, правда только для диалапа

anonymous
()
Ответ на: комментарий от anonymous

Таже ерунда :(((
---------------log-----------
LCP: timeout sending Config-Requests
Connection terminated.
Using interface ppp0
Connect: ppp0 <--> /dev/pts/8
tcflush failed: Bad file descriptor
-----------------------------


# PPP options for the PPPoE server
# LIC: GPL
logfile /etc/ppp/pppoe.log
plugin /etc/ppp/radius.so
radius-config-file /etc/radiusclient/radiusclient.conf
lcp-echo-interval 30
lcp-echo-failure 4
mtu 1452
mru 1452
ms-dns 10.0.0.1
require-pap
noauth

Cast
() автор топика
Ответ на: комментарий от Cast

если pppoe выдает tcflush failed: Bad file descriptor значит его надо собрать из исходников с поддержкой kernel-mode и запускать с параметром -к

Cast
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.