Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Received Access-Request Id 13 from 192.168.40.102:44609 to 192.168.40.12:1812 length 185
- NAS-Port-Type = Wireless-802.11
- Calling-Station-Id = '30:39:26:86:CC:EA'
- Called-Station-Id = 'hotspot1'
- NAS-Port-Id = 'citystore_test'
- User-Name = 'kostas2'
- NAS-Port = 2163212291
- Acct-Session-Id = '80f00003'
- Framed-IP-Address = 10.5.50.253
- Mikrotik-Host-IP = 10.5.50.253
- User-Password = 'kostas2'
- Service-Type = Login-User
- WISPr-Logoff-URL = 'http://10.5.50.1/logout'
- NAS-Identifier = 'MikroTik'
- NAS-IP-Address = 192.168.40.102
- (0) Received Access-Request packet from host 192.168.40.102 port 44609, id=13, length=185
- (0) NAS-Port-Type = Wireless-802.11
- (0) Calling-Station-Id = '30:39:26:86:CC:EA'
- (0) Called-Station-Id = 'hotspot1'
- (0) NAS-Port-Id = 'citystore_test'
- (0) User-Name = 'kostas2'
- (0) NAS-Port = 2163212291
- (0) Acct-Session-Id = '80f00003'
- (0) Framed-IP-Address = 10.5.50.253
- (0) Mikrotik-Host-IP = 10.5.50.253
- (0) User-Password = 'kostas2'
- (0) Service-Type = Login-User
- (0) WISPr-Logoff-URL = 'http://10.5.50.1/logout'
- (0) NAS-Identifier = 'MikroTik'
- (0) NAS-IP-Address = 192.168.40.102
- (0) # Executing section authorize from file /etc/freeradius/sites-enabled/default
- (0) authorize {
- (0) filter_username filter_username {
- (0) if (!&User-Name)
- (0) if (!&User-Name) -> FALSE
- (0) if (&User-Name =~ / /)
- (0) if (&User-Name =~ / /) -> FALSE
- (0) if (&User-Name =~ /@.*@/ )
- (0) if (&User-Name =~ /@.*@/ ) -> FALSE
- (0) if (&User-Name =~ /\\.\\./ )
- (0) if (&User-Name =~ /\\.\\./ ) -> FALSE
- (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\\.(.+)$/))
- (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\\.(.+)$/)) -> FALSE
- (0) if (&User-Name =~ /\\.$/)
- (0) if (&User-Name =~ /\\.$/) -> FALSE
- (0) if (&User-Name =~ /@\\./)
- (0) if (&User-Name =~ /@\\./) -> FALSE
- (0) } # filter_username filter_username = notfound
- (0) [preprocess] = ok
- (0) [chap] = noop
- (0) [mschap] = noop
- (0) [digest] = noop
- (0) suffix : Checking for suffix after "@"
- (0) suffix : No '@' in User-Name = "kostas2", looking up realm NULL
- (0) suffix : No such realm "NULL"
- (0) [suffix] = noop
- (0) eap : No EAP-Message, not doing EAP
- (0) [eap] = noop
- (0) [files] = noop
- (0) sql : EXPAND %{User-Name}
- (0) sql : --> kostas2
- (0) sql : SQL-User-Name set to 'kostas2'
- rlm_sql (sql): Reserved connection (4)
- (0) sql : EXPAND SELECT id, username, attribute, value, op FROM radcheck WHERE username = '%{SQL-User-Name}' ORDER BY id
- (0) sql : --> SELECT id, username, attribute, value, op FROM radcheck WHERE username = 'kostas2' ORDER BY id
- rlm_sql (sql): Executing query: 'SELECT id, username, attribute, value, op FROM radcheck WHERE username = 'kostas2' ORDER BY id'
- (0) sql : User found in radcheck table
- (0) sql : Check items matched
- (0) sql : EXPAND SELECT id, username, attribute, value, op FROM radreply WHERE username = '%{SQL-User-Name}' ORDER BY id
- (0) sql : --> SELECT id, username, attribute, value, op FROM radreply WHERE username = 'kostas2' ORDER BY id
- rlm_sql (sql): Executing query: 'SELECT id, username, attribute, value, op FROM radreply WHERE username = 'kostas2' ORDER BY id'
- (0) sql : EXPAND SELECT groupname FROM radusergroup WHERE username = '%{SQL-User-Name}' ORDER BY priority
- (0) sql : --> SELECT groupname FROM radusergroup WHERE username = 'kostas2' ORDER BY priority
- rlm_sql (sql): Executing query: 'SELECT groupname FROM radusergroup WHERE username = 'kostas2' ORDER BY priority'
- (0) sql : User found in the group table
- (0) sql : EXPAND SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = '%{Sql-Group}' ORDER BY id
- (0) sql : --> SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = 'd4M' ORDER BY id
- rlm_sql (sql): Executing query: 'SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = 'd4M' ORDER BY id'
- (0) sql : Group "d4M" check items matched
- (0) sql : EXPAND SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = '%{Sql-Group}' ORDER BY id
- (0) sql : --> SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = 'd4M' ORDER BY id
- rlm_sql (sql): Executing query: 'SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = 'd4M' ORDER BY id'
- (0) sql : Group "d4M" reply items processed
- rlm_sql (sql): Released connection (4)
- rlm_sql (sql): Closing connection (0), from 1 unused connections
- rlm_sql_mysql: Socket destructor called, closing socket
- (0) [sql] = ok
- (0) WARNING: checkthetime : Couldn't find control attribute 'control:Max-Hour-Used'
- (0) [checkthetime] = noop
- (0) [expiration] = noop
- (0) [logintime] = noop
- (0) [pap] = updated
- (0) } # authorize = updated
- (0) Found Auth-Type = PAP
- (0) # Executing group from file /etc/freeradius/sites-enabled/default
- (0) Auth-Type PAP {
- (0) pap : Login attempt with password
- (0) pap : User authenticated successfully
- (0) [pap] = ok
- (0) } # Auth-Type PAP = ok
- (0) # Executing section post-auth from file /etc/freeradius/sites-enabled/default
- (0) post-auth {
- (0) sql : EXPAND .query
- (0) sql : --> .query
- (0) sql : Using query template 'query'
- rlm_sql (sql): Reserved connection (4)
- (0) sql : EXPAND %{User-Name}
- (0) sql : --> kostas2
- (0) sql : SQL-User-Name set to 'kostas2'
- (0) sql : EXPAND INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( '%{SQL-User-Name}', '%{%{User-Password}:-%{Chap-Password}}', '%{reply:Packet-Type}', '%S')
- (0) sql : --> INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( 'kostas2', 'kostas2', 'Access-Accept', '2014-12-02 09:22:53')
- rlm_sql (sql): Executing query: 'INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( 'kostas2', 'kostas2', 'Access-Accept', '2014-12-02 09:22:53')'
- rlm_sql (sql): Released connection (4)
- (0) [sql] = ok
- (0) [exec] = noop
- (0) remove_reply_message_if_eap remove_reply_message_if_eap {
- (0) if (&reply:EAP-Message && &reply:Reply-Message)
- (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE
- (0) else else {
- (0) [noop] = noop
- (0) } # else else = noop
- (0) } # remove_reply_message_if_eap remove_reply_message_if_eap = noop
- (0) } # post-auth = ok
- (0) Sending Access-Accept packet to host 192.168.40.102 port 44609, id=13, length=0
- (0) WISPr-Bandwidth-Max-Down = 4194304
- (0) Fall-Through = No
- Sending Access-Accept Id 13 from 192.168.40.12:1812 to 192.168.40.102:44609
- WISPr-Bandwidth-Max-Down = 4194304
- (0) Finished request
- Waking up in 0.3 seconds.
- Received Accounting-Request Id 14 from 192.168.40.102:34577 to 192.168.40.12:1813 length 48
- Acct-Status-Type = Accounting-On
- NAS-Identifier = 'MikroTik'
- Acct-Delay-Time = 0
- NAS-IP-Address = 192.168.40.102
- (1) Received Accounting-Request packet from host 192.168.40.102 port 34577, id=14, length=48
- (1) Acct-Status-Type = Accounting-On
- (1) NAS-Identifier = 'MikroTik'
- (1) Acct-Delay-Time = 0
- (1) NAS-IP-Address = 192.168.40.102
- (1) # Executing section preacct from file /etc/freeradius/sites-enabled/default
- (1) preacct {
- (1) [preprocess] = ok
- (1) acct_unique acct_unique {
- (1) if ("%{string:Class}" =~ /ai:([0-9a-f]{32})/i)
- (1) EXPAND %{string:Class}
- (1) -->
- (1) if ("%{string:Class}" =~ /ai:([0-9a-f]{32})/i) -> FALSE
- (1) else else {
- (1) update request {
- (1) EXPAND %{md5:%{User-Name},%{Acct-Session-ID},%{%{NAS-IPv6-Address}:-%{NAS-IP-Address}},%{NAS-Identifier},%{NAS-Port-ID},%{NAS-Port}}
- (1) --> 9ebe59f84575ccc7480343079348853b
- (1) Acct-Unique-Session-Id := "9ebe59f84575ccc7480343079348853b"
- (1) } # update request = noop
- (1) } # else else = noop
- (1) } # acct_unique acct_unique = noop
- (1) [suffix] = noop
- (1) [files] = noop
- (1) } # preacct = ok
- (1) # Executing section accounting from file /etc/freeradius/sites-enabled/default
- (1) accounting {
- (1) detail : EXPAND /var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d
- (1) detail : --> /var/log/freeradius/radacct/192.168.40.102/detail-20141202
- (1) detail : /var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d expands to /var/log/freeradius/radacct/192.168.40.102/detail-20141202
- (1) detail : EXPAND %t
- (1) detail : --> Tue Dec 2 09:22:53 2014
- (1) [detail] = ok
- (1) [unix] = noop
- (1) radutmp : EXPAND /var/log/freeradius/radutmp
- (1) radutmp : --> /var/log/freeradius/radutmp
- (1) radutmp : NAS mikrotik restarted (Accounting-On packet seen)
- (1) [radutmp] = ok
- (1) sql : EXPAND %{tolower:type.%{Acct-Status-Type}.query}
- (1) sql : --> type.accounting-on.query
- (1) sql : Using query template 'query'
- rlm_sql (sql): Reserved connection (4)
- (1) sql : EXPAND %{User-Name}
- (1) sql : -->
- (1) sql : SQL-User-Name set to ''
- (1) sql : EXPAND UPDATE radacct SET acctstoptime = FROM_UNIXTIME(%{integer:Event-Timestamp}), acctsessiontime = '%{integer:Event-Timestamp}' - UNIX_TIMESTAMP(acctstarttime), acctterminatecause = '%{%{Acct-Terminate-Cause}:-NAS-Reboot}' WHERE acctstoptime IS NULL AND nasipaddress = '%{NAS-IP-Address}' AND acctstarttime <= FROM_UNIXTIME(%{integer:Event-Timestamp})
- (1) sql : --> UPDATE radacct SET acctstoptime = FROM_UNIXTIME(1417504973), acctsessiontime = '1417504973' - UNIX_TIMESTAMP(acctstarttime), acctterminatecause = 'NAS-Reboot' WHERE acctstoptime IS NULL AND nasipaddress = '192.168.40.102' AND acctstarttime <= FROM_UNIXTIME(1417504973)
- rlm_sql (sql): Executing query: 'UPDATE radacct SET acctstoptime = FROM_UNIXTIME(1417504973), acctsessiontime = '1417504973' - UNIX_TIMESTAMP(acctstarttime), acctterminatecause = 'NAS-Reboot' WHERE acctstoptime IS NULL AND nasipaddress = '192.168.40.102' AND acctstarttime <= FROM_UNIXTIME(1417504973)'
- rlm_sql_mysql: Rows matched: 0 Changed: 0 Warnings: 0
- (1) sql : No records updated
- (1) sql : No additional queries configured
- rlm_sql (sql): Released connection (4)
- (1) [sql] = noop
- (1) [exec] = noop
- (1) attr_filter.accounting_response : EXPAND %{User-Name}
- (1) attr_filter.accounting_response : -->
- (1) [attr_filter.accounting_response] = noop
- (1) } # accounting = ok
- (1) Sending Accounting-Response packet to host 192.168.40.102 port 34577, id=14, length=0
- Sending Accounting-Response Id 14 from 192.168.40.12:1813 to 192.168.40.102:34577
- (1) Finished request
- Received Accounting-Request Id 15 from 192.168.40.102:58481 to 192.168.40.12:1813 length 148
- Acct-Status-Type = Start
- NAS-Port-Type = Wireless-802.11
- Calling-Station-Id = '30:39:26:86:CC:EA'
- Called-Station-Id = 'hotspot1'
- NAS-Port-Id = 'citystore_test'
- User-Name = 'kostas2'
- NAS-Port = 2163212291
- Acct-Session-Id = '80f00003'
- Framed-IP-Address = 10.5.50.253
- Mikrotik-Host-IP = 10.5.50.253
- Event-Timestamp = 'Oct 9 2014 23:27:34 EEST'
- NAS-Identifier = 'MikroTik'
- Acct-Delay-Time = 0
- NAS-IP-Address = 192.168.40.102
- (2) Received Accounting-Request packet from host 192.168.40.102 port 58481, id=15, length=148
- (2) Acct-Status-Type = Start
- (2) NAS-Port-Type = Wireless-802.11
- (2) Calling-Station-Id = '30:39:26:86:CC:EA'
- (2) Called-Station-Id = 'hotspot1'
- (2) NAS-Port-Id = 'citystore_test'
- (2) User-Name = 'kostas2'
- (2) NAS-Port = 2163212291
- (2) Acct-Session-Id = '80f00003'
- (2) Framed-IP-Address = 10.5.50.253
- (2) Mikrotik-Host-IP = 10.5.50.253
- (2) Event-Timestamp = 'Oct 9 2014 23:27:34 EEST'
- (2) NAS-Identifier = 'MikroTik'
- (2) Acct-Delay-Time = 0
- (2) NAS-IP-Address = 192.168.40.102
- (2) # Executing section preacct from file /etc/freeradius/sites-enabled/default
- (2) preacct {
- (2) [preprocess] = ok
- (2) acct_unique acct_unique {
- (2) if ("%{string:Class}" =~ /ai:([0-9a-f]{32})/i)
- (2) EXPAND %{string:Class}
- (2) -->
- (2) if ("%{string:Class}" =~ /ai:([0-9a-f]{32})/i) -> FALSE
- (2) else else {
- (2) update request {
- (2) EXPAND %{md5:%{User-Name},%{Acct-Session-ID},%{%{NAS-IPv6-Address}:-%{NAS-IP-Address}},%{NAS-Identifier},%{NAS-Port-ID},%{NAS-Port}}
- (2) --> 9fbe5d4f79bb6c8b3a1ac1036e4bd343
- (2) Acct-Unique-Session-Id := "9fbe5d4f79bb6c8b3a1ac1036e4bd343"
- (2) } # update request = noop
- (2) } # else else = noop
- (2) } # acct_unique acct_unique = noop
- (2) suffix : Checking for suffix after "@"
- (2) suffix : No '@' in User-Name = "kostas2", looking up realm NULL
- (2) suffix : No such realm "NULL"
- (2) [suffix] = noop
- (2) [files] = noop
- (2) } # preacct = ok
- (2) # Executing section accounting from file /etc/freeradius/sites-enabled/default
- (2) accounting {
- (2) detail : EXPAND /var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d
- (2) detail : --> /var/log/freeradius/radacct/192.168.40.102/detail-20141202
- (2) detail : /var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d expands to /var/log/freeradius/radacct/192.168.40.102/detail-20141202
- (2) detail : EXPAND %t
- (2) detail : --> Tue Dec 2 09:22:53 2014
- (2) [detail] = ok
- (2) [unix] = ok
- (2) radutmp : EXPAND /var/log/freeradius/radutmp
- (2) radutmp : --> /var/log/freeradius/radutmp
- (2) radutmp : EXPAND %{User-Name}
- (2) radutmp : --> kostas2
- (2) [radutmp] = ok
- (2) sql : EXPAND %{tolower:type.%{Acct-Status-Type}.query}
- (2) sql : --> type.start.query
- (2) sql : Using query template 'query'
- rlm_sql (sql): Reserved connection (4)
- (2) sql : EXPAND %{User-Name}
- (2) sql : --> kostas2
- (2) sql : SQL-User-Name set to 'kostas2'
- (2) sql : EXPAND INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctupdatetime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress) VALUES ('%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', '%{SQL-User-Name}', '%{Realm}', '%{NAS-IP-Address}', '%{NAS-Port}', '%{NAS-Port-Type}', FROM_UNIXTIME(%{integer:Event-Timestamp}), FROM_UNIXTIME(%{integer:Event-Timestamp}), NULL, '0', '%{Acct-Authentic}', '%{Connect-Info}', '', '0', '0', '%{Called-Station-Id}', '%{Calling-Station-Id}', '', '%{Service-Type}', '%{Framed-Protocol}', '%{Framed-IP-Address}')
- (2) sql : --> INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctupdatetime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress) VALUES ('80f00003', '9fbe5d4f79bb6c8b3a1ac1036e4bd343', 'kostas2', '', '192.168.40.102', '2163212291', 'Wireless-802.11', FROM_UNIXTIME(1412886454), FROM_UNIXTIME(1412886454), NULL, '0', '', '', '', '0', '0', 'hotspot1', '30:39:26:86:CC:EA', '', '', '', '10.5.50.253')
- rlm_sql (sql): Executing query: 'INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctupdatetime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress) VALUES ('80f00003', '9fbe5d4f79bb6c8b3a1ac1036e4bd343', 'kostas2', '', '192.168.40.102', '2163212291', 'Wireless-802.11', FROM_UNIXTIME(1412886454), FROM_UNIXTIME(1412886454), NULL, '0', '', '', '', '0', '0', 'hotspot1', '30:39:26:86:CC:EA', '', '', '', '10.5.50.253')'
- rlm_sql (sql): Released connection (4)
- (2) [sql] = ok
- (2) [exec] = noop
- (2) attr_filter.accounting_response : EXPAND %{User-Name}
- (2) attr_filter.accounting_response : --> kostas2
- (2) attr_filter.accounting_response : Matched entry DEFAULT at line 12
- (2) [attr_filter.accounting_response] = updated
- (2) } # accounting = updated
- (2) Sending Accounting-Response packet to host 192.168.40.102 port 58481, id=15, length=0
- Sending Accounting-Response Id 15 from 192.168.40.12:1813 to 192.168.40.102:58481
- (2) Finished request
- Waking up in 0.2 seconds.
- (1) Cleaning up request packet ID 14 with timestamp +39
- (2) Cleaning up request packet ID 15 with timestamp +39
- Waking up in 4.4 seconds.
- (0) Cleaning up request packet ID 13 with timestamp +39
- Ready to process requests
- Received Accounting-Request Id 16 from 192.168.40.102:37947 to 192.168.40.12:1813 length 196
- Acct-Status-Type = Stop
- Acct-Terminate-Cause = User-Request
- NAS-Port-Type = Wireless-802.11
- Calling-Station-Id = '30:39:26:86:CC:EA'
- Called-Station-Id = 'hotspot1'
- NAS-Port-Id = 'citystore_test'
- User-Name = 'kostas2'
- NAS-Port = 2163212291
- Acct-Session-Id = '80f00003'
- Framed-IP-Address = 10.5.50.253
- Mikrotik-Host-IP = 10.5.50.253
- Event-Timestamp = 'Oct 9 2014 23:53:00 EEST'
- Acct-Input-Octets = 106630
- Acct-Output-Octets = 1094450
- Acct-Input-Gigawords = 0
- Acct-Output-Gigawords = 0
- Acct-Input-Packets = 1061
- Acct-Output-Packets = 1129
- Acct-Session-Time = 1526
- NAS-Identifier = 'MikroTik'
- Acct-Delay-Time = 0
- NAS-IP-Address = 192.168.40.102
- (3) Received Accounting-Request packet from host 192.168.40.102 port 37947, id=16, length=196
- (3) Acct-Status-Type = Stop
- (3) Acct-Terminate-Cause = User-Request
- (3) NAS-Port-Type = Wireless-802.11
- (3) Calling-Station-Id = '30:39:26:86:CC:EA'
- (3) Called-Station-Id = 'hotspot1'
- (3) NAS-Port-Id = 'citystore_test'
- (3) User-Name = 'kostas2'
- (3) NAS-Port = 2163212291
- (3) Acct-Session-Id = '80f00003'
- (3) Framed-IP-Address = 10.5.50.253
- (3) Mikrotik-Host-IP = 10.5.50.253
- (3) Event-Timestamp = 'Oct 9 2014 23:53:00 EEST'
- (3) Acct-Input-Octets = 106630
- (3) Acct-Output-Octets = 1094450
- (3) Acct-Input-Gigawords = 0
- (3) Acct-Output-Gigawords = 0
- (3) Acct-Input-Packets = 1061
- (3) Acct-Output-Packets = 1129
- (3) Acct-Session-Time = 1526
- (3) NAS-Identifier = 'MikroTik'
- (3) Acct-Delay-Time = 0
- (3) NAS-IP-Address = 192.168.40.102
- (3) # Executing section preacct from file /etc/freeradius/sites-enabled/default
- (3) preacct {
- (3) [preprocess] = ok
- (3) acct_unique acct_unique {
- (3) if ("%{string:Class}" =~ /ai:([0-9a-f]{32})/i)
- (3) EXPAND %{string:Class}
- (3) -->
- (3) if ("%{string:Class}" =~ /ai:([0-9a-f]{32})/i) -> FALSE
- (3) else else {
- (3) update request {
- (3) EXPAND %{md5:%{User-Name},%{Acct-Session-ID},%{%{NAS-IPv6-Address}:-%{NAS-IP-Address}},%{NAS-Identifier},%{NAS-Port-ID},%{NAS-Port}}
- (3) --> 9fbe5d4f79bb6c8b3a1ac1036e4bd343
- (3) Acct-Unique-Session-Id := "9fbe5d4f79bb6c8b3a1ac1036e4bd343"
- (3) } # update request = noop
- (3) } # else else = noop
- (3) } # acct_unique acct_unique = noop
- (3) suffix : Checking for suffix after "@"
- (3) suffix : No '@' in User-Name = "kostas2", looking up realm NULL
- (3) suffix : No such realm "NULL"
- (3) [suffix] = noop
- (3) [files] = noop
- (3) } # preacct = ok
- (3) # Executing section accounting from file /etc/freeradius/sites-enabled/default
- (3) accounting {
- (3) detail : EXPAND /var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d
- (3) detail : --> /var/log/freeradius/radacct/192.168.40.102/detail-20141202
- (3) detail : /var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d expands to /var/log/freeradius/radacct/192.168.40.102/detail-20141202
- (3) detail : EXPAND %t
- (3) detail : --> Tue Dec 2 09:48:19 2014
- (3) [detail] = ok
- (3) [unix] = ok
- (3) radutmp : EXPAND /var/log/freeradius/radutmp
- (3) radutmp : --> /var/log/freeradius/radutmp
- (3) radutmp : EXPAND %{User-Name}
- (3) radutmp : --> kostas2
- (3) [radutmp] = ok
- (3) sql : EXPAND %{tolower:type.%{Acct-Status-Type}.query}
- (3) sql : --> type.stop.query
- (3) sql : Using query template 'query'
- rlm_sql (sql): Reserved connection (4)
- (3) sql : EXPAND %{User-Name}
- (3) sql : --> kostas2
- (3) sql : SQL-User-Name set to 'kostas2'
- (3) sql : EXPAND UPDATE radacct SET acctstoptime = FROM_UNIXTIME(%{integer:Event-Timestamp}), acctsessiontime = '%{Acct-Session-Time}', acctinputoctets = '%{%{Acct-Input-Gigawords}:-0}' << 32 | '%{%{Acct-Input-Octets}:-0}', acctoutputoctets = '%{%{Acct-Output-Gigawords}:-0}' << 32 | '%{%{Acct-Output-Octets}:-0}', acctterminatecause = '%{Acct-Terminate-Cause}', connectinfo_stop = '%{Connect-Info}' WHERE acctsessionid = '%{Acct-Session-Id}' AND username = '%{SQL-User-Name}' AND nasipaddress = '%{NAS-IP-Address}'
- (3) sql : --> UPDATE radacct SET acctstoptime = FROM_UNIXTIME(1412887980), acctsessiontime = '1526', acctinputoctets = '0' << 32 | '106630', acctoutputoctets = '0' << 32 | '1094450', acctterminatecause = 'User-Request', connectinfo_stop = '' WHERE acctsessionid = '80f00003' AND username = 'kostas2' AND nasipaddress = '192.168.40.102'
- rlm_sql (sql): Executing query: 'UPDATE radacct SET acctstoptime = FROM_UNIXTIME(1412887980), acctsessiontime = '1526', acctinputoctets = '0' << 32 | '106630', acctoutputoctets = '0' << 32 | '1094450', acctterminatecause = 'User-Request', connectinfo_stop = '' WHERE acctsessionid = '80f00003' AND username = 'kostas2' AND nasipaddress = '192.168.40.102''
- rlm_sql_mysql: Rows matched: 1 Changed: 1 Warnings: 0
- rlm_sql (sql): Released connection (4)
- rlm_sql (sql): Closing connection (3): Hit idle_timeout, was idle for 1565 seconds
- rlm_sql (sql): You probably need to lower "min"
- rlm_sql_mysql: Socket destructor called, closing socket
- rlm_sql (sql): Closing connection (2): Hit idle_timeout, was idle for 1565 seconds
- rlm_sql (sql): You probably need to lower "min"
- rlm_sql_mysql: Socket destructor called, closing socket
- rlm_sql (sql): Closing connection (1): Hit idle_timeout, was idle for 1565 seconds
- rlm_sql (sql): You probably need to lower "min"
- rlm_sql_mysql: Socket destructor called, closing socket
- (3) [sql] = ok
- (3) [exec] = noop
- (3) attr_filter.accounting_response : EXPAND %{User-Name}
- (3) attr_filter.accounting_response : --> kostas2
- (3) attr_filter.accounting_response : Matched entry DEFAULT at line 12
- (3) [attr_filter.accounting_response] = updated
- (3) } # accounting = updated
- (3) Sending Accounting-Response packet to host 192.168.40.102 port 37947, id=16, length=0
- Sending Accounting-Response Id 16 from 192.168.40.12:1813 to 192.168.40.102:37947
- (3) Finished request
- Waking up in 0.3 seconds.
- (3) Cleaning up request packet ID 16 with timestamp +1565
Add Comment
Please, Sign In to add comment