Chris,
thank for your answer,
I   put   radius   on  debug  mode,  then  called  nas  (Total Control
w/HiperArc) as a user that where connected, but I don't see any error
.... and the request have not been rejected.
Below  is  the  result  of debug mode.
After that you have again radiusd.conf.

Thank for your help !

Jorge.



>>Hi all !,
>>
>>I am having some trouble about simultaneous connnection.
>>I can not see where would be the error on configuration, if any, and did 
>>not get nothing browsing docs, faqs, etc, that were applicable to my config.
>>Can some one give some idea about this ?.
>
>What error messages did you receive, and what is the output from running
>'radiusd -X' ( debug mode ) telling you?
>
>-Chris



----- Results from "radiusd -X"
Starting - reading configuration files ...
reread_config:  reading radiusd.conf
Config:   including file: /etc/raddb/proxy.conf
Config:   including file: /etc/raddb/clients.conf
Config:   including file: /etc/raddb/snmp.conf
Config:   including file: /etc/raddb/sql.conf
 main: prefix = "/usr"
 main: localstatedir = "/usr/var"
 main: logdir = "/var/log/radius"
 main: libdir = "/usr/lib"
 main: radacctdir = "/var/log/radius/radacct"
 main: hostname_lookups = no
read_config_files:  reading dictionary
read_config_files:  reading clients
read_config_files:  reading realms
read_config_files:  reading naslist
 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 = yes
 main: log_auth = yes
 main: log_auth_badpass = yes
 main: log_auth_goodpass = no
 main: pidfile = "/var/run/radius/radiusd.pid"
 main: user = "radius"
 main: group = "radius"
 main: usercollide = no
 main: lower_user = "no"
 main: lower_pass = "no"
 main: nospace_user = "no"
 main: nospace_pass = "no"
 main: proxy_requests = yes
 proxy: retry_delay = 5
 proxy: retry_count = 3
 proxy: synchronous = no
 proxy: default_fallback = yes
 proxy: dead_time = 120
 security: max_attributes = 200
 security: reject_delay = 1
 main: debug_level = 0
read_config_files:  entering modules setup
Module: Library search path is /usr/lib
Module: Loaded preprocess 
 preprocess: huntgroups = "/etc/raddb/huntgroups"
 preprocess: hints = "/etc/raddb/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
Module: Instantiated preprocess (preprocess) 
Module: Loaded realm 
 realm: format = "suffix"
 realm: delimiter = "@"
Module: Instantiated realm (suffix) 
Module: Loaded SQL 
 sql: driver = "rlm_sql_mysql"
 sql: server = "localhost"
 sql: port = ""
 sql: login = "digitalcoop"
 sql: password = "digitalcoop"
 sql: radius_db = "digitalcoop"
 sql: acct_table = "radacct"
 sql: acct_table2 = "radacct"
 sql: authcheck_table = "radcheck"
 sql: authreply_table = "radreply"
 sql: groupcheck_table = "radgroupcheck"
 sql: groupreply_table = "radgroupreply"
 sql: usergroup_table = "usergroup"
 sql: nas_table = "nas"
 sql: dict_table = "dictionary"
 sql: sqltrace = no
 sql: sqltracefile = "/var/log/radius/sqltrace.sql"
 sql: deletestalesessions = yes
 sql: num_sql_socks = 5
 sql: sql_user_name = "%{User-Name}"
 sql: authorize_check_query = "SELECT id,UserName,Attribute,Value,op FROM radcheck 
WHERE Username = 
'%{SQL-User-Name}' ORDER BY id"
 sql: authorize_reply_query = "SELECT id,UserName,Attribute,Value,op FROM radreply 
WHERE Username = 
'%{SQL-User-Name}' ORDER BY id"
 sql: authorize_group_check_query = "SELECT 
radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.A
ttribute,radgroupcheck.Value,radgroupcheck.op  FROM radgroupcheck,usergroup WHERE 
usergroup.Username
 = '%{SQL-User-Name}' AND usergroup.GroupName = radgroupcheck.GroupName ORDER BY 
radgroupcheck.id"
 sql: authorize_group_reply_query = "SELECT 
radgroupreply.id,radgroupreply.GroupName,radgroupreply.A
ttribute,radgroupreply.Value,radgroupreply.op  FROM radgroupreply,usergroup WHERE 
usergroup.Username
 = '%{SQL-User-Name}' AND usergroup.GroupName = radgroupreply.GroupName ORDER BY 
radgroupreply.id"
 sql: authenticate_query = "SELECT Value,Attribute FROM radcheck WHERE UserName = 
'%{User-Name}' AND
 ( Attribute = 'User-Password' OR Attribute = 'Password' OR Attribute = 
'Crypt-Password' ) ORDER BY 
Attribute DESC"
 sql: accounting_onoff_query = "UPDATE radacct SET AcctStopTime='%S', 
AcctSessionTime=unix_timestamp
('%S') - unix_timestamp(AcctStartTime), AcctTerminateCause='%{Acct-Terminate-Cause}', 
AcctStopDelay 
= %{Acct-Delay-Time} WHERE AcctSessionTime=0 AND AcctStopTime=0 AND NASIPAddress= 
'%{NAS-IP-Address}
' AND AcctStartTime <= '%S'"
 sql: accounting_update_query = "UPDATE radacct SET FramedIPAddress = 
'%{Framed-IP-Address}' WHERE A
cctSessionId = '%{Acct-Session-Id}' AND UserName = '%{SQL-User-Name}' AND 
NASIPAddress= '%{NAS-IP-Ad
dress}' AND AcctStopTime = 0"
 sql: accounting_start_query = "INSERT into radacct (RadAcctId, AcctSessionId, 
AcctUniqueId, UserNam
e, Realm, NASIPAddress, NASPortId, NASPortType, AcctStartTime, AcctStopTime, 
AcctSessionTime, AcctAu
thentic, ConnectInfo_start, ConnectInfo_stop, AcctInputOctets, AcctOutputOctets, 
CalledStationId, Ca
llingStationId, AcctTerminateCause, ServiceType, FramedProtocol, FramedIPAddress, 
AcctStartDelay, Ac
ctStopDelay) values('', '%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', 
'%{SQL-User-Name}', '%{Re
alm}', '%{NAS-IP-Address}', '%{NAS-Port-Id}', '%{NAS-Port-Type}', '%S', '0', '0', 
'%{Acct-Authentic}
', '%{Connect-Info}', '', '0', '0', '%{Called-Station-Id}', '%{Calling-Station-Id}', 
'', '%{Service-
Type}', '%{Framed-Protocol}', '%{Framed-IP-Address}', '%{Acct-Delay-Time}', '0')"
 sql: accounting_start_query_alt = "UPDATE radacct SET AcctStartTime = '%S', 
AcctStartDelay = '%{Acc
t-Delay-Time}', ConnectInfo_start = '%{Connect-Info}' WHERE AcctSessionId = 
'%{Acct-Session-Id}' AND
 UserName = '%{SQL-User-Name}' AND NASIPAddress = '%{NAS-IP-Address}' AND AcctStopTime 
= 0"
 sql: accounting_stop_query = "UPDATE radacct SET AcctStopTime = '%S', AcctSessionTime 
= '%{Acct-Ses
sion-Time}', AcctInputOctets = '%{Acct-Input-Octets}', AcctOutputOctets = 
'%{Acct-Output-Octets}', A
cctTerminateCause = '%{Acct-Terminate-Cause}', AcctStopDelay = '%{Acct-Delay-Time}', 
ConnectInfo_sto
p = '%{Connect-Info}' WHERE AcctSessionId = '%{Acct-Session-Id}' AND UserName = 
'%{SQL-User-Name}' A
ND NASIPAddress = '%{NAS-IP-Address}' AND AcctStopTime = 0"
 sql: accounting_stop_query_alt = "INSERT into radacct (RadAcctId, AcctSessionId, 
AcctUniqueId, User
Name, Realm, NASIPAddress, NASPortId, NASPortType, AcctStartTime, AcctStopTime, 
AcctSessionTime, Acc
tAuthentic, ConnectInfo_start, ConnectInfo_stop, AcctInputOctets, AcctOutputOctets, 
CalledStationId,
 CallingStationId, AcctTerminateCause, ServiceType, FramedProtocol, FramedIPAddress, 
AcctStartDelay,
 AcctStopDelay) values('', '%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', 
'%{SQL-User-Name}', '%
{Realm}', '%{NAS-IP-Address}', '%{NAS-Port-Id}', '%{NAS-Port-Type}', '0', '%S', 
'%{Acct-Session-Time
}', '%{Acct-Authentic}', '', '%{Connect-Info}', '%{Acct-Input-Octets}', 
'%{Acct-Output-Octets}', '%{
Called-Station-Id}', '%{Calling-Station-Id}', '%{Acct-Terminate-Cause}', 
'%{Service-Type}', '%{Frame
d-Protocol}', '%{Framed-IP-Address}', '0', '%{Acct-Delay-Time}')"
 sql: connect_failure_retry_delay = 60
 sql: simul_count_query = ""
 sql: simul_verify_query = "SELECT RadAcctId, AcctSessionId, UserName, NASIPAddress, 
NASPortId, Fram
edIPAddress, CalledStationId FROM radacct WHERE UserName='%{SQL-User-Name}' AND 
AcctStopTime = 0"
 sql: simul_zap_query = "DELETE FROM radacct WHERE RadAcctId = '%s'"
rlm_sql: Driver rlm_sql_mysql loaded and linked
rlm_sql: Attempting to connect to digitalcoop@localhost:/digitalcoop
rlm_sql:  Connected new DB handle, #0
rlm_sql:  Connected new DB handle, #1
rlm_sql:  Connected new DB handle, #2
rlm_sql:  Connected new DB handle, #3
rlm_sql:  Connected new DB handle, #4
Module: Instantiated sql (sql) 
Module: Loaded files 
 files: usersfile = "/etc/raddb/users"
 files: acctusersfile = "/etc/raddb/acct_users"
 files: compat = "no"
Module: Instantiated files (files) 
Module: Loaded radutmp 
 radutmp: filename = "/var/log/radius/radutmp"
 radutmp: username = "%{User-Name}"
 radutmp: perm = 384
 radutmp: callerid = yes
Module: Instantiated radutmp (radutmp) 
Listening on IP address *, ports 1812/udp and 1813/udp, with proxy on 1814/udp.
Ready to process requests.
rad_recv: Access-Request packet from host 200.43.61.6:1645, id=203, length=193
        User-Name = "susanagabriela"
        User-Password = "n\004v\262Q\373A\330\237(HdC\317$\263"
        NAS-IP-Address = 200.43.61.6
        NAS-Port = 769
        Acct-Session-Id = "45050"
        USR-Interface-Index = 2025
        USR-Supports-Tags = 0
        Service-Type = Framed-User
        Framed-Protocol = PPP
        USR-Chassis-Call-Slot = 4
        USR-Chassis-Call-Span = 1
        USR-Chassis-Call-Channel = 1
        USR-Connect-Speed = NONE
        Calling-Station-Id = "3548491674"
        Called-Station-Id = "7000"
        NAS-Port-Type = Async
modcall: entering group authorize
  modcall[authorize]: module "preprocess" returns ok
    rlm_realm: Looking up realm NULL for User-Name = "susanagabriela"
    rlm_realm: No such realm NULL
  modcall[authorize]: module "suffix" returns noop
radius_xlat:  'susanagabriela'
sql_set_user:  escaped user --> 'susanagabriela'
radius_xlat:  'SELECT id,UserName,Attribute,Value,op FROM radcheck WHERE Username = 
'susanagabriela'
 ORDER BY id'
rlm_sql: Reserving sql socket id: 4
radius_xlat:  'SELECT 
radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupcheck
.Value,radgroupcheck.op  FROM radgroupcheck,usergroup WHERE usergroup.Username = 
'susanagabriela' AN
D usergroup.GroupName = radgroupcheck.GroupName ORDER BY radgroupcheck.id'
radius_xlat:  'SELECT id,UserName,Attribute,Value,op FROM radreply WHERE Username = 
'susanagabriela'
 ORDER BY id'
radius_xlat:  'SELECT 
radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgroupreply
.Value,radgroupreply.op  FROM radgroupreply,usergroup WHERE usergroup.Username = 
'susanagabriela' AN
D usergroup.GroupName = radgroupreply.GroupName ORDER BY radgroupreply.id'
radius_xlat:  'SELECT Value,Attribute FROM radcheck WHERE UserName = 'susanagabriela' 
AND ( Attribut
e = 'User-Password' OR Attribute = 'Password' OR Attribute = 'Crypt-Password' ) ORDER 
BY Attribute D
ESC'
rlm_sql: Released sql socket id: 4
  modcall[authorize]: module "sql" returns ok
modcall: group authorize returns ok
auth: type Local
auth: user supplied User-Password matches local User-Password
Login OK: [susanagabriela] (from client digitalcop-nas port 769 cli 3548491674)
Sending Access-Accept of id 203 to 200.43.61.6:1645
        Framed-Protocol = PPP
        Framed-Compression = Van-Jacobson-TCP-IP
        Framed-IP-Address = 255.255.255.254
        Service-Type = Framed-User
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 200.43.61.6:1646, id=185, length=295
        User-Name = "susanagabriela"
        NAS-IP-Address = 200.43.61.6
        Acct-Status-Type = Start
        Acct-Session-Id = "45050"
        Acct-Delay-Time = 0
        Acct-Authentic = RADIUS
        Service-Type = Framed-User
        NAS-Port-Type = Async
        NAS-Port = 769
        USR-Modem-Training-Time = 19
        USR-Interface-Index = 2025
        USR-Chassis-Call-Slot = 4
        USR-Chassis-Call-Span = 1
        USR-Chassis-Call-Channel = 1
        USR-Unauthenticated-Time = 4
        Calling-Station-Id = "3548491674"
        Called-Station-Id = "7000"
        USR-Modulation-Type = v90Digital
        USR-Simplified-MNP-Levels = ccittV42
        USR-Simplified-V42bis-Usage = ccittV42bis
        USR-Connect-Speed = 50666-BPS
        Framed-Protocol = PPP
        Framed-IP-Address = 200.43.61.65
        USR-VTS-Session-Key = "\302\002\377\002\377U\360\347a\314{\277G\034G\261"
        USR-Call-Arrival-Time = 214525749
modcall: entering group preacct
  modcall[preacct]: module "preprocess" returns noop
    rlm_realm: Looking up realm NULL for User-Name = "susanagabriela"
    rlm_realm: No such realm NULL
  modcall[preacct]: module "suffix" returns noop
  modcall[preacct]: module "files" returns noop
modcall: group preacct returns noop
modcall: entering group accounting
radius_xlat:  'susanagabriela'
sql_set_user:  escaped user --> 'susanagabriela'
radius_xlat:  'INSERT into radacct (RadAcctId, AcctSessionId, AcctUniqueId, UserName, 
Realm, NASIPAd
dress, NASPortId, NASPortType, AcctStartTime, AcctStopTime, AcctSessionTime, 
AcctAuthentic, ConnectI
nfo_start, ConnectInfo_stop, AcctInputOctets, AcctOutputOctets, CalledStationId, 
CallingStationId, A
cctTerminateCause, ServiceType, FramedProtocol, FramedIPAddress, AcctStartDelay, 
AcctStopDelay) valu
es('', '45050', '', 'susanagabriela', '', '200.43.61.6', '', 'Async', '2002-10-18 
22:20:50', '0', '0
', 'RADIUS', '', '', '0', '0', '7000', '3548491674', '', 'Framed-User', 'PPP', 
'200.43.61.65', '0', 
'0')'
rlm_sql: Reserving sql socket id: 3
rlm_sql: Released sql socket id: 3
  modcall[accounting]: module "sql" returns ok
radius_xlat:  'susanagabriela'
  modcall[accounting]: module "radutmp" returns ok
modcall: group accounting returns ok
Sending Accounting-Response of id 185 to 200.43.61.6:1646
Finished request 1
Going to the next request
--- Walking the entire request list ---
Cleaning up request 1 ID 185 with timestamp 3db0c182
Waking up in 4 seconds...
--- Walking the entire request list ---
Cleaning up request 0 ID 203 with timestamp 3db0c180
Nothing to do.  Sleeping until we see a request.

------------- End of radiud -X



---- radiusd.conf:
prefix = /usr/local/freeradius
exec_prefix = ${prefix}
sysconfdir = ${prefix}/etc
localstatedir = ${prefix}/var
sbindir = ${exec_prefix}/sbin
logdir = ${localstatedir}/log/radius
raddbdir = ${sysconfdir}/raddb
radacctdir = ${logdir}/radacct
confdir = ${raddbdir}
run_dir = ${localstatedir}/run/radiusd
libdir = ${exec_prefix}/lib
pidfile = ${run_dir}/radiusd.pid
user = radius
group = radius
max_request_time = 30
delete_blocked_requests = no
cleanup_delay = 5
max_requests = 1024
bind_address = *
port = 0
hostname_lookups = no
allow_core_dumps = no
regular_expressions     = yes
extended_expressions    = yes
log_stripped_names = no
log_auth = no
log_auth_badpass = no
log_auth_goodpass = no
usercollide = no
lower_user = no
lower_pass = no
nospace_user = no
nospace_pass = no
checkrad = ${sbindir}/checkrad

security {
        max_attributes = 200
        reject_delay = 1
}

proxy_requests  = yes

$INCLUDE  ${confdir}/proxy.conf
$INCLUDE  ${confdir}/clients.conf
$INCLUDE  ${confdir}/snmp.conf

thread pool {
        start_servers = 5
        max_servers = 32
        min_spare_servers = 3
        max_spare_servers = 10
        max_requests_per_server = 0
}

modules {

        realm suffix {
                format = suffix
                delimiter = "@"
        }

        preprocess {
                huntgroups = ${confdir}/huntgroups
                hints = ${confdir}/hints
                with_ascend_hack = no
                ascend_channels_per_line = 23
                with_ntdomain_hack = no
                with_specialix_jetstream_hack = no
                with_cisco_vsa_hack = no
        }

        acct_unique {
                key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, 
NAS-Port-Id"
        }


        $INCLUDE  ${confdir}/sql.conf

        always fail {
                rcode = fail
        }

        always reject {
                rcode = reject
        }

        always ok {
                rcode = ok
                simulcount = 0
                mpp = no
        }


}



authorize {
        preprocess
        suffix
        sql
}


authenticate {
        sql
}


preacct {
        preprocess
        suffix
}

accounting {
        sql
}

session {
        sql
}


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to