Radius Server not connecting with AP

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
sanjay
Posts: 1
Joined: 2013/12/05 10:32:39

Radius Server not connecting with AP

Post by sanjay » 2013/12/05 10:54:18

Sir ,

I am using centos 5.9 and freeradius-1.1.3-1.6.el5 and mysql-5.0.95-5.el5_9
for radius server with mysql database

It is working fine with radtest but not with adding access point.

radtest sqltest sqltest123 172.16.111.20 1812 testing123
Sending Access-Request of id 87 to 172.16.111.20 port 1812
User-Name = "sqltest"
User-Password = "sqltest123"
NAS-IP-Address = 255.255.255.255
NAS-Port = 1812
rad_recv: Access-Accept packet from host 172.16.111.20:1812, id=87, length=20



i have configured the wireless access point ie. 172.16.111.54


client 172.16.111.54 {
secret = redhat123
shortname = twenty
nastype = other
}


when from the clients side ie on win 7
i used to connect the error shown are

[root@rad ~]# radiusd -x
Starting - reading configuration files ...
Using deprecated naslist file. Support for this will go away soon.
Module: Loaded exec
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
Module: Instantiated pap (pap)
Module: Loaded CHAP
Module: Instantiated chap (chap)
Module: Loaded MS-CHAP
Module: Instantiated mschap (mschap)
Module: Loaded System
Module: Instantiated unix (unix)
Module: Loaded eap
rlm_eap: Loaded and initialized type md5
rlm_eap: Loaded and initialized type leap
rlm_eap: Loaded and initialized type gtc
rlm_eap: Loaded and initialized type mschapv2
Module: Instantiated eap (eap)
Module: Loaded preprocess
Module: Instantiated preprocess (preprocess)
Module: Loaded realm
Module: Instantiated realm (suffix)
Module: Loaded SQL
rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
rlm_sql (sql): Attempting to connect to root@localhost:/radiusdb
rlm_sql (sql): starting 0
rlm_sql (sql): Attempting to connect rlm_sql_mysql #0
rlm_sql_mysql: Starting connect to MySQL server for #0
rlm_sql (sql): Connected new DB handle, #0
rlm_sql (sql): starting 1
rlm_sql (sql): Attempting to connect rlm_sql_mysql #1
rlm_sql_mysql: Starting connect to MySQL server for #1
rlm_sql (sql): Connected new DB handle, #1
rlm_sql (sql): starting 2
rlm_sql (sql): Attempting to connect rlm_sql_mysql #2
rlm_sql_mysql: Starting connect to MySQL server for #2
rlm_sql (sql): Connected new DB handle, #2
rlm_sql (sql): starting 3
rlm_sql (sql): Attempting to connect rlm_sql_mysql #3
rlm_sql_mysql: Starting connect to MySQL server for #3
rlm_sql (sql): Connected new DB handle, #3
rlm_sql (sql): starting 4
rlm_sql (sql): Attempting to connect rlm_sql_mysql #4
rlm_sql_mysql: Starting connect to MySQL server for #4
rlm_sql (sql): Connected new DB handle, #4
rlm_sql (sql): - generate_sql_clients
rlm_sql (sql): Query: SELECT * FROM nas
rlm_sql (sql): Reserving sql socket id: 4
rlm_sql (sql): Released sql socket id: 4
Module: Instantiated sql (sql)
Module: Loaded Acct-Unique-Session-Id
Module: Instantiated acct_unique (acct_unique)
Module: Loaded files
Module: Instantiated files (files)
Module: Loaded detail
Module: Instantiated detail (detail)
Module: Loaded radutmp
Module: Instantiated radutmp (radutmp)
Initializing the thread pool...
Listening on authentication *:1812
Listening on accounting *:1813
Ready to process requests.
rad_recv: Access-Request packet from host 172.16.111.54:34233, id=4, length=172
User-Name = "sqltest"
NAS-IP-Address = 172.16.111.54
NAS-Port = 0
Called-Station-Id = "F8-1A-67-53-09-86:TP-LINK_POCKET_3020_530986"
Calling-Station-Id = "00-1E-65-4E-4F-C2"
Framed-MTU = 1400
NAS-Port-Type = Wireless-802.11
Connect-Info = "CONNECT 0Mbps 802.11"
EAP-Message = 0x0201000c0173716c74657374
Message-Authenticator = 0x279f6abc0e4507ca580c2c70140a406b
rlm_sql (sql): Reserving sql socket id: 3
rlm_sql (sql): Released sql socket id: 3
rlm_eap_md5: Issuing Challenge
Sending Access-Challenge of id 4 to 172.16.111.54 port 34233
EAP-Message = 0x010200160410a98003141c85c27c2741f5eff3e42e27
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x327681601d56bfdb7feb778412c29c7c
rad_recv: Access-Request packet from host 172.16.111.54:34233, id=5, length=185
User-Name = "sqltest"
NAS-IP-Address = 172.16.111.54
NAS-Port = 0
Called-Station-Id = "F8-1A-67-53-09-86:TP-LINK_POCKET_3020_530986"
Calling-Station-Id = "00-1E-65-4E-4F-C2"
Framed-MTU = 1400
NAS-Port-Type = Wireless-802.11
Connect-Info = "CONNECT 0Mbps 802.11"
EAP-Message = 0x02020007031915
State = 0x327681601d56bfdb7feb778412c29c7c
Message-Authenticator = 0x1d78088ab3c3cf0cd9025b215f942b5e
rlm_sql (sql): Reserving sql socket id: 2
rlm_sql (sql): Released sql socket id: 2
rad_recv: Access-Request packet from host 172.16.111.54:34233, id=5, length=185
Sending Access-Reject of id 5 to 172.16.111.54 port 34233
EAP-Message = 0x04020004
Message-Authenticator = 0x00000000000000000000000000000000

User avatar
TrevorH
Forum Moderator
Posts: 26983
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Radius Server not connecting with AP

Post by TrevorH » 2013/12/05 19:18:45

Personally I'd use the freeradius2 packages not the freeradius ones. CentOS 5 has both available.

Code: Select all

# yum list freeradius\*
Loaded plugins: changelog, downloadonly, priorities, protectbase, security
279 packages excluded due to repository priority protections
0 packages excluded due to repository protections
Available Packages
freeradius.x86_64                                              1.1.3-1.6.el5                                  base
freeradius-mysql.x86_64                                        1.1.3-1.6.el5                                  base
freeradius-postgresql.x86_64                                   1.1.3-1.6.el5                                  base
freeradius-unixODBC.x86_64                                     1.1.3-1.6.el5                                  base
freeradius2.x86_64                                             2.1.12-5.el5                                   base
freeradius2-krb5.x86_64                                        2.1.12-5.el5                                   base
freeradius2-ldap.x86_64                                        2.1.12-5.el5                                   base
freeradius2-mysql.x86_64                                       2.1.12-5.el5                                   base
freeradius2-perl.x86_64                                        2.1.12-5.el5                                   base
freeradius2-postgresql.x86_64                                  2.1.12-5.el5                                   base
freeradius2-python.x86_64                                      2.1.12-5.el5                                   base
freeradius2-unixODBC.x86_64                                    2.1.12-5.el5                                   base
freeradius2-utils.x86_64                                       2.1.12-5.el5                                   base
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 5 - Server Support”