Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rad_recv: Access-Request packet from host 171.79.18.10 port 49645, id=56, length=316
- ChilliSpot-Version = "1.3.1-svn"
- User-Name = "919958968054"
- User-Password = "5929a778bc5ae"
- Service-Type = Login-User
- Acct-Session-Id = "5929a76d00000002"
- Framed-IP-Address = 20.17.0.2
- NAS-Port-Type = Wireless-802.11
- NAS-Port = 2
- NAS-Port-Id = "00000002"
- Calling-Station-Id = "C0-EE-FB-DC-ED-23"
- Called-Station-Id = "F4-F2-6D-68-7D-AC"
- NAS-IP-Address = 20.17.0.1
- NAS-Identifier = "F4-F2-6D-68-7D-AC"
- WISPr-Location-ID = "isocc=,cc=,ac=,network=Wifitics_OpenWRT_Coova,"
- WISPr-Location-Name = "hotspot_wifitics"
- WISPr-Logoff-URL = "http://20.17.0.1:3990/logoff"
- Message-Authenticator = 0x81135335b34c94baa5430eb72e401716
- # Executing section authorize from file /etc/freeradius/sites-enabled/default
- +group authorize {
- ++[preprocess] = ok
- ++[chap] = noop
- ++[mschap] = noop
- ++[digest] = noop
- [suffix] No '@' in User-Name = "919958968054", looking up realm NULL
- [suffix] No such realm "NULL"
- ++[suffix] = noop
- [eap] No EAP-Message, not doing EAP
- ++[eap] = noop
- ++[files] = noop
- [sql] expand: %{User-Name} -> 919958968054
- [sql] sql_set_user escaped user --> '919958968054'
- rlm_sql (sql): Reserving sql socket id: 4
- [sql] expand: SELECT id, username, attribute, value, op FROM radcheck WHERE username = '%{SQL-User-Name}' ORDER BY id -> SELECT id, username, attribute, value, op FROM radcheck WHERE username = '919958968054' ORDER BY id
- [sql] User found in radcheck table
- [sql] expand: SELECT id, username, attribute, value, op FROM radreply WHERE username = '%{SQL-User-Name}' ORDER BY id -> SELECT id, username, attribute, value, op FROM radreply WHERE username = '919958968054' ORDER BY id
- [sql] expand: SELECT groupname FROM radusergroup WHERE username = '%{SQL-User-Name}' ORDER BY priority -> SELECT groupname FROM radusergroup WHERE username = '919958968054' ORDER BY priority
- [sql] expand: SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = '%{Sql-Group}' ORDER BY id -> SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = 'F4-F2-6D-68-7D-AC' ORDER BY id
- [sql] User found in group F4-F2-6D-68-7D-AC
- [sql] expand: SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = '%{Sql-Group}' ORDER BY id -> SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = 'F4-F2-6D-68-7D-AC' ORDER BY id
- rlm_sql (sql): Released sql socket id: 4
- ++[sql] = ok
- rlm_sqlcounter: Entering module authorize code
- WARNING: Please replace '%k' with '${key}'
- sqlcounter_expand: 'SELECT SUM(acctsessiontime - GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username = '%{User-Name}' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1495843200''
- [dailycounter] expand: SELECT SUM(acctsessiontime - GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username = '%{User-Name}' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1495843200' -> SELECT SUM(acctsessiontime - GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username = '919958968054' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1495843200'
- WARNING: Please replace '%S' with '${sqlmod-inst}'
- sqlcounter_expand: '%{sql:SELECT SUM(acctsessiontime - GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username = '919958968054' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1495843200'}'
- [dailycounter] sql_xlat
- [dailycounter] expand: %{User-Name} -> 919958968054
- [dailycounter] sql_set_user escaped user --> '919958968054'
- [dailycounter] expand: SELECT SUM(acctsessiontime - GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username = '919958968054' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1495843200' -> SELECT SUM(acctsessiontime - GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username = '919958968054' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1495843200'
- rlm_sql (sql): Reserving sql socket id: 3
- [dailycounter] sql_xlat finished
- rlm_sql (sql): Released sql socket id: 3
- [dailycounter] expand: %{sql:SELECT SUM(acctsessiontime - GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username = '919958968054' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1495843200'} -> 17002
- rlm_sqlcounter: (Check item - counter) is less than zero
- rlm_sqlcounter: Rejected user 919958968054, check_item=900, counter=17002
- ++[dailycounter] = reject
- ++? if (reject)
- ? Evaluating (reject) -> TRUE
- ++? if (reject) -> TRUE
- ++if (reject) {
- +++update reply {
- +++} # update reply = noop
- ++} # if (reject) = noop
- rlm_sqlcounter: Entering module authorize code
- WARNING: Please replace '%k' with '${key}'
- sqlcounter_expand: 'SELECT SUM(acctinputoctets - GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0))+ SUM(acctoutputoctets -GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username='%{User-Name}' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1495843200''
- [chillispot_max_bytes_daily] expand: SELECT SUM(acctinputoctets - GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0))+ SUM(acctoutputoctets -GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username='%{User-Name}' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1495843200' -> SELECT SUM(acctinputoctets - GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0))+ SUM(acctoutputoctets -GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username='919958968054' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1495843200'
- WARNING: Please replace '%S' with '${sqlmod-inst}'
- sqlcounter_expand: '%{sql:SELECT SUM(acctinputoctets - GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0))+ SUM(acctoutputoctets -GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username='919958968054' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1495843200'}'
- [chillispot_max_bytes_daily] sql_xlat
- [chillispot_max_bytes_daily] expand: %{User-Name} -> 919958968054
- [chillispot_max_bytes_daily] sql_set_user escaped user --> '919958968054'
- [chillispot_max_bytes_daily] expand: SELECT SUM(acctinputoctets - GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0))+ SUM(acctoutputoctets -GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username='919958968054' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1495843200' -> SELECT SUM(acctinputoctets - GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0))+ SUM(acctoutputoctets -GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username='919958968054' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1495843200'
- rlm_sql (sql): Reserving sql socket id: 2
- [chillispot_max_bytes_daily] sql_xlat finished
- rlm_sql (sql): Released sql socket id: 2
- [chillispot_max_bytes_daily] expand: %{sql:SELECT SUM(acctinputoctets - GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0))+ SUM(acctoutputoctets -GREATEST((1495843200 - UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username='919958968054' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1495843200'} -> 206370502
- rlm_sqlcounter: Check item is greater than query result
- rlm_sqlcounter: Authorized user 919958968054, check_item=2000000000, counter=206370502
- rlm_sqlcounter: Sent Reply-Item for user 919958968054, Type=ChilliSpot-Max-Total-Octets, value=1793629498
- ++[chillispot_max_bytes_daily] = ok
- ++? if (reject)
- ? Evaluating (reject) -> FALSE
- ++? if (reject) -> FALSE
- ++[expiration] = noop
- ++[logintime] = noop
- ++[pap] = updated
- +} # group authorize = updated
- Found Auth-Type = PAP
- # Executing group from file /etc/freeradius/sites-enabled/default
- +group PAP {
- [pap] login attempt with password "5929a778bc5ae"
- [pap] Using clear text password "5929a778bc5ae"
- [pap] User authenticated successfully
- ++[pap] = ok
- +} # group PAP = ok
- # Executing section post-auth from file /etc/freeradius/sites-enabled/default
- +group post-auth {
- [reply_log] expand: /var/log/freeradius/radacct/%{Client-IP-Address}/reply-detail-%Y%m%d -> /var/log/freeradius/radacct/171.79.18.10/reply-detail-20170527
- [reply_log] /var/log/freeradius/radacct/%{Client-IP-Address}/reply-detail-%Y%m%d expands to /var/log/freeradius/radacct/171.79.18.10/reply-detail-20170527
- [reply_log] expand: %t -> Sat May 27 16:21:19 2017
- ++[reply_log] = ok
- [sql] expand: %{User-Name} -> 919958968054
- [sql] sql_set_user escaped user --> '919958968054'
- [sql] expand: %{User-Password} -> 5929a778bc5ae
- [sql] expand: INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( '%{User-Name}', '%{%{User-Password}:-%{Chap-Password}}', '%{reply:Packet-Type}', '%S') -> INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( '919958968054', '5929a778bc5ae', 'Access-Accept', '2017-05-27 16:21:19')
- rlm_sql (sql) in sql_postauth: query is INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( '919958968054', '5929a778bc5ae', 'Access-Accept', '2017-05-27 16:21:19')
- rlm_sql (sql): Reserving sql socket id: 1
- rlm_sql (sql): Released sql socket id: 1
- ++[sql] = ok
- ++[exec] = noop
- +} # group post-auth = ok
- Sending Access-Accept of id 56 to 171.79.18.10 port 49645
- Session-Timeout = 900
- Idle-Timeout = 1500
- WISPr-Bandwidth-Max-Up = 1000000
- WISPr-Bandwidth-Max-Down = 1000000
- Reply-Message = "Daily Time Limit reached."
- ChilliSpot-Max-Total-Octets = 1793629498
- Finished request 16.
Add Comment
Please, Sign In to add comment