FreeRadius i winXP
8 отговора
306 прегледа
FreeRadius i winXP
Здрасти на висчки..........
а пореден път имам въпросче за радиус сървър и по точно въпроса е свързан за етапа когато windows машината се опита да се свърже към мрежата през access point-a.
Ще обясня по подробно какъв е проблема:
1. Имаме вътрешна мрежа с ИП 192.168.0.0
2. Имаме машина с инсталиран радиус който е конфигуриран да работи с EAP/PEAP удостоверяване.
3. Имаме access point на който е зададено да използва РАДИУСА да проверява дали даден потребител който иска да се свърже към мрежата има права да направи това т.е. потребителя требе да даде парола която access point-а изпраща на радиуса и чака отговор от радиуса дали да допусне потребителя до мрежата или да му откаже достъп.
Access pint-a представлява NAS сървър.
4. Имаме laptop с инсталиран winXP и SP2.
В файла users на радиус сървъра съм задал
"testuser" User-Password == "Secret149"
Пускам радиуса да работи и пробрав да се свържа с laptop-а към мрежата през access point-а. На laptop-а съм конфигурирал wireless-a да използва PEAP authentication. Когато се опитам да се свържа към мрежата ми иска password username и domain. Въвеждам си паралота и username-а но нищо не става. Не мога да се свържа....
По лога на радиуса вигдам че е потребителя с laptop-а се е опитал да се свърже но му е отказан достъп.
Ако някой има идея.... ще съм благодарен да я сподели....
а пореден път имам въпросче за радиус сървър и по точно въпроса е свързан за етапа когато windows машината се опита да се свърже към мрежата през access point-a.
Ще обясня по подробно какъв е проблема:
1. Имаме вътрешна мрежа с ИП 192.168.0.0
2. Имаме машина с инсталиран радиус който е конфигуриран да работи с EAP/PEAP удостоверяване.
3. Имаме access point на който е зададено да използва РАДИУСА да проверява дали даден потребител който иска да се свърже към мрежата има права да направи това т.е. потребителя требе да даде парола която access point-а изпраща на радиуса и чака отговор от радиуса дали да допусне потребителя до мрежата или да му откаже достъп.
Access pint-a представлява NAS сървър.
4. Имаме laptop с инсталиран winXP и SP2.
В файла users на радиус сървъра съм задал
"testuser" User-Password == "Secret149"
Пускам радиуса да работи и пробрав да се свържа с laptop-а към мрежата през access point-а. На laptop-а съм конфигурирал wireless-a да използва PEAP authentication. Когато се опитам да се свържа към мрежата ми иска password username и domain. Въвеждам си паралота и username-а но нищо не става. Не мога да се свържа....
По лога на радиуса вигдам че е потребителя с laptop-а се е опитал да се свърже но му е отказан достъп.
Ако някой има идея.... ще съм благодарен да я сподели....
Re: FreeRadius i winXP
Пусни радиуса със -Х и гледай внимателно защо всъщност отхвърля заявката.
Нанайси нема стане.
Нанайси нема стане.
Re: FreeRadius i winXP
Аз така и правя.
Пише че след проверката на паролата и потребителското дава Reject.
Пише че след проверката на паролата и потребителското дава Reject.
Re: FreeRadius i winXP
1. radtest-a какво ти дава?
2. в моя файл users е малко по-различно:
username Password="password"
TANSTAAFL! There AiNt Such Thing As A Free Lunch
2. в моя файл users е малко по-различно:
username Password="password"
TANSTAAFL! There AiNt Such Thing As A Free Lunch
Re: FreeRadius i winXP
Аз си мисля че бозата идва от сертификатите от който се нуждае радиуса за да работи с PEAP или TLS...
Ако сложа
default_eap_type = md5 ще ми трябват ли сертификати....?
Ако сложа
default_eap_type = md5 ще ми трябват ли сертификати....?
Re: FreeRadius i winXP
check атрибутите леко изискват оператор :=
= и == са за reply атрибутите, които връща радиус сървъра кън NAS-a
огледай си юзърфайла
the lord of destruction
= и == са за reply атрибутите, които връща радиус сървъра кън NAS-a
огледай си юзърфайла
the lord of destruction
Re: FreeRadius i winXP
извинявам се, изисква :=. когато ползваш SQL
ако си ползваш нормално юзърфайл, изискването е всички check атрибути да са на ПЪРВИЯ ред
я си дай примерен запис за потребител ?
пусни freeradius -xxx и дай всичко от access-request пакет-а надолу от лога
the lord of destruction
ако си ползваш нормално юзърфайл, изискването е всички check атрибути да са на ПЪРВИЯ ред
я си дай примерен запис за потребител ?
пусни freeradius -xxx и дай всичко от access-request пакет-а надолу от лога
the lord of destruction
Редактирано от seo на
Re: FreeRadius i winXP
В users съм задал:
user1 User-Password == "password1"
В eap.conf съм задал:
default_eap_type = md5
В clients.conf
client 192.168.0.0/24 {
secret = qwerty
shortname = AP1
}
Сега лога:
rad_recv: Access-Request packet from host 192.168.0.252:2049, id=138, length=167
User-Name = "user1"
NAS-IP-Address = 192.168.0.252
NAS-Port = 0
Called-Station-Id = "004f620497e2"
Calling-Station-Id = "000c76710264"
NAS-Identifier = "Realtek Access Point. 8181"
Framed-MTU = 1400
NAS-Port-Type = Wireless-802.11
Service-Type = Framed-User
Connect-Info = "CONNECT 11Mbps 802.11b"
EAP-Message = 0x0200000a017573657231
Message-Authenticator = 0xea3f336700f549dddc996a3cb0ada988
Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 0
modcall[authorize]: module "preprocess" returns ok for request 0
modcall[authorize]: module "chap" returns noop for request 0
modcall[authorize]: module "mschap" returns noop for request 0
rlm_realm: No '@' in User-Name = "user1", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[authorize]: module "suffix" returns noop for request 0
rlm_eap: EAP packet type response id 0 length 10
rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
modcall[authorize]: module "eap" returns updated for request 0
users: Matched entry DEFAULT at line 152
users: Matched entry DEFAULT at line 171
users: Matched entry user1 at line 216
modcall[authorize]: module "files" returns ok for request 0
modcall: group authorize returns updated for request 0
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
Processing the authenticate section of radiusd.conf
modcall: entering group authenticate for request 0
rlm_eap: EAP Identity
rlm_eap: processing type md5
rlm_eap_md5: Issuing Challenge
modcall[authenticate]: module "eap" returns handled for request 0
modcall: group authenticate returns handled for request 0
Sending Access-Challenge of id 138 to 192.168.0.252:2049
Framed-IP-Address = 255.255.255.254
Framed-MTU = 576
Service-Type = Framed-User
EAP-Message = 0x010100160410384a670aa432045ab5b98d58f1144bba
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x3b306953004ebeb8c5ca0f32cac6e03e
Finished request 0
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
rad_recv: Access-Request packet from host 192.168.0.252:2049, id=139, length=175
User-Name = "user1"
NAS-IP-Address = 192.168.0.252
NAS-Port = 0
Called-Station-Id = "004f620497e2"
Calling-Station-Id = "000c76710264"
NAS-Identifier = "Realtek Access Point. 8181"
NAS-Port-Type = Wireless-802.11
Service-Type = Framed-User
Connect-Info = "CONNECT 11Mbps 802.11b"
EAP-Message = 0x020100060319
State = 0x3b306953004ebeb8c5ca0f32cac6e03e
Message-Authenticator = 0x5d22f3709594a6492105c70a996ac900
Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 1
modcall[authorize]: module "preprocess" returns ok for request 1
modcall[authorize]: module "chap" returns noop for request 1
modcall[authorize]: module "mschap" returns noop for request 1
rlm_realm: No '@' in User-Name = "user1", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[authorize]: module "suffix" returns noop for request 1
rlm_eap: EAP packet type response id 1 length 6
rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
modcall[authorize]: module "eap" returns updated for request 1
users: Matched entry DEFAULT at line 152
users: Matched entry DEFAULT at line 171
users: Matched entry user1 at line 216
modcall[authorize]: module "files" returns ok for request 1
modcall: group authorize returns updated for request 1
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
Processing the authenticate section of radiusd.conf
modcall: entering group authenticate for request 1
rlm_eap: Request found, released from the list
rlm_eap: EAP NAK
rlm_eap: EAP-NAK asked for EAP-Type/peap
rlm_eap: No such EAP type peap
rlm_eap: Failed in EAP select
modcall[authenticate]: module "eap" returns invalid for request 1
modcall: group authenticate returns invalid for request 1
auth: Failed to validate the user.
Delaying request 1 for 1 seconds
Finished request 1
Going to the next request
Waking up in 6 seconds...
--- Walking the entire request list ---
Cleaning up request 0 ID 138 with timestamp 434bdc4a
Sending Access-Reject of id 139 to 192.168.0.252:2049
EAP-Message = 0x04010004
Message-Authenticator = 0x00000000000000000000000000000000
Cleaning up request 1 ID 139 with timestamp 434bdc4a
Nothing to do. Sleeping until we see a request.
user1 User-Password == "password1"
В eap.conf съм задал:
default_eap_type = md5
В clients.conf
client 192.168.0.0/24 {
secret = qwerty
shortname = AP1
}
Сега лога:
rad_recv: Access-Request packet from host 192.168.0.252:2049, id=138, length=167
User-Name = "user1"
NAS-IP-Address = 192.168.0.252
NAS-Port = 0
Called-Station-Id = "004f620497e2"
Calling-Station-Id = "000c76710264"
NAS-Identifier = "Realtek Access Point. 8181"
Framed-MTU = 1400
NAS-Port-Type = Wireless-802.11
Service-Type = Framed-User
Connect-Info = "CONNECT 11Mbps 802.11b"
EAP-Message = 0x0200000a017573657231
Message-Authenticator = 0xea3f336700f549dddc996a3cb0ada988
Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 0
modcall[authorize]: module "preprocess" returns ok for request 0
modcall[authorize]: module "chap" returns noop for request 0
modcall[authorize]: module "mschap" returns noop for request 0
rlm_realm: No '@' in User-Name = "user1", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[authorize]: module "suffix" returns noop for request 0
rlm_eap: EAP packet type response id 0 length 10
rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
modcall[authorize]: module "eap" returns updated for request 0
users: Matched entry DEFAULT at line 152
users: Matched entry DEFAULT at line 171
users: Matched entry user1 at line 216
modcall[authorize]: module "files" returns ok for request 0
modcall: group authorize returns updated for request 0
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
Processing the authenticate section of radiusd.conf
modcall: entering group authenticate for request 0
rlm_eap: EAP Identity
rlm_eap: processing type md5
rlm_eap_md5: Issuing Challenge
modcall[authenticate]: module "eap" returns handled for request 0
modcall: group authenticate returns handled for request 0
Sending Access-Challenge of id 138 to 192.168.0.252:2049
Framed-IP-Address = 255.255.255.254
Framed-MTU = 576
Service-Type = Framed-User
EAP-Message = 0x010100160410384a670aa432045ab5b98d58f1144bba
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x3b306953004ebeb8c5ca0f32cac6e03e
Finished request 0
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
rad_recv: Access-Request packet from host 192.168.0.252:2049, id=139, length=175
User-Name = "user1"
NAS-IP-Address = 192.168.0.252
NAS-Port = 0
Called-Station-Id = "004f620497e2"
Calling-Station-Id = "000c76710264"
NAS-Identifier = "Realtek Access Point. 8181"
NAS-Port-Type = Wireless-802.11
Service-Type = Framed-User
Connect-Info = "CONNECT 11Mbps 802.11b"
EAP-Message = 0x020100060319
State = 0x3b306953004ebeb8c5ca0f32cac6e03e
Message-Authenticator = 0x5d22f3709594a6492105c70a996ac900
Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 1
modcall[authorize]: module "preprocess" returns ok for request 1
modcall[authorize]: module "chap" returns noop for request 1
modcall[authorize]: module "mschap" returns noop for request 1
rlm_realm: No '@' in User-Name = "user1", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[authorize]: module "suffix" returns noop for request 1
rlm_eap: EAP packet type response id 1 length 6
rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
modcall[authorize]: module "eap" returns updated for request 1
users: Matched entry DEFAULT at line 152
users: Matched entry DEFAULT at line 171
users: Matched entry user1 at line 216
modcall[authorize]: module "files" returns ok for request 1
modcall: group authorize returns updated for request 1
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
Processing the authenticate section of radiusd.conf
modcall: entering group authenticate for request 1
rlm_eap: Request found, released from the list
rlm_eap: EAP NAK
rlm_eap: EAP-NAK asked for EAP-Type/peap
rlm_eap: No such EAP type peap
rlm_eap: Failed in EAP select
modcall[authenticate]: module "eap" returns invalid for request 1
modcall: group authenticate returns invalid for request 1
auth: Failed to validate the user.
Delaying request 1 for 1 seconds
Finished request 1
Going to the next request
Waking up in 6 seconds...
--- Walking the entire request list ---
Cleaning up request 0 ID 138 with timestamp 434bdc4a
Sending Access-Reject of id 139 to 192.168.0.252:2049
EAP-Message = 0x04010004
Message-Authenticator = 0x00000000000000000000000000000000
Cleaning up request 1 ID 139 with timestamp 434bdc4a
Nothing to do. Sleeping until we see a request.
Re: FreeRadius i winXP
В отговор на:
rlm_eap: No such EAP type peap
а да ти се намира peap { } секция в конфиг-а на радиус-а?
опитай примерно:
peap {
default_eap_type = mschapv2
}
the lord of destruction
Редактирано от seo на