freeradius 3 - wifi eap authentication with many Calling-station-id

Maksim Bessonov maksim.bessonov2 at gmail.com
Wed Jul 25 22:46:53 CEST 2018


Debug with the problem

Starting - reading configuration files ...
including dictionary file /usr/share/freeradius/dictionary
including dictionary file /usr/share/freeradius/dictionary.dhcp
including dictionary file /usr/share/freeradius/dictionary.vqp
including dictionary file /etc/freeradius/3.0/dictionary
including configuration file /etc/freeradius/3.0/radiusd.conf
including configuration file /etc/freeradius/3.0/proxy.conf
including configuration file /etc/freeradius/3.0/clients.conf
including files in directory /etc/freeradius/3.0/mods-enabled/
including configuration file /etc/freeradius/3.0/mods-enabled/utf8
including configuration file /etc/freeradius/3.0/mods-enabled/realm
including configuration file /etc/freeradius/3.0/mods-enabled/logintime
including configuration file /etc/freeradius/3.0/mods-enabled/sradutmp
including configuration file /etc/freeradius/3.0/mods-enabled/linelog
including configuration file /etc/freeradius/3.0/mods-enabled/mschap
including configuration file /etc/freeradius/3.0/mods-enabled/digest
including configuration file /etc/freeradius/3.0/mods-enabled/radutmp
including configuration file /etc/freeradius/3.0/mods-enabled/ntlm_auth
including configuration file /etc/freeradius/3.0/mods-enabled/cache_eap
including configuration file /etc/freeradius/3.0/mods-enabled/attr_filter
including configuration file /etc/freeradius/3.0/mods-enabled/expr
including configuration file /etc/freeradius/3.0/mods-enabled/detail.log
including configuration file /etc/freeradius/3.0/mods-enabled/passwd
including configuration file /etc/freeradius/3.0/mods-enabled/exec
including configuration file /etc/freeradius/3.0/mods-enabled/preprocess
including configuration file /etc/freeradius/3.0/mods-enabled/unpack
including configuration file /etc/freeradius/3.0/mods-enabled/chap
including configuration file /etc/freeradius/3.0/mods-enabled/echo
including configuration file /etc/freeradius/3.0/mods-enabled/sql
including configuration file
/etc/freeradius/3.0/mods-config/sql/main/mysql/queries.conf
including configuration file /etc/freeradius/3.0/mods-enabled/unix
including configuration file /etc/freeradius/3.0/mods-enabled/eap
including configuration file /etc/freeradius/3.0/mods-enabled/detail
including configuration file
/etc/freeradius/3.0/mods-enabled/dynamic_clients
including configuration file /etc/freeradius/3.0/mods-enabled/pap
including configuration file /etc/freeradius/3.0/mods-enabled/files
including configuration file /etc/freeradius/3.0/mods-enabled/soh
including configuration file /etc/freeradius/3.0/mods-enabled/replicate
including configuration file /etc/freeradius/3.0/mods-enabled/expiration
including configuration file /etc/freeradius/3.0/mods-enabled/always
including files in directory /etc/freeradius/3.0/policy.d/
including configuration file /etc/freeradius/3.0/policy.d/canonicalization
including configuration file /etc/freeradius/3.0/policy.d/control
including configuration file /etc/freeradius/3.0/policy.d/dhcp
including configuration file /etc/freeradius/3.0/policy.d/accounting
including configuration file /etc/freeradius/3.0/policy.d/debug
including configuration file /etc/freeradius/3.0/policy.d/operator-name
including configuration file /etc/freeradius/3.0/policy.d/cui
including configuration file /etc/freeradius/3.0/policy.d/eap
including configuration file
/etc/freeradius/3.0/policy.d/moonshot-targeted-ids
including configuration file /etc/freeradius/3.0/policy.d/filter
including configuration file /etc/freeradius/3.0/policy.d/abfab-tr
including files in directory /etc/freeradius/3.0/mods-enabled/
including configuration file /etc/freeradius/3.0/mods-enabled/utf8
including configuration file /etc/freeradius/3.0/mods-enabled/realm
including configuration file /etc/freeradius/3.0/mods-enabled/logintime
including configuration file /etc/freeradius/3.0/mods-enabled/sradutmp
including configuration file /etc/freeradius/3.0/mods-enabled/linelog
including configuration file /etc/freeradius/3.0/mods-enabled/mschap
including configuration file /etc/freeradius/3.0/mods-enabled/digest
including configuration file /etc/freeradius/3.0/mods-enabled/radutmp
including configuration file /etc/freeradius/3.0/mods-enabled/ntlm_auth
including configuration file /etc/freeradius/3.0/mods-enabled/cache_eap
including configuration file /etc/freeradius/3.0/mods-enabled/attr_filter
including configuration file /etc/freeradius/3.0/mods-enabled/expr
including configuration file /etc/freeradius/3.0/mods-enabled/detail.log
including configuration file /etc/freeradius/3.0/mods-enabled/passwd
including configuration file /etc/freeradius/3.0/mods-enabled/exec
including configuration file /etc/freeradius/3.0/mods-enabled/preprocess
including configuration file /etc/freeradius/3.0/mods-enabled/unpack
including configuration file /etc/freeradius/3.0/mods-enabled/chap
including configuration file /etc/freeradius/3.0/mods-enabled/echo
including configuration file /etc/freeradius/3.0/mods-enabled/sql
including configuration file
/etc/freeradius/3.0/mods-config/sql/main/mysql/queries.conf
including configuration file /etc/freeradius/3.0/mods-enabled/unix
including configuration file /etc/freeradius/3.0/mods-enabled/eap
including configuration file /etc/freeradius/3.0/mods-enabled/detail
including configuration file
/etc/freeradius/3.0/mods-enabled/dynamic_clients
including configuration file /etc/freeradius/3.0/mods-enabled/pap
including configuration file /etc/freeradius/3.0/mods-enabled/files
including configuration file /etc/freeradius/3.0/mods-enabled/soh
including configuration file /etc/freeradius/3.0/mods-enabled/replicate
including configuration file /etc/freeradius/3.0/mods-enabled/expiration
including configuration file /etc/freeradius/3.0/mods-enabled/always
including files in directory /etc/freeradius/3.0/sites-enabled/
including configuration file /etc/freeradius/3.0/sites-enabled/inner-tunnel
including configuration file /etc/freeradius/3.0/sites-enabled/default
main {
 security {
        user = "freerad"
        group = "freerad"
        allow_core_dumps = no
 }
        name = "freeradius"
        prefix = "/usr"
        localstatedir = "/var"
        logdir = "/var/log/freeradius"
        run_dir = "/var/run/freeradius"
}
main {
        name = "freeradius"
        prefix = "/usr"
        localstatedir = "/var"
        sbindir = "/usr/sbin"
        logdir = "/var/log/freeradius"
        run_dir = "/var/run/freeradius"
        libdir = "/usr/lib/freeradius"
        radacctdir = "/var/log/freeradius/radacct"
        hostname_lookups = no
        max_request_time = 30
        cleanup_delay = 5
        max_requests = 16384
        pidfile = "/var/run/freeradius/freeradius.pid"
        checkrad = "/usr/sbin/checkrad"
        debug_level = 0
        proxy_requests = yes
 log {
        stripped_names = no
        auth = no
        auth_badpass = no
        auth_goodpass = no
        colourise = yes
        msg_denied = "You are already logged in - access denied"
 }
 resources {
 }
 security {
        max_attributes = 200
        reject_delay = 1.000000
        status_server = yes
 }
}
radiusd: #### Loading Realms and Home Servers ####
 proxy server {
        retry_delay = 5
        retry_count = 3
        default_fallback = no
        dead_time = 120
        wake_all_if_all_dead = no
 }
 home_server localhost {
        ipaddr = 127.0.0.1
        port = 1812
        type = "auth"
        secret = <<< secret >>>
        response_window = 20.000000
        response_timeouts = 1
        max_outstanding = 65536
        zombie_period = 40
        status_check = "status-server"
        ping_interval = 30
        check_interval = 30
        check_timeout = 4
        num_answers_to_alive = 3
        revive_interval = 120
  limit {
        max_connections = 16
        max_requests = 0
        lifetime = 0
        idle_timeout = 0
  }
  coa {
        irt = 2
        mrt = 16
        mrc = 5
        mrd = 30
  }
 }
 home_server_pool my_auth_failover {
        type = fail-over
        home_server = localhost
 }
 realm example.com {
        auth_pool = my_auth_failover
 }
 realm LOCAL {
 }
radiusd: #### Loading Clients ####
 client localhost {
        ipaddr = 127.0.0.1
        require_message_authenticator = no
        secret = <<< secret >>>
        nas_type = "other"
        proto = "*"
  limit {
        max_connections = 16
        lifetime = 0
        idle_timeout = 30
  }
 }
 client localhost_ipv6 {
        ipv6addr = ::1
        require_message_authenticator = no
        secret = <<< secret >>>
  limit {
        max_connections = 16
        lifetime = 0
        idle_timeout = 30
  }
 }
Debugger not attached
 # Creating Auth-Type = mschap
 # Creating Auth-Type = eap
 # Creating Auth-Type = MS-CHAP
radiusd: #### Instantiating modules ####
 modules {
  # Loaded module rlm_utf8
  # Loading module "utf8" from file /etc/freeradius/3.0/mods-enabled/utf8
  # Loaded module rlm_realm
  # Loading module "IPASS" from file /etc/freeradius/3.0/mods-enabled/realm
  realm IPASS {
        format = "prefix"
        delimiter = "/"
        ignore_default = no
        ignore_null = no
  }
  # Loading module "suffix" from file /etc/freeradius/3.0/mods-enabled/realm
  realm suffix {
        format = "suffix"
        delimiter = "@"
        ignore_default = no
        ignore_null = no
  }
  # Loading module "realmpercent" from file
/etc/freeradius/3.0/mods-enabled/realm
  realm realmpercent {
        format = "suffix"
        delimiter = "%"
        ignore_default = no
        ignore_null = no
  }
  # Loading module "ntdomain" from file
/etc/freeradius/3.0/mods-enabled/realm
  realm ntdomain {
        format = "prefix"
        delimiter = "\\"
        ignore_default = no
        ignore_null = no
  }
  # Loaded module rlm_logintime
  # Loading module "logintime" from file
/etc/freeradius/3.0/mods-enabled/logintime
  logintime {
        minimum_timeout = 60
  }
  # Loaded module rlm_radutmp
  # Loading module "sradutmp" from file
/etc/freeradius/3.0/mods-enabled/sradutmp
  radutmp sradutmp {
        filename = "/var/log/freeradius/sradutmp"
        username = "%{User-Name}"
        case_sensitive = yes
        check_with_nas = yes
        permissions = 420
        caller_id = no
  }
  # Loaded module rlm_linelog
  # Loading module "linelog" from file
/etc/freeradius/3.0/mods-enabled/linelog
  linelog {
        filename = "/var/log/freeradius/linelog"
        escape_filenames = no
        syslog_severity = "info"
        permissions = 384
        format = "This is a log message for %{User-Name}"
        reference = "messages.%{%{reply:Packet-Type}:-default}"
  }
  # Loading module "log_accounting" from file
/etc/freeradius/3.0/mods-enabled/linelog
  linelog log_accounting {
        filename = "/var/log/freeradius/linelog-accounting"
        escape_filenames = no
        syslog_severity = "info"
        permissions = 384
        format = ""
        reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}"
  }
  # Loaded module rlm_mschap
  # Loading module "mschap" from file
/etc/freeradius/3.0/mods-enabled/mschap
  mschap {
        use_mppe = yes
        require_encryption = no
        require_strong = no
        with_ntdomain_hack = yes
   passchange {
   }
        allow_retry = yes
  }
  # Loaded module rlm_digest
  # Loading module "digest" from file
/etc/freeradius/3.0/mods-enabled/digest
  # Loading module "radutmp" from file
/etc/freeradius/3.0/mods-enabled/radutmp
  radutmp {
        filename = "/var/log/freeradius/radutmp"
        username = "%{User-Name}"
        case_sensitive = yes
        check_with_nas = yes
        permissions = 384
        caller_id = yes
  }
  # Loaded module rlm_exec
  # Loading module "ntlm_auth" from file
/etc/freeradius/3.0/mods-enabled/ntlm_auth
  exec ntlm_auth {
        wait = yes
        program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN
--username=%{mschap:User-Name} --password=%{User-Password}"
        shell_escape = yes
  }
  # Loaded module rlm_cache
  # Loading module "cache_eap" from file
/etc/freeradius/3.0/mods-enabled/cache_eap
  cache cache_eap {
        driver = "rlm_cache_rbtree"
        key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}"
        ttl = 15
        max_entries = 0
        epoch = 0
        add_stats = no
  }
  # Loaded module rlm_attr_filter
  # Loading module "attr_filter.post-proxy" from file
/etc/freeradius/3.0/mods-enabled/attr_filter
  attr_filter attr_filter.post-proxy {
        filename = "/etc/freeradius/3.0/mods-config/attr_filter/post-proxy"
        key = "%{Realm}"
        relaxed = no
  }
  # Loading module "attr_filter.pre-proxy" from file
/etc/freeradius/3.0/mods-enabled/attr_filter
  attr_filter attr_filter.pre-proxy {
        filename = "/etc/freeradius/3.0/mods-config/attr_filter/pre-proxy"
        key = "%{Realm}"
        relaxed = no
  }
  # Loading module "attr_filter.access_reject" from file
/etc/freeradius/3.0/mods-enabled/attr_filter
  attr_filter attr_filter.access_reject {
        filename =
"/etc/freeradius/3.0/mods-config/attr_filter/access_reject"
        key = "%{User-Name}"
        relaxed = no
  }
  # Loading module "attr_filter.access_challenge" from file
/etc/freeradius/3.0/mods-enabled/attr_filter
  attr_filter attr_filter.access_challenge {
        filename =
"/etc/freeradius/3.0/mods-config/attr_filter/access_challenge"
        key = "%{User-Name}"
        relaxed = no
  }
  # Loading module "attr_filter.accounting_response" from file
/etc/freeradius/3.0/mods-enabled/attr_filter
  attr_filter attr_filter.accounting_response {
        filename =
"/etc/freeradius/3.0/mods-config/attr_filter/accounting_response"
        key = "%{User-Name}"
        relaxed = no
  }
  # Loaded module rlm_expr
  # Loading module "expr" from file /etc/freeradius/3.0/mods-enabled/expr
  expr {
        safe_characters =
"@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_:
/äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ"
  }
  # Loaded module rlm_detail
  # Loading module "auth_log" from file
/etc/freeradius/3.0/mods-enabled/detail.log
  detail auth_log {
        filename =
"/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"
        header = "%t"
        permissions = 384
        locking = no
        escape_filenames = no
        log_packet_header = no
  }
  # Loading module "reply_log" from file
/etc/freeradius/3.0/mods-enabled/detail.log
  detail reply_log {
        filename =
"/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"
        header = "%t"
        permissions = 384
        locking = no
        escape_filenames = no
        log_packet_header = no
  }
  # Loading module "pre_proxy_log" from file
/etc/freeradius/3.0/mods-enabled/detail.log
  detail pre_proxy_log {
        filename =
"/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
        header = "%t"
        permissions = 384
        locking = no
        escape_filenames = no
        log_packet_header = no
  }
  # Loading module "post_proxy_log" from file
/etc/freeradius/3.0/mods-enabled/detail.log
  detail post_proxy_log {
        filename =
"/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"
        header = "%t"
        permissions = 384
        locking = no
        escape_filenames = no
        log_packet_header = no
  }
  # Loaded module rlm_passwd
  # Loading module "etc_passwd" from file
/etc/freeradius/3.0/mods-enabled/passwd
  passwd etc_passwd {
        filename = "/etc/passwd"
        format = "*User-Name:Crypt-Password:"
        delimiter = ":"
        ignore_nislike = no
        ignore_empty = yes
        allow_multiple_keys = no
        hash_size = 100
  }
  # Loading module "exec" from file /etc/freeradius/3.0/mods-enabled/exec
  exec {
        wait = no
        input_pairs = "request"
        shell_escape = yes
        timeout = 10
  }
  # Loaded module rlm_preprocess
  # Loading module "preprocess" from file
/etc/freeradius/3.0/mods-enabled/preprocess
  preprocess {
        huntgroups = "/etc/freeradius/3.0/mods-config/preprocess/huntgroups"
        hints = "/etc/freeradius/3.0/mods-config/preprocess/hints"
        with_ascend_hack = no
        ascend_channels_per_line = 23
        with_ntdomain_hack = no
        with_specialix_jetstream_hack = no
        with_cisco_vsa_hack = no
        with_alvarion_vsa_hack = no
  }
  # Loaded module rlm_unpack
  # Loading module "unpack" from file
/etc/freeradius/3.0/mods-enabled/unpack
  # Loaded module rlm_chap
  # Loading module "chap" from file /etc/freeradius/3.0/mods-enabled/chap
  # Loading module "echo" from file /etc/freeradius/3.0/mods-enabled/echo
  exec echo {
        wait = yes
        program = "/bin/echo %{User-Name}"
        input_pairs = "request"
        output_pairs = "reply"
        shell_escape = yes
  }
  # Loaded module rlm_sql
  # Loading module "sql" from file /etc/freeradius/3.0/mods-enabled/sql
  sql {
        driver = "rlm_sql_mysql"
        server = "localhost"
        port = 3306
        login = "radius"
        password = <<< secret >>>
        radius_db = "radius"
        read_groups = yes
        read_profiles = yes
        read_clients = yes
        delete_stale_sessions = yes
        sql_user_name = "%{User-Name}"
        logfile = "/var/log/freeradius/sqllog.sql"
        default_user_profile = ""
        client_query = "SELECT id, nasname, shortname, type, secret, server
FROM nas"
        authorize_check_query = "SELECT id, username, attribute, value, op
FROM radcheck WHERE username = '%{SQL-User-Name}' ORDER BY id"
        authorize_reply_query = "SELECT id, username, attribute, value, op
FROM radreply WHERE username = '%{SQL-User-Name}' ORDER BY id"
        authorize_group_check_query = "SELECT id, groupname, attribute,
Value, op FROM radgroupcheck WHERE groupname = '%{SQL-Group}' ORDER BY id"
        authorize_group_reply_query = "SELECT id, groupname, attribute,
value, op FROM radgroupreply WHERE groupname = '%{SQL-Group}' ORDER BY id"
        group_membership_query = "SELECT groupname FROM radusergroup WHERE
username = '%{SQL-User-Name}' ORDER BY priority"
        simul_count_query = "SELECT COUNT(*) FROM radacct WHERE username =
'%{SQL-User-Name}' AND acctstoptime IS NULL"
        simul_verify_query = "SELECT radacctid, acctsessionid, username,
nasipaddress, nasportid, framedipaddress, callingstationid, framedprotocol
FROM radacct WHERE username = '%{SQL-User-Name}' AND acctstoptime IS NULL"
        safe_characters =
"@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
   accounting {
        reference = "%{tolower:type.%{Acct-Status-Type}.query}"
    type {
     accounting-on {
        query = "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})"
     }
     accounting-off {
        query = "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})"
     }
     start {
        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 ('%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}',
'%{SQL-User-Name}', '%{Realm}', '%{NAS-IP-Address}',
'%{%{NAS-Port-ID}:-%{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}')"
     }
     interim-update {
        query = "UPDATE radacct SET acctupdatetime  =
(@acctupdatetime_old:=acctupdatetime), acctupdatetime  =
FROM_UNIXTIME(%{integer:Event-Timestamp}), acctinterval    =
%{integer:Event-Timestamp} - UNIX_TIMESTAMP(@acctupdatetime_old),
framedipaddress = '%{Framed-IP-Address}', acctsessiontime =
%{%{Acct-Session-Time}:-NULL}, acctinputoctets =
'%{%{Acct-Input-Gigawords}:-0}' << 32 | '%{%{Acct-Input-Octets}:-0}',
acctoutputoctets = '%{%{Acct-Output-Gigawords}:-0}' << 32 |
'%{%{Acct-Output-Octets}:-0}' WHERE AcctUniqueId =
'%{Acct-Unique-Session-Id}'"
     }
     stop {
        query = "UPDATE radacct SET acctstoptime        =
FROM_UNIXTIME(%{integer:Event-Timestamp}), acctsessiontime    =
%{%{Acct-Session-Time}:-NULL}, 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
AcctUniqueId = '%{Acct-Unique-Session-Id}'"
     }
    }
   }
   post-auth {
        reference = ".query"
        query = "INSERT INTO radpostauth (username, pass, reply, authdate)
VALUES ( '%{SQL-User-Name}', '%{%{User-Password}:-%{Chap-Password}}',
'%{reply:Packet-Type}', '%S')"
   }
  }
rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
Creating attribute SQL-Group
  # Loaded module rlm_unix
  # Loading module "unix" from file /etc/freeradius/3.0/mods-enabled/unix
  unix {
        radwtmp = "/var/log/freeradius/radwtmp"
  }
Creating attribute Unix-Group
  # Loaded module rlm_eap
  # Loading module "eap" from file /etc/freeradius/3.0/mods-enabled/eap
  eap {
        default_eap_type = "md5"
        timer_expire = 60
        ignore_unknown_eap_types = no
        cisco_accounting_username_bug = no
        max_sessions = 16384
  }
  # Loading module "detail" from file
/etc/freeradius/3.0/mods-enabled/detail
  detail {
        filename =
"/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
        header = "%t"
        permissions = 384
        locking = no
        escape_filenames = no
        log_packet_header = no
  }
  # Loaded module rlm_dynamic_clients
  # Loading module "dynamic_clients" from file
/etc/freeradius/3.0/mods-enabled/dynamic_clients
  # Loaded module rlm_pap
  # Loading module "pap" from file /etc/freeradius/3.0/mods-enabled/pap
  pap {
        normalise = yes
  }
  # Loaded module rlm_files
  # Loading module "files" from file /etc/freeradius/3.0/mods-enabled/files
  files {
        filename = "/etc/freeradius/3.0/mods-config/files/authorize"
        acctusersfile = "/etc/freeradius/3.0/mods-config/files/accounting"
        preproxy_usersfile =
"/etc/freeradius/3.0/mods-config/files/pre-proxy"
  }
  # Loaded module rlm_soh
  # Loading module "soh" from file /etc/freeradius/3.0/mods-enabled/soh
  soh {
        dhcp = yes
  }
  # Loaded module rlm_replicate
  # Loading module "replicate" from file
/etc/freeradius/3.0/mods-enabled/replicate
  # Loaded module rlm_expiration
  # Loading module "expiration" from file
/etc/freeradius/3.0/mods-enabled/expiration
  # Loaded module rlm_always
  # Loading module "reject" from file
/etc/freeradius/3.0/mods-enabled/always
  always reject {
        rcode = "reject"
        simulcount = 0
        mpp = no
  }
  # Loading module "fail" from file /etc/freeradius/3.0/mods-enabled/always
  always fail {
        rcode = "fail"
        simulcount = 0
        mpp = no
  }
  # Loading module "ok" from file /etc/freeradius/3.0/mods-enabled/always
  always ok {
        rcode = "ok"
        simulcount = 0
        mpp = no
  }
  # Loading module "handled" from file
/etc/freeradius/3.0/mods-enabled/always
  always handled {
        rcode = "handled"
        simulcount = 0
        mpp = no
  }
  # Loading module "invalid" from file
/etc/freeradius/3.0/mods-enabled/always
  always invalid {
        rcode = "invalid"
        simulcount = 0
        mpp = no
  }
  # Loading module "userlock" from file
/etc/freeradius/3.0/mods-enabled/always
  always userlock {
        rcode = "userlock"
        simulcount = 0
        mpp = no
  }
  # Loading module "notfound" from file
/etc/freeradius/3.0/mods-enabled/always
  always notfound {
        rcode = "notfound"
        simulcount = 0
        mpp = no
  }
  # Loading module "noop" from file /etc/freeradius/3.0/mods-enabled/always
  always noop {
        rcode = "noop"
        simulcount = 0
        mpp = no
  }
  # Loading module "updated" from file
/etc/freeradius/3.0/mods-enabled/always
  always updated {
        rcode = "updated"
        simulcount = 0
        mpp = no
  }
  instantiate {
  }
  # Instantiating module "IPASS" from file
/etc/freeradius/3.0/mods-enabled/realm
  # Instantiating module "suffix" from file
/etc/freeradius/3.0/mods-enabled/realm
  # Instantiating module "realmpercent" from file
/etc/freeradius/3.0/mods-enabled/realm
  # Instantiating module "ntdomain" from file
/etc/freeradius/3.0/mods-enabled/realm
  # Instantiating module "logintime" from file
/etc/freeradius/3.0/mods-enabled/logintime
  # Instantiating module "linelog" from file
/etc/freeradius/3.0/mods-enabled/linelog
  # Instantiating module "log_accounting" from file
/etc/freeradius/3.0/mods-enabled/linelog
  # Instantiating module "mschap" from file
/etc/freeradius/3.0/mods-enabled/mschap
rlm_mschap (mschap): using internal authentication
  # Instantiating module "cache_eap" from file
/etc/freeradius/3.0/mods-enabled/cache_eap
rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree)
loaded and linked
  # Instantiating module "attr_filter.post-proxy" from file
/etc/freeradius/3.0/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/3.0/mods-config/attr_filter/post-proxy
  # Instantiating module "attr_filter.pre-proxy" from file
/etc/freeradius/3.0/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/3.0/mods-config/attr_filter/pre-proxy
  # Instantiating module "attr_filter.access_reject" from file
/etc/freeradius/3.0/mods-enabled/attr_filter
reading pairlist file
/etc/freeradius/3.0/mods-config/attr_filter/access_reject
[/etc/freeradius/3.0/mods-config/attr_filter/access_reject]:11 Check item
"FreeRADIUS-Response-Delay"   found in filter list for realm "DEFAULT".
[/etc/freeradius/3.0/mods-config/attr_filter/access_reject]:11 Check item
"FreeRADIUS-Response-Delay-USec"      found in filter list for realm
"DEFAULT".
  # Instantiating module "attr_filter.access_challenge" from file
/etc/freeradius/3.0/mods-enabled/attr_filter
reading pairlist file
/etc/freeradius/3.0/mods-config/attr_filter/access_challenge
  # Instantiating module "attr_filter.accounting_response" from file
/etc/freeradius/3.0/mods-enabled/attr_filter
reading pairlist file
/etc/freeradius/3.0/mods-config/attr_filter/accounting_response
  # Instantiating module "auth_log" from file
/etc/freeradius/3.0/mods-enabled/detail.log
rlm_detail (auth_log): 'User-Password' suppressed, will not appear in
detail output
  # Instantiating module "reply_log" from file
/etc/freeradius/3.0/mods-enabled/detail.log
  # Instantiating module "pre_proxy_log" from file
/etc/freeradius/3.0/mods-enabled/detail.log
  # Instantiating module "post_proxy_log" from file
/etc/freeradius/3.0/mods-enabled/detail.log
  # Instantiating module "etc_passwd" from file
/etc/freeradius/3.0/mods-enabled/passwd
rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no
  # Instantiating module "preprocess" from file
/etc/freeradius/3.0/mods-enabled/preprocess
reading pairlist file /etc/freeradius/3.0/mods-config/preprocess/huntgroups
reading pairlist file /etc/freeradius/3.0/mods-config/preprocess/hints
  # Instantiating module "sql" from file
/etc/freeradius/3.0/mods-enabled/sql
rlm_sql_mysql: libmysql version: 10.1.26-MariaDB
   mysql {
    tls {
    }
        warnings = "auto"
   }
rlm_sql (sql): Attempting to connect to database "radius"
rlm_sql (sql): Initialising connection pool
   pool {
        start = 5
        min = 3
        max = 32
        spare = 10
        uses = 0
        lifetime = 0
        cleanup_interval = 30
        idle_timeout = 60
        retry_delay = 30
        spread = no
   }
rlm_sql (sql): Opening additional connection (0), 1 of 32 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radius' on Localhost via UNIX socket,
server version 10.1.26-MariaDB-0+deb9u1, protocol version 10
rlm_sql (sql): Opening additional connection (1), 1 of 31 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radius' on Localhost via UNIX socket,
server version 10.1.26-MariaDB-0+deb9u1, protocol version 10
rlm_sql (sql): Opening additional connection (2), 1 of 30 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radius' on Localhost via UNIX socket,
server version 10.1.26-MariaDB-0+deb9u1, protocol version 10
rlm_sql (sql): Opening additional connection (3), 1 of 29 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radius' on Localhost via UNIX socket,
server version 10.1.26-MariaDB-0+deb9u1, protocol version 10
rlm_sql (sql): Opening additional connection (4), 1 of 28 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radius' on Localhost via UNIX socket,
server version 10.1.26-MariaDB-0+deb9u1, protocol version 10
rlm_sql (sql): Processing generate_sql_clients
rlm_sql (sql) in generate_sql_clients: query is SELECT id, nasname,
shortname, type, secret, server FROM nas
rlm_sql (sql): Reserved connection (0)
rlm_sql (sql): Executing select query: SELECT id, nasname, shortname, type,
secret, server FROM nas
rlm_sql (sql): Adding client 10.123.0.249 (home.gw) to global clients list
rlm_sql (10.123.0.249): Client "home.gw" (sql) added
rlm_sql (sql): Adding client 10.122.0.249 (home2.gw) to global clients list
rlm_sql (10.122.0.249): Client "home2.gw" (sql) added
rlm_sql (sql): Released connection (0)
rlm_sql (sql): Need 5 more connections to reach 10 spares
rlm_sql (sql): Opening additional connection (5), 1 of 27 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radius' on Localhost via UNIX socket,
server version 10.1.26-MariaDB-0+deb9u1, protocol version 10
  # Instantiating module "eap" from file
/etc/freeradius/3.0/mods-enabled/eap
   # Linked to sub-module rlm_eap_md5
   # Linked to sub-module rlm_eap_tls
   tls {
        tls = "tls-common"
   }
   tls-config tls-common {
        verify_depth = 0
        ca_path = "/etc/freeradius/3.0/certs"
        pem_file_type = yes
        private_key_file = "/etc/ssl/private/ssl-cert-snakeoil.key"
        certificate_file = "/etc/ssl/certs/ssl-cert-snakeoil.pem"
        ca_file = "/etc/ssl/certs/ca-certificates.crt"
        private_key_password = <<< secret >>>
        dh_file = "/etc/freeradius/3.0/certs/dh"
        fragment_size = 1024
        include_length = yes
        auto_chain = yes
        check_crl = no
        check_all_crl = no
        cipher_list = "DEFAULT"
        ecdh_curve = "prime256v1"
    cache {
        enable = yes
        lifetime = 24
        max_entries = 255
    }
    verify {
        skip_if_ocsp_ok = no
    }
    ocsp {
        enable = no
        override_cert_url = yes
        url = "http://127.0.0.1/ocsp/"
        use_nonce = yes
        timeout = 0
        softfail = no
    }
   }
   # Linked to sub-module rlm_eap_ttls
   ttls {
        tls = "tls-common"
        default_eap_type = "md5"
        copy_request_to_tunnel = no
        use_tunneled_reply = no
        virtual_server = "inner-tunnel"
        include_length = yes
        require_client_cert = no
   }
tls: Using cached TLS configuration from previous invocation
   # Linked to sub-module rlm_eap_peap
   peap {
        tls = "tls-common"
        default_eap_type = "mschapv2"
        copy_request_to_tunnel = yes
        use_tunneled_reply = no
        proxy_tunneled_request_as_eap = no
        virtual_server = "inner-tunnel"
        soh = no
        require_client_cert = no
   }
tls: Using cached TLS configuration from previous invocation
   # Linked to sub-module rlm_eap_mschapv2
   mschapv2 {
        with_ntdomain_hack = no
        send_error = no
   }
  # Instantiating module "detail" from file
/etc/freeradius/3.0/mods-enabled/detail
  # Instantiating module "pap" from file
/etc/freeradius/3.0/mods-enabled/pap
  # Instantiating module "files" from file
/etc/freeradius/3.0/mods-enabled/files
reading pairlist file /etc/freeradius/3.0/mods-config/files/authorize
reading pairlist file /etc/freeradius/3.0/mods-config/files/accounting
reading pairlist file /etc/freeradius/3.0/mods-config/files/pre-proxy
  # Instantiating module "expiration" from file
/etc/freeradius/3.0/mods-enabled/expiration
  # Instantiating module "reject" from file
/etc/freeradius/3.0/mods-enabled/always
  # Instantiating module "fail" from file
/etc/freeradius/3.0/mods-enabled/always
  # Instantiating module "ok" from file
/etc/freeradius/3.0/mods-enabled/always
  # Instantiating module "handled" from file
/etc/freeradius/3.0/mods-enabled/always
  # Instantiating module "invalid" from file
/etc/freeradius/3.0/mods-enabled/always
  # Instantiating module "userlock" from file
/etc/freeradius/3.0/mods-enabled/always
  # Instantiating module "notfound" from file
/etc/freeradius/3.0/mods-enabled/always
  # Instantiating module "noop" from file
/etc/freeradius/3.0/mods-enabled/always
  # Instantiating module "updated" from file
/etc/freeradius/3.0/mods-enabled/always
 } # modules
radiusd: #### Loading Virtual Servers ####
server { # from file /etc/freeradius/3.0/radiusd.conf
} # server
server inner-tunnel { # from file
/etc/freeradius/3.0/sites-enabled/inner-tunnel
 # Loading authenticate {...}
 # Loading authorize {...}
 # Loading session {...}
 # Loading post-proxy {...}
 # Loading post-auth {...}
} # server inner-tunnel
server default { # from file /etc/freeradius/3.0/sites-enabled/default
 # Loading authenticate {...}
 # Loading authorize {...}
 # Loading preacct {...}
 # Loading accounting {...}
 # Loading session {...}
 # Loading post-proxy {...}
 # Loading post-auth {...}
} # server default
radiusd: #### Opening IP addresses and Ports ####
listen {
        type = "auth"
        ipaddr = 127.0.0.1
        port = 18120
}
listen {
        type = "auth"
        ipaddr = *
        port = 0
   limit {
        max_connections = 16
        lifetime = 0
        idle_timeout = 30
   }
}
listen {
        type = "acct"
        ipaddr = *
        port = 0
   limit {
        max_connections = 16
        lifetime = 0
        idle_timeout = 30
   }
}
listen {
        type = "auth"
        ipv6addr = ::
        port = 0
   limit {
        max_connections = 16
        lifetime = 0
        idle_timeout = 30
   }
}
listen {
        type = "acct"
        ipv6addr = ::
        port = 0
   limit {
        max_connections = 16
        lifetime = 0
        idle_timeout = 30
   }
}
Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel
Listening on auth address * port 1812 bound to server default
Listening on acct address * port 1813 bound to server default
Listening on auth address :: port 1812 bound to server default
Listening on acct address :: port 1813 bound to server default
Listening on proxy address * port 56722
Listening on proxy address :: port 58582
Ready to process requests
(0) Received Accounting-Request Id 118 from 10.122.0.249:51678 to
10.250.0.89:1813 length 144
(0)   Service-Type = Framed-User
(0)   NAS-Port-Id = "wlan3"
(0)   NAS-Port-Type = Wireless-802.11
(0)   User-Name = "D0-B1-28-39-46-A1"
(0)   Acct-Session-Id = "82400162"
(0)   Calling-Station-Id = "D0-B1-28-39-46-A1"
(0)   Called-Station-Id = "CE-2D-E0-12-71-BA:HOT"
(0)   Acct-Authentic = Local
(0)   Acct-Status-Type = Start
(0)   NAS-Identifier = "MikroTik"
(0)   Acct-Delay-Time = 0
(0)   NAS-IP-Address = 10.122.0.249
(0) # Executing section preacct from file
/etc/freeradius/3.0/sites-enabled/default
(0)   preacct {
(0)     [preprocess] = ok
(0)     policy acct_unique {
(0)       update request {
(0)         Tmp-String-9 := "ai:"
(0)       } # update request = noop
(0)       if (("%{hex:&Class}" =~ /^%{hex:&Tmp-String-9}/) &&
 ("%{string:&Class}" =~ /^ai:([0-9a-f]{32})/i)) {
(0)       EXPAND %{hex:&Class}
(0)          -->
(0)       EXPAND ^%{hex:&Tmp-String-9}
(0)          --> ^61693a
(0)       if (("%{hex:&Class}" =~ /^%{hex:&Tmp-String-9}/) &&
 ("%{string:&Class}" =~ /^ai:([0-9a-f]{32})/i))  -> FALSE
(0)       else {
(0)         update request {
(0)           EXPAND
%{md5:%{User-Name},%{Acct-Session-ID},%{%{NAS-IPv6-Address}:-%{NAS-IP-Address}},%{NAS-Identifier},%{NAS-Port-ID},%{NAS-Port}}
(0)              --> 0a4a25a388f63fe98a974a832d3ac3af
(0)           &Acct-Unique-Session-Id := 0a4a25a388f63fe98a974a832d3ac3af
(0)         } # update request = noop
(0)       } # else = noop
(0)     } # policy acct_unique = noop
(0) suffix: Checking for suffix after "@"
(0) suffix: No '@' in User-Name = "D0-B1-28-39-46-A1", looking up realm NULL
(0) suffix: No such realm "NULL"
(0)     [suffix] = noop
(0)     [files] = noop
(0)   } # preacct = ok
(0) # Executing section accounting from file
/etc/freeradius/3.0/sites-enabled/default
(0)   accounting {
(0) detail: EXPAND
/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d
(0) detail:    --> /var/log/freeradius/radacct/10.122.0.249/detail-20180725
(0) detail:
/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d
expands to /var/log/freeradius/radacct/10.122.0.249/detail-20180725
(0) detail: EXPAND %t
(0) detail:    --> Wed Jul 25 23:43:25 2018
(0)     [detail] = ok
(0)     [unix] = ok
(0) sql: EXPAND %{tolower:type.%{Acct-Status-Type}.query}
(0) sql:    --> type.start.query
(0) sql: Using query template 'query'
rlm_sql (sql): Reserved connection (1)
(0) sql: EXPAND %{User-Name}
(0) sql:    --> D0-B1-28-39-46-A1
(0) sql: SQL-User-Name set to 'D0-B1-28-39-46-A1'
(0) 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-ID}:-%{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}')
(0) 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 ('82400162', '0a4a25a388f63fe98a974a832d3ac3af',
'D0-B1-28-39-46-A1', '', '10.122.0.249', 'wlan3', 'Wireless-802.11',
FROM_UNIXTIME(1532551405), FROM_UNIXTIME(1532551405), NULL, '0', 'Local',
'', '', '0', '0', 'CE-2D-E0-12-71-BA:HOT', 'D0-B1-28-39-46-A1', '',
'Framed-User', '', '')
(0) sql: EXPAND /var/log/freeradius/sqllog.sql
(0) sql:    --> /var/log/freeradius/sqllog.sql
(0) 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 ('82400162', '0a4a25a388f63fe98a974a832d3ac3af',
'D0-B1-28-39-46-A1', '', '10.122.0.249', 'wlan3', 'Wireless-802.11',
FROM_UNIXTIME(1532551405), FROM_UNIXTIME(1532551405), NULL, '0', 'Local',
'', '', '0', '0', 'CE-2D-E0-12-71-BA:HOT', 'D0-B1-28-39-46-A1', '',
'Framed-User', '', '')
(0) sql: rlm_sql_mysql: ERROR 1062 (Duplicate entry '0' for key 'PRIMARY'):
23000
(0) sql: SQL query returned: need alt query
(0) sql: Trying next query...
(0) sql: EXPAND UPDATE radacct SET acctstarttime        =
FROM_UNIXTIME(%{integer:Event-Timestamp}), acctupdatetime     =
FROM_UNIXTIME(%{integer:Event-Timestamp}), connectinfo_start =
'%{Connect-Info}' WHERE AcctUniqueId = '%{Acct-Unique-Session-Id}'
(0) sql:    --> UPDATE radacct SET acctstarttime        =
FROM_UNIXTIME(1532551405), acctupdatetime     = FROM_UNIXTIME(1532551405),
connectinfo_start = '' WHERE AcctUniqueId =
'0a4a25a388f63fe98a974a832d3ac3af'
(0) sql: EXPAND /var/log/freeradius/sqllog.sql
(0) sql:    --> /var/log/freeradius/sqllog.sql
(0) sql: Executing query: UPDATE radacct SET acctstarttime      =
FROM_UNIXTIME(1532551405), acctupdatetime     = FROM_UNIXTIME(1532551405),
connectinfo_start = '' WHERE AcctUniqueId =
'0a4a25a388f63fe98a974a832d3ac3af'
rlm_sql_mysql: Rows matched: 0  Changed: 0  Warnings: 0
(0) sql: SQL query returned: success
(0) sql: 0 record(s) updated
(0) sql: No additional queries configured
rlm_sql (sql): Released connection (1)
rlm_sql (sql): Need 4 more connections to reach 10 spares
rlm_sql (sql): Opening additional connection (6), 1 of 26 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radius' on Localhost via UNIX socket,
server version 10.1.26-MariaDB-0+deb9u1, protocol version 10
(0)     [sql] = noop
(0)     [exec] = noop
(0) attr_filter.accounting_response: EXPAND %{User-Name}
(0) attr_filter.accounting_response:    --> D0-B1-28-39-46-A1
(0) attr_filter.accounting_response: Matched entry DEFAULT at line 12
(0)     [attr_filter.accounting_response] = updated
(0)   } # accounting = updated
(0) Sent Accounting-Response Id 118 from 10.250.0.89:1813 to
10.122.0.249:51678 length 0
(0) Finished request
(0) Cleaning up request packet ID 118 with timestamp +13
Ready to process requests
(1) Received Access-Request Id 119 from 10.122.0.249:48501 to
10.250.0.89:1812 length 209
(1)   Service-Type = Framed-User
(1)   Framed-MTU = 1400
(1)   User-Name = "6696"
(1)   NAS-Port-Id = "wlan3"
(1)   NAS-Port-Type = Wireless-802.11
(1)   Acct-Session-Id = "82400163"
(1)   Acct-Multi-Session-Id =
"CE-2D-E0-12-71-BA-D0-B1-28-39-46-A1-82-40-00-00-00-00-00-AE"
(1)   Calling-Station-Id = "D0-B1-28-39-46-A1"
(1)   Called-Station-Id = "CE-2D-E0-12-71-BA:HOT"
(1)   EAP-Message = 0x020000090136363936
(1)   Message-Authenticator = 0xc9e4d7317cd5782fb54142db69c29a8a
(1)   NAS-Identifier = "MikroTik"
(1)   NAS-IP-Address = 10.122.0.249
(1) # Executing section authorize from file
/etc/freeradius/3.0/sites-enabled/default
(1)   authorize {
(1)     [preprocess] = ok
(1) eap: Peer sent EAP Response (code 2) ID 0 length 9
(1) eap: EAP-Identity reply, returning 'ok' so we can short-circuit the
rest of authorize
(1)     [eap] = ok
(1)   } # authorize = ok
(1) Found Auth-Type = eap
(1) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
(1)   authenticate {
(1) eap: Peer sent packet with method EAP Identity (1)
(1) eap: Calling submodule eap_md5 to process data
(1) eap_md5: Issuing MD5 Challenge
(1) eap: Sending EAP Request (code 1) ID 1 length 22
(1) eap: EAP session adding &reply:State = 0x6a2c6baa6a2d6f4f
(1)     [eap] = handled
(1)   } # authenticate = handled
(1) Using Post-Auth-Type Challenge
(1) Post-Auth-Type sub-section not found.  Ignoring.
(1) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
(1) Sent Access-Challenge Id 119 from 10.250.0.89:1812 to 10.122.0.249:48501
length 0
(1)   EAP-Message = 0x010100160410f6a0b181c185c41634f6248bc7509ed5
(1)   Message-Authenticator = 0x00000000000000000000000000000000
(1)   State = 0x6a2c6baa6a2d6f4f871cb3433272f84e
(1) Finished request
Waking up in 4.9 seconds.
(2) Received Access-Request Id 120 from 10.122.0.249:36886 to
10.250.0.89:1812 length 224
(2)   Service-Type = Framed-User
(2)   Framed-MTU = 1400
(2)   User-Name = "6696"
(2)   State = 0x6a2c6baa6a2d6f4f871cb3433272f84e
(2)   NAS-Port-Id = "wlan3"
(2)   NAS-Port-Type = Wireless-802.11
(2)   Acct-Session-Id = "82400163"
(2)   Acct-Multi-Session-Id =
"CE-2D-E0-12-71-BA-D0-B1-28-39-46-A1-82-40-00-00-00-00-00-AE"
(2)   Calling-Station-Id = "D0-B1-28-39-46-A1"
(2)   Called-Station-Id = "CE-2D-E0-12-71-BA:HOT"
(2)   EAP-Message = 0x020100060319
(2)   Message-Authenticator = 0x7a3afcfdef95df966b6fe8fc61d034b9
(2)   NAS-Identifier = "MikroTik"
(2)   NAS-IP-Address = 10.122.0.249
(2) session-state: No cached attributes
(2) # Executing section authorize from file
/etc/freeradius/3.0/sites-enabled/default
(2)   authorize {
(2)     [preprocess] = ok
(2) eap: Peer sent EAP Response (code 2) ID 1 length 6
(2) eap: No EAP Start, assuming it's an on-going EAP conversation
(2)     [eap] = updated
(2) sql: EXPAND %{User-Name}
(2) sql:    --> 6696
(2) sql: SQL-User-Name set to '6696'
rlm_sql (sql): Reserved connection (2)
(2) sql: EXPAND SELECT id, username, attribute, value, op FROM radcheck
WHERE username = '%{SQL-User-Name}' ORDER BY id
(2) sql:    --> SELECT id, username, attribute, value, op FROM radcheck
WHERE username = '6696' ORDER BY id
(2) sql: Executing select query: SELECT id, username, attribute, value, op
FROM radcheck WHERE username = '6696' ORDER BY id
(2) sql: User found in radcheck table
(2) sql: EXPAND SELECT groupname FROM radusergroup WHERE username =
'%{SQL-User-Name}' ORDER BY priority
(2) sql:    --> SELECT groupname FROM radusergroup WHERE username = '6696'
ORDER BY priority
(2) sql: Executing select query: SELECT groupname FROM radusergroup WHERE
username = '6696' ORDER BY priority
(2) sql: User not found in any groups
rlm_sql (sql): Released connection (2)
(2)     [sql] = noop
(2)     foreach &control:Calling-Station-Id {
(2)     } # foreach &control:Calling-Station-Id = noop
(2)     [expiration] = noop
(2)     [logintime] = noop
(2)   } # authorize = updated
(2) Found Auth-Type = eap
(2) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
(2)   authenticate {
(2) eap: Expiring EAP session with state 0x6a2c6baa6a2d6f4f
(2) eap: Finished EAP session with state 0x6a2c6baa6a2d6f4f
(2) eap: Previous EAP request found for state 0x6a2c6baa6a2d6f4f, released
from the list
(2) eap: Peer sent packet with method EAP NAK (3)
(2) eap: Found mutually acceptable type PEAP (25)
(2) eap: Calling submodule eap_peap to process data
(2) eap_peap: Initiating new EAP-TLS session
(2) eap_peap: [eaptls start] = request
(2) eap: Sending EAP Request (code 1) ID 2 length 6
(2) eap: EAP session adding &reply:State = 0x6a2c6baa6b2e724f
(2)     [eap] = handled
(2)   } # authenticate = handled
(2) Using Post-Auth-Type Challenge
(2) Post-Auth-Type sub-section not found.  Ignoring.
(2) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
(2) Sent Access-Challenge Id 120 from 10.250.0.89:1812 to 10.122.0.249:36886
length 0
(2)   EAP-Message = 0x010200061920
(2)   Message-Authenticator = 0x00000000000000000000000000000000
(2)   State = 0x6a2c6baa6b2e724f871cb3433272f84e
(2) Finished request
Waking up in 4.9 seconds.
(3) Received Access-Request Id 121 from 10.122.0.249:35876 to
10.250.0.89:1812 length 393
(3)   Service-Type = Framed-User
(3)   Framed-MTU = 1400
(3)   User-Name = "6696"
(3)   State = 0x6a2c6baa6b2e724f871cb3433272f84e
(3)   NAS-Port-Id = "wlan3"
(3)   NAS-Port-Type = Wireless-802.11
(3)   Acct-Session-Id = "82400163"
(3)   Acct-Multi-Session-Id =
"CE-2D-E0-12-71-BA-D0-B1-28-39-46-A1-82-40-00-00-00-00-00-AE"
(3)   Calling-Station-Id = "D0-B1-28-39-46-A1"
(3)   Called-Station-Id = "CE-2D-E0-12-71-BA:HOT"
(3)   EAP-Message =
0x020200af1980000000a516030100a00100009c0303ed8edffe1a6f0f79df7a3ac9346e8b8a6408563815c314df3d94b41d917869c900003ec02cc030009fc02bc02f009ecca9cca8c00ac024c014c0280039006bc009c023c013c02700330067c007c011009d009c0035003d002f003c00050004000a01
(3)   Message-Authenticator = 0x67e0c550c65d12762c33be0725162a32
(3)   NAS-Identifier = "MikroTik"
(3)   NAS-IP-Address = 10.122.0.249
(3) session-state: No cached attributes
(3) # Executing section authorize from file
/etc/freeradius/3.0/sites-enabled/default
(3)   authorize {
(3)     [preprocess] = ok
(3) eap: Peer sent EAP Response (code 2) ID 2 length 175
(3) eap: Continuing tunnel setup
(3)     [eap] = ok
(3)   } # authorize = ok
(3) Found Auth-Type = eap
(3) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
(3)   authenticate {
(3) eap: Expiring EAP session with state 0x6a2c6baa6b2e724f
(3) eap: Finished EAP session with state 0x6a2c6baa6b2e724f
(3) eap: Previous EAP request found for state 0x6a2c6baa6b2e724f, released
from the list
(3) eap: Peer sent packet with method EAP PEAP (25)
(3) eap: Calling submodule eap_peap to process data
(3) eap_peap: Continuing EAP-TLS
(3) eap_peap: Peer indicated complete TLS record size will be 165 bytes
(3) eap_peap: Got complete TLS record (165 bytes)
(3) eap_peap: [eaptls verify] = length included
(3) eap_peap: (other): before SSL initialization
(3) eap_peap: TLS_accept: before SSL initialization
(3) eap_peap: TLS_accept: before SSL initialization
(3) eap_peap: <<< recv TLS 1.2  [length 00a0]
(3) eap_peap: TLS_accept: SSLv3/TLS read client hello
(3) eap_peap: >>> send TLS 1.2  [length 003d]
(3) eap_peap: TLS_accept: SSLv3/TLS write server hello
(3) eap_peap: >>> send TLS 1.2  [length 02ee]
(3) eap_peap: TLS_accept: SSLv3/TLS write certificate
(3) eap_peap: >>> send TLS 1.2  [length 014d]
(3) eap_peap: TLS_accept: SSLv3/TLS write key exchange
(3) eap_peap: >>> send TLS 1.2  [length 0004]
(3) eap_peap: TLS_accept: SSLv3/TLS write server done
(3) eap_peap: TLS_accept: Need to read more data: SSLv3/TLS write server
done
(3) eap_peap: In SSL Handshake Phase
(3) eap_peap: In SSL Accept mode
(3) eap_peap: [eaptls process] = handled
(3) eap: Sending EAP Request (code 1) ID 3 length 1004
(3) eap: EAP session adding &reply:State = 0x6a2c6baa682f724f
(3)     [eap] = handled
(3)   } # authenticate = handled
(3) Using Post-Auth-Type Challenge
(3) Post-Auth-Type sub-section not found.  Ignoring.
(3) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
(3) Sent Access-Challenge Id 121 from 10.250.0.89:1812 to 10.122.0.249:35876
length 0
(3)   EAP-Message =
0x010303ec19c000000490160303003d020000390303fbd3e19b8840a3afd87867c5d48c8bd68ad27122416495965afab61d00d0458400c030000011ff01000100000b0004030001020017000016030302ee0b0002ea0002e70002e4308202e0308201c8a003020102020900f0b83dc1e9c4cf75300d0609
(3)   Message-Authenticator = 0x00000000000000000000000000000000
(3)   State = 0x6a2c6baa682f724f871cb3433272f84e
(3) Finished request
Waking up in 4.9 seconds.
(4) Received Access-Request Id 122 from 10.122.0.249:37477 to
10.250.0.89:1812 length 224
(4)   Service-Type = Framed-User
(4)   Framed-MTU = 1400
(4)   User-Name = "6696"
(4)   State = 0x6a2c6baa682f724f871cb3433272f84e
(4)   NAS-Port-Id = "wlan3"
(4)   NAS-Port-Type = Wireless-802.11
(4)   Acct-Session-Id = "82400163"
(4)   Acct-Multi-Session-Id =
"CE-2D-E0-12-71-BA-D0-B1-28-39-46-A1-82-40-00-00-00-00-00-AE"
(4)   Calling-Station-Id = "D0-B1-28-39-46-A1"
(4)   Called-Station-Id = "CE-2D-E0-12-71-BA:HOT"
(4)   EAP-Message = 0x020300061900
(4)   Message-Authenticator = 0xf39e211f37a031bee5276eacfeeb88a3
(4)   NAS-Identifier = "MikroTik"
(4)   NAS-IP-Address = 10.122.0.249
(4) session-state: No cached attributes
(4) # Executing section authorize from file
/etc/freeradius/3.0/sites-enabled/default
(4)   authorize {
(4)     [preprocess] = ok
(4) eap: Peer sent EAP Response (code 2) ID 3 length 6
(4) eap: Continuing tunnel setup
(4)     [eap] = ok
(4)   } # authorize = ok
(4) Found Auth-Type = eap
(4) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
(4)   authenticate {
(4) eap: Expiring EAP session with state 0x6a2c6baa682f724f
(4) eap: Finished EAP session with state 0x6a2c6baa682f724f
(4) eap: Previous EAP request found for state 0x6a2c6baa682f724f, released
from the list
(4) eap: Peer sent packet with method EAP PEAP (25)
(4) eap: Calling submodule eap_peap to process data
(4) eap_peap: Continuing EAP-TLS
(4) eap_peap: Peer ACKed our handshake fragment
(4) eap_peap: [eaptls verify] = request
(4) eap_peap: [eaptls process] = handled
(4) eap: Sending EAP Request (code 1) ID 4 length 180
(4) eap: EAP session adding &reply:State = 0x6a2c6baa6928724f
(4)     [eap] = handled
(4)   } # authenticate = handled
(4) Using Post-Auth-Type Challenge
(4) Post-Auth-Type sub-section not found.  Ignoring.
(4) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
(4) Sent Access-Challenge Id 122 from 10.250.0.89:1812 to 10.122.0.249:37477
length 0
(4)   EAP-Message =
0x010400b41900a7f661e6fbde7e1a426a995c996173fe24a9f250f690986e658b294ff576b16f61a491878208da2802ea8bc9d7b13e7db164613d5189ef9ff083623d2ed2df80eafba3a14914979d09a5d913dfa8db9eb3b4168bac85195a93922b93caa5bcedad6f77bf1ec9519398467e452abefe4202
(4)   Message-Authenticator = 0x00000000000000000000000000000000
(4)   State = 0x6a2c6baa6928724f871cb3433272f84e
(4) Finished request
Waking up in 4.9 seconds.
(5) Received Access-Request Id 123 from 10.122.0.249:53833 to
10.250.0.89:1812 length 354
(5)   Service-Type = Framed-User
(5)   Framed-MTU = 1400
(5)   User-Name = "6696"
(5)   State = 0x6a2c6baa6928724f871cb3433272f84e
(5)   NAS-Port-Id = "wlan3"
(5)   NAS-Port-Type = Wireless-802.11
(5)   Acct-Session-Id = "82400163"
(5)   Acct-Multi-Session-Id =
"CE-2D-E0-12-71-BA-D0-B1-28-39-46-A1-82-40-00-00-00-00-00-AE"
(5)   Calling-Station-Id = "D0-B1-28-39-46-A1"
(5)   Called-Station-Id = "CE-2D-E0-12-71-BA:HOT"
(5)   EAP-Message =
0x0204008819800000007e160303004610000042410499bf8f887c5067bca25253896ad9265c0d0f21223ea43fcab631fca2bb1e43a00dc3e980ddc7650d4066d90758f4dde6c17d2832d323ab237328d1b4a0813a3614030300010116030300280000000000000000589054f8032709ca585858f1e8fea6
(5)   Message-Authenticator = 0x491499d0da12d5e01f7b20e70b123c20
(5)   NAS-Identifier = "MikroTik"
(5)   NAS-IP-Address = 10.122.0.249
(5) session-state: No cached attributes
(5) # Executing section authorize from file
/etc/freeradius/3.0/sites-enabled/default
(5)   authorize {
(5)     [preprocess] = ok
(5) eap: Peer sent EAP Response (code 2) ID 4 length 136
(5) eap: Continuing tunnel setup
(5)     [eap] = ok
(5)   } # authorize = ok
(5) Found Auth-Type = eap
(5) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
(5)   authenticate {
(5) eap: Expiring EAP session with state 0x6a2c6baa6928724f
(5) eap: Finished EAP session with state 0x6a2c6baa6928724f
(5) eap: Previous EAP request found for state 0x6a2c6baa6928724f, released
from the list
(5) eap: Peer sent packet with method EAP PEAP (25)
(5) eap: Calling submodule eap_peap to process data
(5) eap_peap: Continuing EAP-TLS
(5) eap_peap: Peer indicated complete TLS record size will be 126 bytes
(5) eap_peap: Got complete TLS record (126 bytes)
(5) eap_peap: [eaptls verify] = length included
(5) eap_peap: TLS_accept: SSLv3/TLS write server done
(5) eap_peap: <<< recv TLS 1.2  [length 0046]
(5) eap_peap: TLS_accept: SSLv3/TLS read client key exchange
(5) eap_peap: TLS_accept: SSLv3/TLS read change cipher spec
(5) eap_peap: <<< recv TLS 1.2  [length 0010]
(5) eap_peap: TLS_accept: SSLv3/TLS read finished
(5) eap_peap: >>> send TLS 1.2  [length 0001]
(5) eap_peap: TLS_accept: SSLv3/TLS write change cipher spec
(5) eap_peap: >>> send TLS 1.2  [length 0010]
(5) eap_peap: TLS_accept: SSLv3/TLS write finished
(5) eap_peap: (other): SSL negotiation finished successfully
(5) eap_peap: SSL Connection Established
(5) eap_peap: [eaptls process] = handled
(5) eap: Sending EAP Request (code 1) ID 5 length 57
(5) eap: EAP session adding &reply:State = 0x6a2c6baa6e29724f
(5)     [eap] = handled
(5)   } # authenticate = handled
(5) Using Post-Auth-Type Challenge
(5) Post-Auth-Type sub-section not found.  Ignoring.
(5) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
(5) Sent Access-Challenge Id 123 from 10.250.0.89:1812 to 10.122.0.249:53833
length 0
(5)   EAP-Message =
0x0105003919001403030001011603030028c8ec29e499910e490a80cc56cac7bb50b44601ba8de9078c8ad590a663bd0e1fb47412a23245b5f1
(5)   Message-Authenticator = 0x00000000000000000000000000000000
(5)   State = 0x6a2c6baa6e29724f871cb3433272f84e
(5) Finished request
Waking up in 4.8 seconds.
(6) Received Access-Request Id 124 from 10.122.0.249:53201 to
10.250.0.89:1812 length 224
(6)   Service-Type = Framed-User
(6)   Framed-MTU = 1400
(6)   User-Name = "6696"
(6)   State = 0x6a2c6baa6e29724f871cb3433272f84e
(6)   NAS-Port-Id = "wlan3"
(6)   NAS-Port-Type = Wireless-802.11
(6)   Acct-Session-Id = "82400163"
(6)   Acct-Multi-Session-Id =
"CE-2D-E0-12-71-BA-D0-B1-28-39-46-A1-82-40-00-00-00-00-00-AE"
(6)   Calling-Station-Id = "D0-B1-28-39-46-A1"
(6)   Called-Station-Id = "CE-2D-E0-12-71-BA:HOT"
(6)   EAP-Message = 0x020500061900
(6)   Message-Authenticator = 0x271a03828ca505a1a26a0215d21244f9
(6)   NAS-Identifier = "MikroTik"
(6)   NAS-IP-Address = 10.122.0.249
(6) session-state: No cached attributes
(6) # Executing section authorize from file
/etc/freeradius/3.0/sites-enabled/default
(6)   authorize {
(6)     [preprocess] = ok
(6) eap: Peer sent EAP Response (code 2) ID 5 length 6
(6) eap: Continuing tunnel setup
(6)     [eap] = ok
(6)   } # authorize = ok
(6) Found Auth-Type = eap
(6) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
(6)   authenticate {
(6) eap: Expiring EAP session with state 0x6a2c6baa6e29724f
(6) eap: Finished EAP session with state 0x6a2c6baa6e29724f
(6) eap: Previous EAP request found for state 0x6a2c6baa6e29724f, released
from the list
(6) eap: Peer sent packet with method EAP PEAP (25)
(6) eap: Calling submodule eap_peap to process data
(6) eap_peap: Continuing EAP-TLS
(6) eap_peap: Peer ACKed our handshake fragment.  handshake is finished
(6) eap_peap: [eaptls verify] = success
(6) eap_peap: [eaptls process] = success
(6) eap_peap: Session established.  Decoding tunneled attributes
(6) eap_peap: PEAP state TUNNEL ESTABLISHED
(6) eap: Sending EAP Request (code 1) ID 6 length 40
(6) eap: EAP session adding &reply:State = 0x6a2c6baa6f2a724f
(6)     [eap] = handled
(6)   } # authenticate = handled
(6) Using Post-Auth-Type Challenge
(6) Post-Auth-Type sub-section not found.  Ignoring.
(6) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
(6) Sent Access-Challenge Id 124 from 10.250.0.89:1812 to 10.122.0.249:53201
length 0
(6)   EAP-Message =
0x010600281900170303001dc8ec29e499910e4a5a0b1f1c70586c2c059308ddf67e7e5ea7fa5bdae4
(6)   Message-Authenticator = 0x00000000000000000000000000000000
(6)   State = 0x6a2c6baa6f2a724f871cb3433272f84e
(6) Finished request
Waking up in 4.8 seconds.
(7) Received Access-Request Id 125 from 10.122.0.249:48081 to
10.250.0.89:1812 length 258
(7)   Service-Type = Framed-User
(7)   Framed-MTU = 1400
(7)   User-Name = "6696"
(7)   State = 0x6a2c6baa6f2a724f871cb3433272f84e
(7)   NAS-Port-Id = "wlan3"
(7)   NAS-Port-Type = Wireless-802.11
(7)   Acct-Session-Id = "82400163"
(7)   Acct-Multi-Session-Id =
"CE-2D-E0-12-71-BA-D0-B1-28-39-46-A1-82-40-00-00-00-00-00-AE"
(7)   Calling-Station-Id = "D0-B1-28-39-46-A1"
(7)   Called-Station-Id = "CE-2D-E0-12-71-BA:HOT"
(7)   EAP-Message =
0x020600281900170303001d00000000000000010565e586506439137cacc02cb077ae3705e1483773
(7)   Message-Authenticator = 0xb8f777a7f4386b809dbd756dcc12acd5
(7)   NAS-Identifier = "MikroTik"
(7)   NAS-IP-Address = 10.122.0.249
(7) session-state: No cached attributes
(7) # Executing section authorize from file
/etc/freeradius/3.0/sites-enabled/default
(7)   authorize {
(7)     [preprocess] = ok
(7) eap: Peer sent EAP Response (code 2) ID 6 length 40
(7) eap: Continuing tunnel setup
(7)     [eap] = ok
(7)   } # authorize = ok
(7) Found Auth-Type = eap
(7) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
(7)   authenticate {
(7) eap: Expiring EAP session with state 0x6a2c6baa6f2a724f
(7) eap: Finished EAP session with state 0x6a2c6baa6f2a724f
(7) eap: Previous EAP request found for state 0x6a2c6baa6f2a724f, released
from the list
(7) eap: Peer sent packet with method EAP PEAP (25)
(7) eap: Calling submodule eap_peap to process data
(7) eap_peap: Continuing EAP-TLS
(7) eap_peap: [eaptls verify] = ok
(7) eap_peap: Done initial handshake
(7) eap_peap: [eaptls process] = ok
(7) eap_peap: Session established.  Decoding tunneled attributes
(7) eap_peap: PEAP state WAITING FOR INNER IDENTITY
(7) eap_peap: Identity - 6696
(7) eap_peap: Got inner identity '6696'
(7) eap_peap: Setting default EAP type for tunneled EAP session
(7) eap_peap: Got tunneled request
(7) eap_peap:   EAP-Message = 0x020600090136363936
(7) eap_peap: Setting User-Name to 6696
(7) eap_peap: Sending tunneled request to inner-tunnel
(7) eap_peap:   EAP-Message = 0x020600090136363936
(7) eap_peap:   FreeRADIUS-Proxied-To = 127.0.0.1
(7) eap_peap:   User-Name = "6696"
(7) eap_peap:   Service-Type = Framed-User
(7) eap_peap:   Framed-MTU = 1400
(7) eap_peap:   NAS-Port-Id = "wlan3"
(7) eap_peap:   NAS-Port-Type = Wireless-802.11
(7) eap_peap:   Acct-Session-Id = "82400163"
(7) eap_peap:   Acct-Multi-Session-Id =
"CE-2D-E0-12-71-BA-D0-B1-28-39-46-A1-82-40-00-00-00-00-00-AE"
(7) eap_peap:   Calling-Station-Id = "D0-B1-28-39-46-A1"
(7) eap_peap:   Called-Station-Id = "CE-2D-E0-12-71-BA:HOT"
(7) eap_peap:   NAS-Identifier = "MikroTik"
(7) eap_peap:   NAS-IP-Address = 10.122.0.249
(7) eap_peap:   Event-Timestamp = "Jul 25 2018 23:43:26 MSK"
(7) Virtual server inner-tunnel received request
(7)   EAP-Message = 0x020600090136363936
(7)   FreeRADIUS-Proxied-To = 127.0.0.1
(7)   User-Name = "6696"
(7)   Service-Type = Framed-User
(7)   Framed-MTU = 1400
(7)   NAS-Port-Id = "wlan3"
(7)   NAS-Port-Type = Wireless-802.11
(7)   Acct-Session-Id = "82400163"
(7)   Acct-Multi-Session-Id =
"CE-2D-E0-12-71-BA-D0-B1-28-39-46-A1-82-40-00-00-00-00-00-AE"
(7)   Calling-Station-Id = "D0-B1-28-39-46-A1"
(7)   Called-Station-Id = "CE-2D-E0-12-71-BA:HOT"
(7)   NAS-Identifier = "MikroTik"
(7)   NAS-IP-Address = 10.122.0.249
(7)   Event-Timestamp = "Jul 25 2018 23:43:26 MSK"
(7) WARNING: Outer and inner identities are the same.  User privacy is
compromised.
(7) server inner-tunnel {
(7)   # Executing section authorize from file
/etc/freeradius/3.0/sites-enabled/inner-tunnel
(7)     authorize {
(7)       foreach &control:Calling-Station-Id {
(7)       } # foreach &control:Calling-Station-Id = noop
(7)       [mschap] = noop
(7)       update control {
(7)         &Proxy-To-Realm := LOCAL
(7)       } # update control = noop
(7) eap: Peer sent EAP Response (code 2) ID 6 length 9
(7) eap: EAP-Identity reply, returning 'ok' so we can short-circuit the
rest of authorize
(7)       [eap] = ok
(7)     } # authorize = ok
(7)   Found Auth-Type = eap
(7)   # Executing group from file
/etc/freeradius/3.0/sites-enabled/inner-tunnel
(7)     authenticate {
(7) eap: Peer sent packet with method EAP Identity (1)
(7) eap: Calling submodule eap_mschapv2 to process data
(7) eap_mschapv2: Issuing Challenge
(7) eap: Sending EAP Request (code 1) ID 7 length 43
(7) eap: EAP session adding &reply:State = 0x657ffcba6578e6ca
(7)       [eap] = handled
(7)     } # authenticate = handled
(7) } # server inner-tunnel
(7) Virtual server sending reply
(7)   EAP-Message =
0x0107002b1a0107002610812ce54b4e1052fedb2906377bf6cf95667265657261646975732d332e302e3132
(7)   Message-Authenticator = 0x00000000000000000000000000000000
(7)   State = 0x657ffcba6578e6ca26e18b8644117efc
(7) eap_peap: Got tunneled reply code 11
(7) eap_peap:   EAP-Message =
0x0107002b1a0107002610812ce54b4e1052fedb2906377bf6cf95667265657261646975732d332e302e3132
(7) eap_peap:   Message-Authenticator = 0x00000000000000000000000000000000
(7) eap_peap:   State = 0x657ffcba6578e6ca26e18b8644117efc
(7) eap_peap: Got tunneled reply RADIUS code 11
(7) eap_peap:   EAP-Message =
0x0107002b1a0107002610812ce54b4e1052fedb2906377bf6cf95667265657261646975732d332e302e3132
(7) eap_peap:   Message-Authenticator = 0x00000000000000000000000000000000
(7) eap_peap:   State = 0x657ffcba6578e6ca26e18b8644117efc
(7) eap_peap: Got tunneled Access-Challenge
(7) eap: Sending EAP Request (code 1) ID 7 length 74
(7) eap: EAP session adding &reply:State = 0x6a2c6baa6c2b724f
(7)     [eap] = handled
(7)   } # authenticate = handled
(7) Using Post-Auth-Type Challenge
(7) Post-Auth-Type sub-section not found.  Ignoring.
(7) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
(7) Sent Access-Challenge Id 125 from 10.250.0.89:1812 to 10.122.0.249:48081
length 0
(7)   EAP-Message =
0x0107004a1900170303003fc8ec29e499910e4b9e294706a9421d248bf2bb9ef53c637a5a29b15881e23e6879f0b7ffe46286e9901fbb4e86a7910a73d07d2594a589ad53d6ab5880d082
(7)   Message-Authenticator = 0x00000000000000000000000000000000
(7)   State = 0x6a2c6baa6c2b724f871cb3433272f84e
(7) Finished request
Waking up in 4.8 seconds.
(8) Received Access-Request Id 126 from 10.122.0.249:56649 to
10.250.0.89:1812 length 312
(8)   Service-Type = Framed-User
(8)   Framed-MTU = 1400
(8)   User-Name = "6696"
(8)   State = 0x6a2c6baa6c2b724f871cb3433272f84e
(8)   NAS-Port-Id = "wlan3"
(8)   NAS-Port-Type = Wireless-802.11
(8)   Acct-Session-Id = "82400163"
(8)   Acct-Multi-Session-Id =
"CE-2D-E0-12-71-BA-D0-B1-28-39-46-A1-82-40-00-00-00-00-00-AE"
(8)   Calling-Station-Id = "D0-B1-28-39-46-A1"
(8)   Called-Station-Id = "CE-2D-E0-12-71-BA:HOT"
(8)   EAP-Message =
0x0207005e190017030300530000000000000002ca7949873c29d4d2ccd121e608393850e67fd8877d49f7d8b1f2422c453a62b41b38e7e6e37257945a3b23d7a4a0ee9f7f868228157adfd14fde336c01b978b2c6526d1302d549ae0755a2
(8)   Message-Authenticator = 0xab262d203125e1dc22ff2ad03ef38a95
(8)   NAS-Identifier = "MikroTik"
(8)   NAS-IP-Address = 10.122.0.249
(8) session-state: No cached attributes
(8) # Executing section authorize from file
/etc/freeradius/3.0/sites-enabled/default
(8)   authorize {
(8)     [preprocess] = ok
(8) eap: Peer sent EAP Response (code 2) ID 7 length 94
(8) eap: Continuing tunnel setup
(8)     [eap] = ok
(8)   } # authorize = ok
(8) Found Auth-Type = eap
(8) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
(8)   authenticate {
(8) eap: Expiring EAP session with state 0x657ffcba6578e6ca
(8) eap: Finished EAP session with state 0x6a2c6baa6c2b724f
(8) eap: Previous EAP request found for state 0x6a2c6baa6c2b724f, released
from the list
(8) eap: Peer sent packet with method EAP PEAP (25)
(8) eap: Calling submodule eap_peap to process data
(8) eap_peap: Continuing EAP-TLS
(8) eap_peap: [eaptls verify] = ok
(8) eap_peap: Done initial handshake
(8) eap_peap: [eaptls process] = ok
(8) eap_peap: Session established.  Decoding tunneled attributes
(8) eap_peap: PEAP state phase2
(8) eap_peap: EAP method MSCHAPv2 (26)
(8) eap_peap: Got tunneled request
(8) eap_peap:   EAP-Message =
0x0207003f1a0207003a312c5fbd71575c994373f62d2a4ede20d30000000000000000aaae70b023273a07626ccf5f2fd6f3d44724aa0170518a240036363936
(8) eap_peap: Setting User-Name to 6696
(8) eap_peap: Sending tunneled request to inner-tunnel
(8) eap_peap:   EAP-Message =
0x0207003f1a0207003a312c5fbd71575c994373f62d2a4ede20d30000000000000000aaae70b023273a07626ccf5f2fd6f3d44724aa0170518a240036363936
(8) eap_peap:   FreeRADIUS-Proxied-To = 127.0.0.1
(8) eap_peap:   User-Name = "6696"
(8) eap_peap:   State = 0x657ffcba6578e6ca26e18b8644117efc
(8) eap_peap:   Service-Type = Framed-User
(8) eap_peap:   Framed-MTU = 1400
(8) eap_peap:   NAS-Port-Id = "wlan3"
(8) eap_peap:   NAS-Port-Type = Wireless-802.11
(8) eap_peap:   Acct-Session-Id = "82400163"
(8) eap_peap:   Acct-Multi-Session-Id =
"CE-2D-E0-12-71-BA-D0-B1-28-39-46-A1-82-40-00-00-00-00-00-AE"
(8) eap_peap:   Calling-Station-Id = "D0-B1-28-39-46-A1"
(8) eap_peap:   Called-Station-Id = "CE-2D-E0-12-71-BA:HOT"
(8) eap_peap:   NAS-Identifier = "MikroTik"
(8) eap_peap:   NAS-IP-Address = 10.122.0.249
(8) eap_peap:   Event-Timestamp = "Jul 25 2018 23:43:26 MSK"
(8) Virtual server inner-tunnel received request
(8)   EAP-Message =
0x0207003f1a0207003a312c5fbd71575c994373f62d2a4ede20d30000000000000000aaae70b023273a07626ccf5f2fd6f3d44724aa0170518a240036363936
(8)   FreeRADIUS-Proxied-To = 127.0.0.1
(8)   User-Name = "6696"
(8)   State = 0x657ffcba6578e6ca26e18b8644117efc
(8)   Service-Type = Framed-User
(8)   Framed-MTU = 1400
(8)   NAS-Port-Id = "wlan3"
(8)   NAS-Port-Type = Wireless-802.11
(8)   Acct-Session-Id = "82400163"
(8)   Acct-Multi-Session-Id =
"CE-2D-E0-12-71-BA-D0-B1-28-39-46-A1-82-40-00-00-00-00-00-AE"
(8)   Calling-Station-Id = "D0-B1-28-39-46-A1"
(8)   Called-Station-Id = "CE-2D-E0-12-71-BA:HOT"
(8)   NAS-Identifier = "MikroTik"
(8)   NAS-IP-Address = 10.122.0.249
(8)   Event-Timestamp = "Jul 25 2018 23:43:26 MSK"
(8) WARNING: Outer and inner identities are the same.  User privacy is
compromised.
(8) server inner-tunnel {
(8)   session-state: No cached attributes
(8)   # Executing section authorize from file
/etc/freeradius/3.0/sites-enabled/inner-tunnel
(8)     authorize {
(8)       foreach &control:Calling-Station-Id {
(8)       } # foreach &control:Calling-Station-Id = noop
(8)       [mschap] = noop
(8)       update control {
(8)         &Proxy-To-Realm := LOCAL
(8)       } # update control = noop
(8) eap: Peer sent EAP Response (code 2) ID 7 length 63
(8) eap: No EAP Start, assuming it's an on-going EAP conversation
(8)       [eap] = updated
(8) sql: EXPAND %{User-Name}
(8) sql:    --> 6696
(8) sql: SQL-User-Name set to '6696'
rlm_sql (sql): Reserved connection (3)
(8) sql: EXPAND SELECT id, username, attribute, value, op FROM radcheck
WHERE username = '%{SQL-User-Name}' ORDER BY id
(8) sql:    --> SELECT id, username, attribute, value, op FROM radcheck
WHERE username = '6696' ORDER BY id
(8) sql: Executing select query: SELECT id, username, attribute, value, op
FROM radcheck WHERE username = '6696' ORDER BY id
(8) sql: User found in radcheck table
(8) sql: EXPAND SELECT groupname FROM radusergroup WHERE username =
'%{SQL-User-Name}' ORDER BY priority
(8) sql:    --> SELECT groupname FROM radusergroup WHERE username = '6696'
ORDER BY priority
(8) sql: Executing select query: SELECT groupname FROM radusergroup WHERE
username = '6696' ORDER BY priority
(8) sql: User not found in any groups
rlm_sql (sql): Released connection (3)
rlm_sql (sql): Need 3 more connections to reach 10 spares
rlm_sql (sql): Opening additional connection (7), 1 of 25 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radius' on Localhost via UNIX socket,
server version 10.1.26-MariaDB-0+deb9u1, protocol version 10
(8)       [sql] = noop
(8)       [expiration] = noop
(8)       [logintime] = noop
(8)     } # authorize = updated
(8)   Found Auth-Type = eap
(8)   # Executing group from file
/etc/freeradius/3.0/sites-enabled/inner-tunnel
(8)     authenticate {
(8) eap: Expiring EAP session with state 0x657ffcba6578e6ca
(8) eap: Finished EAP session with state 0x657ffcba6578e6ca
(8) eap: Previous EAP request found for state 0x657ffcba6578e6ca, released
from the list
(8) eap: Peer sent packet with method EAP MSCHAPv2 (26)
(8) eap: Calling submodule eap_mschapv2 to process data
(8) eap_mschapv2: # Executing group from file
/etc/freeradius/3.0/sites-enabled/inner-tunnel
(8) eap_mschapv2:   authenticate {
(8) mschap: WARNING: No Cleartext-Password configured.  Cannot create
NT-Password
(8) mschap: WARNING: No Cleartext-Password configured.  Cannot create
LM-Password
(8) mschap: Creating challenge hash with username: 6696
(8) mschap: Client is using MS-CHAPv2
(8) mschap: ERROR: FAILED: No NT/LM-Password.  Cannot perform authentication
(8) mschap: ERROR: MS-CHAP2-Response is incorrect
(8)     [mschap] = reject
(8)   } # authenticate = reject
(8) eap: Sending EAP Failure (code 4) ID 7 length 4
(8) eap: Freeing handler
(8)       [eap] = reject
(8)     } # authenticate = reject
(8)   Failed to authenticate the user
(8)   Using Post-Auth-Type Reject
(8)   # Executing group from file
/etc/freeradius/3.0/sites-enabled/inner-tunnel
(8)     Post-Auth-Type REJECT {
(8) sql: EXPAND .query
(8) sql:    --> .query
(8) sql: Using query template 'query'
rlm_sql (sql): Reserved connection (4)
(8) sql: EXPAND %{User-Name}
(8) sql:    --> 6696
(8) sql: SQL-User-Name set to '6696'
(8) sql: EXPAND INSERT INTO radpostauth (username, pass, reply, authdate)
VALUES ( '%{SQL-User-Name}', '%{%{User-Password}:-%{Chap-Password}}',
'%{reply:Packet-Type}', '%S')
(8) sql:    --> INSERT INTO radpostauth (username, pass, reply, authdate)
VALUES ( '6696', '', 'Access-Reject', '2018-07-25 23:43:26')
(8) sql: EXPAND /var/log/freeradius/sqllog.sql
(8) sql:    --> /var/log/freeradius/sqllog.sql
(8) sql: Executing query: INSERT INTO radpostauth (username, pass, reply,
authdate) VALUES ( '6696', '', 'Access-Reject', '2018-07-25 23:43:26')
(8) sql: SQL query returned: success
(8) sql: 1 record(s) updated
rlm_sql (sql): Released connection (4)
(8)       [sql] = ok
(8) attr_filter.access_reject: EXPAND %{User-Name}
(8) attr_filter.access_reject:    --> 6696
(8) attr_filter.access_reject: Matched entry DEFAULT at line 11
(8)       [attr_filter.access_reject] = updated
(8)       update outer.session-state {
(8)         &Module-Failure-Message := &request:Module-Failure-Message ->
'mschap: FAILED: No NT/LM-Password.  Cannot perform authentication'
(8)       } # update outer.session-state = noop
(8)     } # Post-Auth-Type REJECT = updated
(8) } # server inner-tunnel
(8) Virtual server sending reply
(8)   MS-CHAP-Error = "\007E=691 R=1 C=cacd7d148423ae79faa4516654f7935c V=3
M=Authentication failed"
(8)   EAP-Message = 0x04070004
(8)   Message-Authenticator = 0x00000000000000000000000000000000
(8) eap_peap: Got tunneled reply code 3
(8) eap_peap:   MS-CHAP-Error = "\007E=691 R=1
C=cacd7d148423ae79faa4516654f7935c V=3 M=Authentication failed"
(8) eap_peap:   EAP-Message = 0x04070004
(8) eap_peap:   Message-Authenticator = 0x00000000000000000000000000000000
(8) eap_peap: Got tunneled reply RADIUS code 3
(8) eap_peap:   MS-CHAP-Error = "\007E=691 R=1
C=cacd7d148423ae79faa4516654f7935c V=3 M=Authentication failed"
(8) eap_peap:   EAP-Message = 0x04070004
(8) eap_peap:   Message-Authenticator = 0x00000000000000000000000000000000
(8) eap_peap: Tunneled authentication was rejected
(8) eap_peap: FAILURE
(8) eap: Sending EAP Request (code 1) ID 8 length 46
(8) eap: EAP session adding &reply:State = 0x6a2c6baa6d24724f
(8)     [eap] = handled
(8)   } # authenticate = handled
(8) Using Post-Auth-Type Challenge
(8) Post-Auth-Type sub-section not found.  Ignoring.
(8) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
(8) session-state: Saving cached attributes
(8)   Module-Failure-Message := "mschap: FAILED: No NT/LM-Password.  Cannot
perform authentication"
(8) Sent Access-Challenge Id 126 from 10.250.0.89:1812 to 10.122.0.249:56649
length 0
(8)   EAP-Message =
0x0108002e19001703030023c8ec29e499910e4c64465128037bdb26b5384cc533f2dd51f6fd82ecf7aa86faadfb2c
(8)   Message-Authenticator = 0x00000000000000000000000000000000
(8)   State = 0x6a2c6baa6d24724f871cb3433272f84e
(8) Finished request
Waking up in 4.8 seconds.
(9) Received Access-Request Id 127 from 10.122.0.249:53422 to
10.250.0.89:1812 length 264
(9)   Service-Type = Framed-User
(9)   Framed-MTU = 1400
(9)   User-Name = "6696"
(9)   State = 0x6a2c6baa6d24724f871cb3433272f84e
(9)   NAS-Port-Id = "wlan3"
(9)   NAS-Port-Type = Wireless-802.11
(9)   Acct-Session-Id = "82400163"
(9)   Acct-Multi-Session-Id =
"CE-2D-E0-12-71-BA-D0-B1-28-39-46-A1-82-40-00-00-00-00-00-AE"
(9)   Calling-Station-Id = "D0-B1-28-39-46-A1"
(9)   Called-Station-Id = "CE-2D-E0-12-71-BA:HOT"
(9)   EAP-Message =
0x0208002e190017030300230000000000000003948be373949aee0d206e6a1acb1b5aff5d77e1297ba6d9d05f47ee
(9)   Message-Authenticator = 0xe84acdfb6dbf99d41967dd2cf36ef8a0
(9)   NAS-Identifier = "MikroTik"
(9)   NAS-IP-Address = 10.122.0.249
(9) Restoring &session-state
(9)   &session-state:Module-Failure-Message := "mschap: FAILED: No
NT/LM-Password.  Cannot perform authentication"
(9) # Executing section authorize from file
/etc/freeradius/3.0/sites-enabled/default
(9)   authorize {
(9)     [preprocess] = ok
(9) eap: Peer sent EAP Response (code 2) ID 8 length 46
(9) eap: Continuing tunnel setup
(9)     [eap] = ok
(9)   } # authorize = ok
(9) Found Auth-Type = eap
(9) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
(9)   authenticate {
(9) eap: Expiring EAP session with state 0x6a2c6baa6d24724f
(9) eap: Finished EAP session with state 0x6a2c6baa6d24724f
(9) eap: Previous EAP request found for state 0x6a2c6baa6d24724f, released
from the list
(9) eap: Peer sent packet with method EAP PEAP (25)
(9) eap: Calling submodule eap_peap to process data
(9) eap_peap: Continuing EAP-TLS
(9) eap_peap: [eaptls verify] = ok
(9) eap_peap: Done initial handshake
(9) eap_peap: [eaptls process] = ok
(9) eap_peap: Session established.  Decoding tunneled attributes
(9) eap_peap: PEAP state send tlv failure
(9) eap_peap: Received EAP-TLV response
(9) eap_peap:   The users session was previously rejected: returning reject
(again.)
(9) eap_peap:   This means you need to read the PREVIOUS messages in the
debug output
(9) eap_peap:   to find out the reason why the user was rejected
(9) eap_peap:   Look for "reject" or "fail".  Those earlier messages will
tell you
(9) eap_peap:   what went wrong, and how to fix the problem
(9) eap: ERROR: Failed continuing EAP PEAP (25) session.  EAP sub-module
failed
(9) eap: Sending EAP Failure (code 4) ID 8 length 4
(9) eap: Failed in EAP select
(9)     [eap] = invalid
(9)   } # authenticate = invalid
(9) Failed to authenticate the user
(9) Using Post-Auth-Type Reject
(9) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
(9)   Post-Auth-Type REJECT {
(9) sql: EXPAND .query
(9) sql:    --> .query
(9) sql: Using query template 'query'
rlm_sql (sql): Reserved connection (0)
(9) sql: EXPAND %{User-Name}
(9) sql:    --> 6696
(9) sql: SQL-User-Name set to '6696'
(9) sql: EXPAND INSERT INTO radpostauth (username, pass, reply, authdate)
VALUES ( '%{SQL-User-Name}', '%{%{User-Password}:-%{Chap-Password}}',
'%{reply:Packet-Type}', '%S')
(9) sql:    --> INSERT INTO radpostauth (username, pass, reply, authdate)
VALUES ( '6696', '', 'Access-Reject', '2018-07-25 23:43:26')
(9) sql: EXPAND /var/log/freeradius/sqllog.sql
(9) sql:    --> /var/log/freeradius/sqllog.sql
(9) sql: Executing query: INSERT INTO radpostauth (username, pass, reply,
authdate) VALUES ( '6696', '', 'Access-Reject', '2018-07-25 23:43:26')
(9) sql: SQL query returned: success
(9) sql: 1 record(s) updated
rlm_sql (sql): Released connection (0)
(9)     [sql] = ok
(9) attr_filter.access_reject: EXPAND %{User-Name}
(9) attr_filter.access_reject:    --> 6696
(9) attr_filter.access_reject: Matched entry DEFAULT at line 11
(9)     [attr_filter.access_reject] = updated
(9)     [eap] = noop
(9)     policy remove_reply_message_if_eap {
(9)       if (&reply:EAP-Message && &reply:Reply-Message) {
(9)       if (&reply:EAP-Message && &reply:Reply-Message)  -> FALSE
(9)       else {
(9)         [noop] = noop
(9)       } # else = noop
(9)     } # policy remove_reply_message_if_eap = noop
(9)   } # Post-Auth-Type REJECT = updated
(9) Delaying response for 1.000000 seconds
Waking up in 0.3 seconds.
Waking up in 0.6 seconds.
(9) (9) Discarding duplicate request from client home2.gw port 53422 - ID:
127 due to delayed response
Waking up in 0.3 seconds.
(9) Sending delayed response
(9) Sent Access-Reject Id 127 from 10.250.0.89:1812 to 10.122.0.249:53422
length 44
(9)   EAP-Message = 0x04080004
(9)   Message-Authenticator = 0x00000000000000000000000000000000
Waking up in 3.8 seconds.
(10) Received Accounting-Request Id 128 from 10.122.0.249:55370 to
10.250.0.89:1813 length 192
(10)   Service-Type = Framed-User
(10)   NAS-Port-Id = "wlan3"
(10)   NAS-Port-Type = Wireless-802.11
(10)   User-Name = "D0-B1-28-39-46-A1"
(10)   Acct-Session-Id = "82400162"
(10)   Calling-Station-Id = "D0-B1-28-39-46-A1"
(10)   Called-Station-Id = "CE-2D-E0-12-71-BA:HOT"
(10)   Acct-Authentic = Local
(10)   Acct-Status-Type = Stop
(10)   Acct-Terminate-Cause = Port-Error
(10)   Acct-Session-Time = 1
(10)   Acct-Input-Octets = 0
(10)   Acct-Input-Gigawords = 0
(10)   Acct-Input-Packets = 0
(10)   Acct-Output-Octets = 1558
(10)   Acct-Output-Gigawords = 0
(10)   Acct-Output-Packets = 10
(10)   NAS-Identifier = "MikroTik"
(10)   Acct-Delay-Time = 0
(10)   NAS-IP-Address = 10.122.0.249
(10) # Executing section preacct from file
/etc/freeradius/3.0/sites-enabled/default
(10)   preacct {
(10)     [preprocess] = ok
(10)     policy acct_unique {
(10)       update request {
(10)         Tmp-String-9 := "ai:"
(10)       } # update request = noop
(10)       if (("%{hex:&Class}" =~ /^%{hex:&Tmp-String-9}/) &&
("%{string:&Class}" =~ /^ai:([0-9a-f]{32})/i)) {
(10)       EXPAND %{hex:&Class}
(10)          -->
(10)       EXPAND ^%{hex:&Tmp-String-9}
(10)          --> ^61693a
(10)       if (("%{hex:&Class}" =~ /^%{hex:&Tmp-String-9}/) &&
("%{string:&Class}" =~ /^ai:([0-9a-f]{32})/i))  -> FALSE
(10)       else {
(10)         update request {
(10)           EXPAND
%{md5:%{User-Name},%{Acct-Session-ID},%{%{NAS-IPv6-Address}:-%{NAS-IP-Address}},%{NAS-Identifier},%{NAS-Port-ID},%{NAS-Port}}
(10)              --> 0a4a25a388f63fe98a974a832d3ac3af
(10)           &Acct-Unique-Session-Id := 0a4a25a388f63fe98a974a832d3ac3af
(10)         } # update request = noop
(10)       } # else = noop
(10)     } # policy acct_unique = noop
(10) suffix: Checking for suffix after "@"
(10) suffix: No '@' in User-Name = "D0-B1-28-39-46-A1", looking up realm
NULL
(10) suffix: No such realm "NULL"
(10)     [suffix] = noop
(10)     [files] = noop
(10)   } # preacct = ok
(10) # Executing section accounting from file
/etc/freeradius/3.0/sites-enabled/default
(10)   accounting {
(10) detail: EXPAND
/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d
(10) detail:    --> /var/log/freeradius/radacct/10.122.0.249/detail-20180725
(10) detail:
/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d
expands to /var/log/freeradius/radacct/10.122.0.249/detail-20180725
(10) detail: EXPAND %t
(10) detail:    --> Wed Jul 25 23:43:27 2018
(10)     [detail] = ok
(10)     [unix] = ok
(10) sql: EXPAND %{tolower:type.%{Acct-Status-Type}.query}
(10) sql:    --> type.stop.query
(10) sql: Using query template 'query'
rlm_sql (sql): Reserved connection (5)
(10) sql: EXPAND %{User-Name}
(10) sql:    --> D0-B1-28-39-46-A1
(10) sql: SQL-User-Name set to 'D0-B1-28-39-46-A1'
(10) sql: EXPAND UPDATE radacct SET acctstoptime        =
FROM_UNIXTIME(%{integer:Event-Timestamp}), acctsessiontime    =
%{%{Acct-Session-Time}:-NULL}, 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
AcctUniqueId = '%{Acct-Unique-Session-Id}'
(10) sql:    --> UPDATE radacct SET acctstoptime        =
FROM_UNIXTIME(1532551407), acctsessiontime    = 1, acctinputoctets    = '0'
<< 32 | '0', acctoutputoctets = '0' << 32 | '1558', acctterminatecause =
'Port-Error', connectinfo_stop = '' WHERE AcctUniqueId =
'0a4a25a388f63fe98a974a832d3ac3af'
(10) sql: EXPAND /var/log/freeradius/sqllog.sql
(10) sql:    --> /var/log/freeradius/sqllog.sql
(10) sql: Executing query: UPDATE radacct SET acctstoptime      =
FROM_UNIXTIME(1532551407), acctsessiontime    = 1, acctinputoctets    = '0'
<< 32 | '0', acctoutputoctets = '0' << 32 | '1558', acctterminatecause =
'Port-Error', connectinfo_stop = '' WHERE AcctUniqueId =
'0a4a25a388f63fe98a974a832d3ac3af'
rlm_sql_mysql: Rows matched: 0  Changed: 0  Warnings: 0
(10) sql: SQL query returned: success
(10) sql: 0 record(s) updated
(10) sql: Trying next query...
(10) 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-ID}:-%{NAS-Port}}', '%{NAS-Port-Type}',
FROM_UNIXTIME(%{integer:Event-Timestamp} - %{%{Acct-Session-Time}:-0}),
FROM_UNIXTIME(%{integer:Event-Timestamp}),
FROM_UNIXTIME(%{integer:Event-Timestamp}), %{%{Acct-Session-Time}:-NULL},
'%{Acct-Authentic}', '', '%{Connect-Info}', '%{%{Acct-Input-Gigawords}:-0}'
<< 32 | '%{%{Acct-Input-Octets}:-0}', '%{%{Acct-Output-Gigawords}:-0}' <<
32 | '%{%{Acct-Output-Octets}:-0}', '%{Called-Station-Id}',
'%{Calling-Station-Id}', '%{Acct-Terminate-Cause}', '%{Service-Type}',
'%{Framed-Protocol}', '%{Framed-IP-Address}')
(10) 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 ('82400162', '0a4a25a388f63fe98a974a832d3ac3af',
'D0-B1-28-39-46-A1', '', '10.122.0.249', 'wlan3', 'Wireless-802.11',
FROM_UNIXTIME(1532551407 - 1), FROM_UNIXTIME(1532551407),
FROM_UNIXTIME(1532551407), 1, 'Local', '', '', '0' << 32 | '0', '0' << 32 |
'1558', 'CE-2D-E0-12-71-BA:HOT', 'D0-B1-28-39-46-A1', 'Port-Error',
'Framed-User', '', '')
(10) sql: EXPAND /var/log/freeradius/sqllog.sql
(10) sql:    --> /var/log/freeradius/sqllog.sql
(10) 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 ('82400162', '0a4a25a388f63fe98a974a832d3ac3af',
'D0-B1-28-39-46-A1', '', '10.122.0.249', 'wlan3', 'Wireless-802.11',
FROM_UNIXTIME(1532551407 - 1), FROM_UNIXTIME(1532551407),
FROM_UNIXTIME(1532551407), 1, 'Local', '', '', '0' << 32 | '0', '0' << 32 |
'1558', 'CE-2D-E0-12-71-BA:HOT', 'D0-B1-28-39-46-A1', 'Port-Error',
'Framed-User', '', '')
(10) sql: rlm_sql_mysql: ERROR 1062 (Duplicate entry '0' for key
'PRIMARY'): 23000
(10) sql: SQL query returned: need alt query
(10) sql: No additional queries configured
rlm_sql (sql): Released connection (5)
rlm_sql (sql): Need 2 more connections to reach 10 spares
rlm_sql (sql): Opening additional connection (8), 1 of 24 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radius' on Localhost via UNIX socket,
server version 10.1.26-MariaDB-0+deb9u1, protocol version 10
(10)     [sql] = noop
(10)     [exec] = noop
(10) attr_filter.accounting_response: EXPAND %{User-Name}
(10) attr_filter.accounting_response:    --> D0-B1-28-39-46-A1
(10) attr_filter.accounting_response: Matched entry DEFAULT at line 12
(10)     [attr_filter.accounting_response] = updated
(10)   } # accounting = updated
(10) Sent Accounting-Response Id 128 from 10.250.0.89:1813 to
10.122.0.249:55370 length 0
(10) Finished request


2018-07-25 22:33 GMT+03:00 Alan DeKok <aland at deployingradius.com>:

> On Jul 25, 2018, at 12:53 PM, Maksim Bessonov <maksim.bessonov2 at gmail.com>
> wrote:
> > i have FR 3 with mysql. There is no problem with one Calling-station-id
> -
> > to wifi connects only with correct mac address. If i add new calling
> > station id - no one authenticate.
>
>   That's not what the debug log shows.
>
> > Is it possible to use more that one Calling-station-id?
>
>   Yes.
>
> >
> > (8)   Calling-Station-Id = "5C-8D-4E-45-26-7E"
>
>   Only one Calling-Station-Id.
>
> > /etc/freeradius/3.0/sites-enabled/inner-tunnel
> > (8) eap_mschapv2:   authenticate {
> > (8) mschap: WARNING: No Cleartext-Password configured.  Cannot create
> > NT-Password
> > (8) mschap: WARNING: No Cleartext-Password configured.  Cannot create
> > LM-Password
> > (8) mschap: Creating challenge hash with username: 6696
> > (8) mschap: Client is using MS-CHAPv2
> > (8) mschap: ERROR: FAILED: No NT/LM-Password.  Cannot perform
> authentication
> > (8) mschap: ERROR: MS-CHAP2-Response is incorrect
> > (8)     [mschap] = reject
>
>   You didn't tell FreeRADIUS what the users "known good" password was.
>
>   Fix that, and it will work.
>
>   Alan DeKok.
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/
> list/users.html


More information about the Freeradius-Users mailing list