Проблема подключения в 0.40

Ответить
Xramovnik
Сообщения: 98
Зарегистрирован: Сб апр 12, 2008 7:18 am
Откуда: Ставропольский край
Контактная информация:

Проблема подключения в 0.40

Сообщение Xramovnik »

После перехода на 0.4 перестали подключаться пользователи по PPPoE. Лог ppp пишет следующее:

Код: Выделить всё

RADIUS plugin initialized.
Plugin radattr.so loaded.
RADATTR plugin initialized.
using channel 21
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <mru 1472> <auth eap> <magic 0x7bcb2672>]
rcvd [LCP ConfNak id=0x1 <auth chap MS-v2>]
sent [LCP ConfReq id=0x2 <mru 1472> <auth chap MS-v2> <magic 0x7bcb2672>]
rcvd [LCP ConfAck id=0x2 <mru 1472> <auth chap MS-v2> <magic 0x7bcb2672>]
rcvd [LCP ConfReq id=0x1 <mru 1466> <magic 0x5e8e759d> <callback CBCP>]
sent [LCP ConfRej id=0x1 <callback CBCP>]
rcvd [LCP ConfReq id=0x2 <mru 1466> <magic 0x5e8e759d>]
sent [LCP ConfAck id=0x2 <mru 1466> <magic 0x5e8e759d>]
sent [LCP EchoReq id=0x0 magic=0x7bcb2672]
sent [CHAP Challenge id=0xd0 <a57d50c871ff0adfaa43596cc699dbff>, name = "net"]
rcvd [LCP Ident id=0x3 magic=0x5e8e759d "MSRASV5.10"]
rcvd [LCP Ident id=0x4 magic=0x5e8e759d "MSRAS-1-SYSADMIN"]
rcvd [LCP EchoRep id=0x0 magic=0x5e8e759d]
rcvd [CHAP Response id=0xd0 <776344cdf007136864a5433cdf50bfff00000000000000002e6
ecf232f1c43e69160a2717aa1489a3e171832311a6ef900>, name = "uri"]
RADATTR plugin wrote 8 line(s) to file /var/run/radattr.ppp0.

Peer uri failed CHAP authentication
sent [CHAP Failure id=0xd0 ""]
sent [LCP TermReq id=0x3 "Authentication failed"]
rcvd [LCP TermAck id=0x3 "Authentication failed"]
Connection terminated.
pppoe: read (asyncReadFromPPP): Session 12: Input/output error
Waiting for 1 child processes...
  script /usr/sbin/pppoe -n -I eth0 -e 12:00:1b:38:4e:19:fd -S '', pid 2966
Terminating on signal 15
sending SIGTERM to process 2966
RADATTR plugin removed file /var/run/radattr.ppp0
Однако в логе Abills'а рисуется:

Код: Выделить всё

2008-11-10 19:08:40 LOG_INFO: AUTH [uri] NAS: 1 (127.0.0.1) GT: 0.20607
т.е. вроде клиент подключен.

radtest дает следующее:

Код: Выделить всё

# radtest uri 123456 127.0.0.1:1812 0 testing123 0 127.0.0.1
Sending Access-Request of id 47 to 127.0.0.1 port 1812
        User-Name = "uri"
        User-Password = "123456"
        NAS-IP-Address = 127.0.0.1
        NAS-Port = 0
        Framed-Protocol = PPP
rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=47, length=68
        Acct-Interim-Interval = 60
        Session-Timeout = 16666
        PPPD-Upstream-Speed-Limit = Bridge-No
        Octets-Direction = 2
        Framed-IP-Address = 172.30.1.179
        Session-Octets-Limit = 2146435072
        Framed-IP-Netmask = 255.255.255.255
        PPPD-Downstream-Speed-Limit = Send-Auth-None

дебаг радиуса выдает:

Код: Выделить всё

net:/var/log# freeradius -X
Starting - reading configuration files ...
reread_config:  reading radiusd.conf
Config:   including file: /etc/freeradius/proxy.conf
Config:   including file: /etc/freeradius/clients.conf
Config:   including file: /etc/freeradius/snmp.conf
Config:   including file: /etc/freeradius/eap.conf
Config:   including file: /etc/freeradius/sql.conf
 main: prefix = "/usr"
 main: localstatedir = "/var"
 main: logdir = "/var/log/freeradius"
 main: libdir = "/usr/lib/freeradius"
 main: radacctdir = "/var/log/freeradius/radacct"
 main: hostname_lookups = no
 main: max_request_time = 30
 main: cleanup_delay = 5
 main: max_requests = 1024
 main: delete_blocked_requests = 0
 main: port = 0
 main: allow_core_dumps = no
 main: log_stripped_names = no
 main: log_file = "/var/log/freeradius/radius.log"
 main: log_auth = no
 main: log_auth_badpass = no
 main: log_auth_goodpass = no
 main: pidfile = "/var/run/freeradius/freeradius.pid"
 main: user = "freerad"
 main: group = "freerad"
 main: usercollide = no
 main: lower_user = "no"
 main: lower_pass = "no"
 main: nospace_user = "no"
 main: nospace_pass = "no"
 main: checkrad = "/usr/sbin/checkrad"
 main: proxy_requests = yes
 proxy: retry_delay = 5
 proxy: retry_count = 3
 proxy: synchronous = no
 proxy: default_fallback = yes
 proxy: dead_time = 120
 proxy: post_proxy_authorize = no
 proxy: wake_all_if_all_dead = no
 security: max_attributes = 200
 security: reject_delay = 1
 security: status_server = no
 main: debug_level = 0
read_config_files:  reading dictionary
read_config_files:  reading naslist
Using deprecated naslist file.  Support for this will go away soon.
read_config_files:  reading clients
read_config_files:  reading realms
radiusd:  entering modules setup
Module: Library search path is /usr/lib/freeradius
Module: Loaded exec
 exec: wait = yes
 exec: program = "(null)"
 exec: input_pairs = "request"
 exec: output_pairs = "(null)"
 exec: packet_type = "(null)"
rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Module: Instantiated exec (exec)
Module: Loaded expr
Module: Instantiated expr (expr)
Module: Loaded PAP
 pap: encryption_scheme = "crypt"
Module: Instantiated pap (pap)
Module: Loaded CHAP
Module: Instantiated chap (chap)
Module: Loaded MS-CHAP
 mschap: use_mppe = yes
 mschap: require_encryption = no
 mschap: require_strong = no
 mschap: with_ntdomain_hack = no
 mschap: passwd = "(null)"
 mschap: ntlm_auth = "(null)"
Module: Instantiated mschap (mschap)
Module: Loaded System
 unix: cache = no
 unix: passwd = "(null)"
 unix: shadow = "/etc/shadow"
 unix: group = "(null)"
 unix: radwtmp = "/var/log/freeradius/radwtmp"
 unix: usegroup = no
 unix: cache_reload = 600
Module: Instantiated unix (unix)
Module: Loaded eap
 eap: default_eap_type = "md5"
 eap: timer_expire = 60
 eap: ignore_unknown_eap_types = no
 eap: cisco_accounting_username_bug = no
rlm_eap: Loaded and initialized type md5
rlm_eap: Loaded and initialized type leap
 gtc: challenge = "Password: "
 gtc: auth_type = "PAP"
rlm_eap: Loaded and initialized type gtc
 mschapv2: with_ntdomain_hack = no
rlm_eap: Loaded and initialized type mschapv2
Module: Instantiated eap (eap)
Module: Loaded preprocess
 preprocess: huntgroups = "/etc/freeradius/huntgroups"
 preprocess: hints = "/etc/freeradius/hints"
 preprocess: with_ascend_hack = no
 preprocess: ascend_channels_per_line = 23
 preprocess: with_ntdomain_hack = no
 preprocess: with_specialix_jetstream_hack = no
 preprocess: with_cisco_vsa_hack = no
 preprocess: with_alvarion_vsa_hack = no
Module: Instantiated preprocess (preprocess)
Module: Loaded files
 files: usersfile = "/etc/freeradius/users"
 files: acctusersfile = "/etc/freeradius/acct_users"
 files: preproxy_usersfile = "/etc/freeradius/preproxy_users"
 files: compat = "no"
Module: Instantiated files (files)
Module: Loaded Acct-Unique-Session-Id
 acct_unique: key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, NAS-Port"
Module: Instantiated acct_unique (acct_unique)
Module: Loaded realm
 realm: format = "suffix"
 realm: delimiter = "@"
 realm: ignore_default = no
 realm: ignore_null = no
Module: Instantiated realm (suffix)
Module: Loaded detail
 detail: detailfile = "/var/log/freeradius/radacct/%{Client-IP-Address}/detail-%Y%m%d"
 detail: detailperm = 384
 detail: dirperm = 493
 detail: locking = no
Module: Instantiated detail (detail)
Module: Loaded radutmp
 radutmp: filename = "/var/log/freeradius/radutmp"
 radutmp: username = "%{User-Name}"
 radutmp: case_sensitive = yes
 radutmp: check_with_nas = yes
 radutmp: perm = 384
 radutmp: callerid = yes
Module: Instantiated radutmp (radutmp)
Listening on authentication *:1812
Listening on accounting *:1813
Ready to process requests.
rad_recv: Access-Request packet from host 127.0.0.1:32782, id=248, length=131
        Service-Type = Framed-User
        Framed-Protocol = PPP
        User-Name = "uri"
        MS-CHAP-Challenge = 0x81ea24611e29f6f24458e72930f66fb3
        MS-CHAP2-Response = 0x3d00124bf03bc12ca10305762531abb0df1a00000000000000002433694d54a3cf0d66738fb14d6598fce367eb0f7006c4ab
        NAS-IP-Address = 127.0.0.1        NAS-Port = 0
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 0
  modcall[authorize]: module "preprocess" returns ok for request 0
    users: Matched entry DEFAULT at line 53
  modcall[authorize]: module "files" returns ok for request 0
modcall: leaving group authorize (returns ok) for request 0
  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: Acct-Interim-Interval = 60, Session-Timeout = 16380, PPPD-Upstream-Speed-Limit = 0, Octets-Direction = 2, Framed-IP-Address = 172.30.2.20, Session-Octets-Limit = 2146435072, Framed-IP-Netmask = 255.255.255.255, PPPD-Downstream-Speed-Limit = 0,
Exec-Program-Wait: value-pairs: Acct-Interim-Interval = 60, Session-Timeout = 16380, PPPD-Upstream-Speed-Limit = 0, Octets-Direction = 2, Framed-IP-Address = 172.30.2.20, Session-Octets-Limit = 2146435072, Framed-IP-Netmask = 255.255.255.255, PPPD-Downstream-Speed-Limit = 0,
Exec-Program: returned: 0
Sending Access-Accept of id 248 to 127.0.0.1 port 32782
        Acct-Interim-Interval = 60
        Session-Timeout = 16380
        PPPD-Upstream-Speed-Limit = Bridge-No
        Octets-Direction = 2
        Framed-IP-Address = 172.30.2.20
        Session-Octets-Limit = 2146435072
        Framed-IP-Netmask = 255.255.255.255
        PPPD-Downstream-Speed-Limit = Send-Auth-None
Finished request 0
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
--- Walking the entire request list ---
Cleaning up request 0 ID 248 with timestamp 4918605b
Nothing to do.  Sleeping until we see a request.
Последний раз редактировалось Xramovnik Пн ноя 10, 2008 4:36 pm, всего редактировалось 1 раз.

~AsmodeuS~
Site Admin
Сообщения: 5749
Зарегистрирован: Пт янв 28, 2005 3:11 pm
Контактная информация:

Сообщение ~AsmodeuS~ »

какойто из атрибутов система не понимает

ran
Сообщения: 2298
Зарегистрирован: Вс окт 21, 2007 2:29 pm

Сообщение ran »

~AsmodeuS~ писал(а):какойто из атрибутов система не понимает
если бы не понимала то здесь
Exec-Program-Wait: value-pairs:
былобы plaintext: кстати а где аккаунт-реквест? его бы посмотреть или до старт пакета дело не доходит?

Xramovnik
Сообщения: 98
Зарегистрирован: Сб апр 12, 2008 7:18 am
Откуда: Ставропольский край
Контактная информация:

Сообщение Xramovnik »

ran писал(а): кстати а где аккаунт-реквест? его бы посмотреть
до него не доходит дело
Последний раз редактировалось Xramovnik Пн ноя 10, 2008 5:05 pm, всего редактировалось 1 раз.

Xramovnik
Сообщения: 98
Зарегистрирован: Сб апр 12, 2008 7:18 am
Откуда: Ставропольский край
Контактная информация:

Сообщение Xramovnik »

дебаг радиуса на версии 0.37 (когда подключение проходит нормально):

Код: Выделить всё

Ready to process requests.
rad_recv: Access-Request packet from host 127.0.0.1:32776, id=52, length=131
        Service-Type = Framed-User
        Framed-Protocol = PPP
        User-Name = "uri"
        MS-CHAP-Challenge = 0x2645c2edf311367b110e34c6883bb8c9
        MS-CHAP2-Response = 0x990097e41427658d3df8328e9e98a0577fde00000000000000000a8a62bcdc3c9526d19207cc0c72cb7396094e83e4118a5b
        NAS-IP-Address = 127.0.0.1
        NAS-Port = 0
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 0
  modcall[authorize]: module "preprocess" returns ok for request 0
    users: Matched entry DEFAULT at line 53
  modcall[authorize]: module "files" returns ok for request 0
modcall: leaving group authorize (returns ok) for request 0
  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: Session-Timeout = 14329, MS-MPPE-Encryption-Types = 0x00000006, Session-Octets-Limit = 2145579854.0016, PPPD-Downstream-Speed-Limit = 0, MS-CHAP2-SUCCESS = 0x99533d43303345363746433733394131424141384145343541434536424541314334453236343141373635, MS-MPPE-Encryption-Policy = 0x00000001, Acct-Interim-Interval = 60, PPPD-Upstream-Speed-Limit = 0, Octets-Direction = 2, Framed-IP-Address = 172.30.2.54, Framed-IP-Netmask = 255.255.255.255,
Exec-Program-Wait: value-pairs: Session-Timeout = 14329, MS-MPPE-Encryption-Types = 0x00000006, Session-Octets-Limit = 2145579854.0016, PPPD-Downstream-Speed-Limit = 0, MS-CHAP2-SUCCESS = 0x99533d43303345363746433733394131424141384145343541434536424541314334453236343141373635, MS-MPPE-Encryption-Policy = 0x00000001, Acct-Interim-Interval = 60, PPPD-Upstream-Speed-Limit = 0, Octets-Direction = 2, Framed-IP-Address = 172.30.2.54, Framed-IP-Netmask = 255.255.255.255,
Exec-Program: returned: 0
Sending Access-Accept of id 52 to 127.0.0.1 port 32776
        Session-Timeout = 14329
        MS-MPPE-Encryption-Types = 0x00000006
        Session-Octets-Limit = 2145579854
        PPPD-Downstream-Speed-Limit = Send-Auth-None
        MS-CHAP2-Success = 0x99533d43303345363746433733394131424141384145343541434536424541314334453236343141373635
        MS-MPPE-Encryption-Policy = 0x00000001
        Acct-Interim-Interval = 60
        PPPD-Upstream-Speed-Limit = Bridge-No
        Octets-Direction = 2
        Framed-IP-Address = 172.30.2.54
        Framed-IP-Netmask = 255.255.255.255
Finished request 0
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
rad_recv: Accounting-Request packet from host 127.0.0.1:32776, id=53, length=95
        Acct-Session-Id = "4918685F0C4500"
        User-Name = "uri"
        Acct-Status-Type = Start
        Service-Type = Framed-User
        Framed-Protocol = PPP
        Acct-Authentic = RADIUS
        NAS-Port-Type = Virtual
        Framed-IP-Address = 172.30.2.54
        NAS-IP-Address = 127.0.0.1
        NAS-Port = 0
        Acct-Delay-Time = 0
  Processing the preacct section of radiusd.conf
modcall: entering group preacct for request 1
  modcall[preacct]: module "preprocess" returns noop for request 1
rlm_acct_unique: Hashing 'NAS-Port = 0,Client-IP-Address = 127.0.0.1,NAS-IP-Address = 127.0.0.1,Acct-Session-Id = "4918685F0C4500",User-Name = "uri"'
rlm_acct_unique: Acct-Unique-Session-ID = "060101fa43d5dfaa".
  modcall[preacct]: module "acct_unique" returns ok for request 1
    rlm_realm: No '@' in User-Name = "uri", looking up realm NULL
    rlm_realm: No such realm "NULL"
  modcall[preacct]: module "suffix" returns noop for request 1
    acct_users: Matched entry DEFAULT at line 17
  modcall[preacct]: module "files" returns ok for request 1
modcall: leaving group preacct (returns ok) for request 1
  Processing the accounting section of radiusd.conf
modcall: entering group accounting for request 1
radius_xlat:  '/var/log/freeradius/radacct/127.0.0.1/detail-20081110'
rlm_detail: /var/log/freeradius/radacct/%{Client-IP-Address}/detail-%Y%m%d expands to /var/log/freeradius/radacct/127.0.0.1/detail-20081110
  modcall[accounting]: module "detail" returns ok for request 1
  modcall[accounting]: module "unix" returns ok for request 1
radius_xlat:  '/var/log/freeradius/radutmp'
radius_xlat:  'uri'
  modcall[accounting]: module "radutmp" returns ok for request 1
modcall: leaving group accounting (returns ok) for request 1
radius_xlat:  '/usr/abills/libexec/racct.pl'
Exec-Program: /usr/abills/libexec/racct.pl
Exec-Program output:
Exec-Program: returned: 0
Sending Accounting-Response of id 53 to 127.0.0.1 port 32776
Finished request 1
При авторизации версии 0.4 нет следующих строк, возвращаемых скриптом rauth.pl:

Код: Выделить всё

Sending Access-Accept of id 52 to 127.0.0.1 port 32776
        MS-MPPE-Encryption-Types = 0x00000006
        MS-CHAP2-Success = 0x99533d43303345363746433733394131424141384145343541434536424541314334453236343141373635
        MS-MPPE-Encryption-Policy = 0x00000001 

ran
Сообщения: 2298
Зарегистрирован: Вс окт 21, 2007 2:29 pm

Сообщение ran »

При авторизации версии 0.4 нет следующих строк, возвращаемых скриптом rauth.pl:
ыыы... а словари радиуссервера имени мелкософта у тебя откуда берутся:

1. когда 0.37
2. когда 0.4

небось понавставлял в какой нибудь дикшинари из каталога абиллся который затирается при переписывании версии и клюёшь людям мозги :D

Xramovnik
Сообщения: 98
Зарегистрирован: Сб апр 12, 2008 7:18 am
Откуда: Ставропольский край
Контактная информация:

Сообщение Xramovnik »

небось понавставлял в какой нибудь дикшинари из каталога абиллся который затирается при переписывании версии и клюёшь людям мозги :D
я конечно иногда ламерствую но не настолько, словарь мелкософта лежит там же где ему и положено в /etc/radiusclient/

ran
Сообщения: 2298
Зарегистрирован: Вс окт 21, 2007 2:29 pm

Сообщение ran »

я конечно иногда ламерствую но не настолько... в /etc/radiusclient/
а насколько? :D
ran писал(а):а словари радиуссервера имени мелкософта у тебя откуда берутся
здесь разве что-то сказано про радиусклиента? :D

Xramovnik
Сообщения: 98
Зарегистрирован: Сб апр 12, 2008 7:18 am
Откуда: Ставропольский край
Контактная информация:

Сообщение Xramovnik »

В сервере в папке /etc/freeradius/ есть только один словарь dictionary :D

~AsmodeuS~
Site Admin
Сообщения: 5749
Зарегистрирован: Пт янв 28, 2005 3:11 pm
Контактная информация:

Сообщение ~AsmodeuS~ »

я думаю что нудно просмореть ралиус клиента на

парамітрі типа

PPPD-Downstream-Speed-Limit = 0,

и другие параметрі

далиус отрабатывает все правильно

Ответить