Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AP: Ubiquiti nanostation M2, authentification et accounting Activé
- Nas type: other
- /etc/freeradius/3.0/mods-available/sql
- <code># -*- text -*-
- ##
- ## mods-available/sql -- SQL modules
- ##
- ## $Id: 7e9eee03c58bab67206ec10249db79ebbc0baa3c $
- ######################################################################
- #
- # Configuration for the SQL module
- #
- # The database schemas and queries are located in subdirectories:
- #
- # sql/<DB>/main/schema.sql Schema
- # sql/<DB>/main/queries.conf Authorisation and Accounting queries
- #
- # Where "DB" is mysql, mssql, oracle, or postgresql.
- #
- # The name used to query SQL is sql_user_name, which is set in the file
- #
- # raddb/mods-config/sql/main/${dialect}/queries.conf
- #
- # If you are using realms, that configuration should be changed to use
- # the Stripped-User-Name attribute. See the comments around sql_user_name
- # for more information.
- #
- sql {
- #
- # The dialect of SQL being used.
- #
- # Allowed dialects are:
- #
- # mssql
- # mysql
- # oracle
- # postgresql
- # sqlite
- # mongo
- #
- dialect = "mysql"
- #
- # The driver module used to execute the queries. Since we
- # don't know which SQL drivers are being used, the default is
- # "rlm_sql_null", which just logs the queries to disk via the
- # "logfile" directive, below.
- #
- # In order to talk to a real database, delete the next line,
- # and uncomment the one after it.
- #
- # If the dialect is "mssql", then the driver should be set to
- # one of the following values, depending on your system:
- #
- # rlm_sql_db2
- # rlm_sql_firebird
- # rlm_sql_freetds
- # rlm_sql_iodbc
- # rlm_sql_unixodbc
- #
- # driver = "rlm_sql_null"
- driver = "rlm_sql_${dialect}"
- #
- # Driver-specific subsections. They will only be loaded and
- # used if "driver" is something other than "rlm_sql_null".
- # When a real driver is used, the relevant driver
- # configuration section is loaded, and all other driver
- # configuration sections are ignored.
- #
- sqlite {
- # Path to the sqlite database
- filename = "/tmp/freeradius.db"
- # How long to wait for write locks on the database to be
- # released (in ms) before giving up.
- busy_timeout = 200
- # If the file above does not exist and bootstrap is set
- # a new database file will be created, and the SQL statements
- # contained within the bootstrap file will be executed.
- bootstrap = "${modconfdir}/${..:name}/main/sqlite/schema.sql"
- }
- mysql {
- # If any of the files below are set, TLS encryption is enabled
- tls {
- # ca_file = "/etc/ssl/certs/my_ca.crt"
- # ca_path = "/etc/ssl/certs/"
- # certificate_file = "/etc/ssl/certs/private/client.crt"
- # private_key_file = "/etc/ssl/certs/private/client.key"
- # cipher = "DHE-RSA-AES256-SHA:AES128-SHA"
- tls_required = no
- tls_check_cert = no
- tls_check_cert_cn = no
- }
- # If yes, (or auto and libmysqlclient reports warnings are
- # available), will retrieve and log additional warnings from
- # the server if an error has occured. Defaults to 'auto'
- warnings = auto
- }
- postgresql {
- # unlike MySQL, which has a tls{} connection configuration, postgresql
- # uses its connection parameters - see the radius_db option below in
- # this file
- # Send application_name to the postgres server
- # Only supported in PG 9.0 and greater. Defaults to no.
- send_application_name = yes
- }
- #
- # Configuration for Mongo.
- #
- # Note that the Mongo driver is experimental. The FreeRADIUS developers
- # are unable to help with the syntax of the Mongo queries. Please see
- # the Mongo documentation for that syntax.
- #
- # The Mongo driver supports only the following methods:
- #
- # aggregate
- # findAndModify
- # findOne
- # insert
- #
- # For examples, see the query files:
- #
- # raddb/mods-config/sql/main/mongo/queries.conf
- # raddb/mods-config/sql/main/ippool/queries.conf
- #
- mongo {
- #
- # The application name to use.
- #
- appname = "freeradius"
- #
- # The TLS parameters here map directly to the Mongo TLS configuration
- #
- tls {
- certificate_file = /path/to/file
- certificate_password = "password"
- ca_file = /path/to/file
- ca_dir = /path/to/directory
- crl_file = /path/to/file
- weak_cert_validation = false
- allow_invalid_hostname = false
- }
- }
- # Connection info:
- #
- server = "localhost"
- port = 3306
- login = "freeradius"
- password = "kamini123"
- # Connection info for Mongo
- # Authentication Without SSL
- # server = "mongodb://USER:[email protected]:PORT/DATABASE?authSource=admin&ssl=false"
- # Authentication With SSL
- # server = "mongodb://USER:[email protected]:PORT/DATABASE?authSource=admin&ssl=true"
- # Authentication with Certificate
- # Use this command for retrieve Derived username:
- # openssl x509 -in mycert.pem -inform PEM -subject -nameopt RFC2253
- # server = mongodb://<DERIVED USERNAME>@192.168.0.2:PORT/DATABASE?authSource=$external&ssl=true&authMechanism=MONGODB-X509
- # Database table configuration for everything except Oracle
- radius_db = "radius"
- # If you are using Oracle then use this instead
- # radius_db = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=your_sid)))"
- # If you're using postgresql this can also be used instead of the connection info parameters
- # radius_db = "dbname=radius host=localhost user=radius password=raddpass"
- # Postgreql doesn't take tls{} options in its module config like mysql does - if you want to
- # use SSL connections then use this form of connection info parameter
- # radius_db = "host=localhost port=5432 dbname=radius user=radius password=raddpass sslmode=verify-full sslcert=/etc/ssl/client.crt sslkey=/etc/ssl/client.key sslrootcert=/etc/ssl/ca.crt"
- # If you want both stop and start records logged to the
- # same SQL table, leave this as is. If you want them in
- # different tables, put the start table in acct_table1
- # and stop table in acct_table2
- acct_table1 = "radacct"
- acct_table2 = "radacct"
- # Allow for storing data after authentication
- postauth_table = "radpostauth"
- # Tables containing 'check' items
- authcheck_table = "radcheck"
- groupcheck_table = "radgroupcheck"
- # Tables containing 'reply' items
- authreply_table = "radreply"
- groupreply_table = "radgroupreply"
- # Table to keep group info
- usergroup_table = "radusergroup"
- # If set to 'yes' (default) we read the group tables unless Fall-Through = no in the reply table.
- # If set to 'no' we do not read the group tables unless Fall-Through = yes in the reply table.
- # read_groups = yes
- # If set to 'yes' (default) we read profiles unless Fall-Through = no in the groupreply table.
- # If set to 'no' we do not read profiles unless Fall-Through = yes in the groupreply table.
- # read_profiles = yes
- # Remove stale session if checkrad does not see a double login
- delete_stale_sessions = yes
- # Write SQL queries to a logfile. This is potentially useful for tracing
- # issues with authorization queries. See also "logfile" directives in
- # mods-config/sql/main/*/queries.conf. You can enable per-section logging
- # by enabling "logfile" there, or global logging by enabling "logfile" here.
- #
- # Per-section logging can be disabled by setting "logfile = ''"
- # logfile = ${logdir}/sqllog.sql
- # Set the maximum query duration and connection timeout
- # for rlm_sql_mysql.
- # query_timeout = 5
- # As of version 3.0, the "pool" section has replaced the
- # following configuration items:
- #
- # num_sql_socks
- # connect_failure_retry_delay
- # lifetime
- # max_queries
- #
- # The connection pool is new for 3.0, and will be used in many
- # modules, for all kinds of connection-related activity.
- #
- # When the server is not threaded, the connection pool
- # limits are ignored, and only one connection is used.
- #
- # If you want to have multiple SQL modules re-use the same
- # connection pool, use "pool = name" instead of a "pool"
- # section. e.g.
- #
- # sql sql1 {
- # ...
- # pool {
- # ...
- # }
- # }
- #
- # # sql2 will use the connection pool from sql1
- # sql sql2 {
- # ...
- # pool = sql1
- # }
- #
- pool {
- # Connections to create during module instantiation.
- # If the server cannot create specified number of
- # connections during instantiation it will exit.
- # Set to 0 to allow the server to start without the
- # database being available.
- start = ${thread[pool].start_servers}
- # Minimum number of connections to keep open
- min = ${thread[pool].min_spare_servers}
- # Maximum number of connections
- #
- # If these connections are all in use and a new one
- # is requested, the request will NOT get a connection.
- #
- # Setting 'max' to LESS than the number of threads means
- # that some threads may starve, and you will see errors
- # like 'No connections available and at max connection limit'
- #
- # Setting 'max' to MORE than the number of threads means
- # that there are more connections than necessary.
- max = ${thread[pool].max_servers}
- # Spare connections to be left idle
- #
- # NOTE: Idle connections WILL be closed if "idle_timeout"
- # is set. This should be less than or equal to "max" above.
- spare = ${thread[pool].max_spare_servers}
- # Number of uses before the connection is closed
- #
- # 0 means "infinite"
- uses = 0
- # The number of seconds to wait after the server tries
- # to open a connection, and fails. During this time,
- # no new connections will be opened.
- retry_delay = 30
- # The lifetime (in seconds) of the connection
- lifetime = 0
- # idle timeout (in seconds). A connection which is
- # unused for this length of time will be closed.
- idle_timeout = 60
- # NOTE: All configuration settings are enforced. If a
- # connection is closed because of "idle_timeout",
- # "uses", or "lifetime", then the total number of
- # connections MAY fall below "min". When that
- # happens, it will open a new connection. It will
- # also log a WARNING message.
- #
- # The solution is to either lower the "min" connections,
- # or increase lifetime/idle_timeout.
- }
- # Set to 'yes' to read radius clients from the database ('nas' table)
- # Clients will ONLY be read on server startup.
- read_clients = yes
- # Table to keep radius client info
- client_table = "nas"
- #
- # The group attribute specific to this instance of rlm_sql
- #
- # This entry should be used for additional instances (sql foo {})
- # of the SQL module.
- # group_attribute = "${.:instance}-SQL-Group"
- # This entry should be used for the default instance (sql {})
- # of the SQL module.
- group_attribute = "SQL-Group"
- # Read database-specific queries
- $INCLUDE ${modconfdir}/${.:name}/main/${dialect}/queries.conf
- }
- </code>
- /etc/freeradius/3.0/sites-available/default
- <code>######################################################################
- #
- # As of 2.0.0, FreeRADIUS supports virtual hosts using the
- # "server" section, and configuration directives.
- #
- # Virtual hosts should be put into the "sites-available"
- # directory. Soft links should be created in the "sites-enabled"
- # directory to these files. This is done in a normal installation.
- #
- # If you are using 802.1X (EAP) authentication, please see also
- # the "inner-tunnel" virtual server. You will likely have to edit
- # that, too, for authentication to work.
- #
- # $Id: c60c0ba4c8728fac10b190dbb3b752f9df317c07 $
- #
- ######################################################################
- #
- # Read "man radiusd" before editing this file. See the section
- # titled DEBUGGING. It outlines a method where you can quickly
- # obtain the configuration you want, without running into
- # trouble. See also "man unlang", which documents the format
- # of this file.
- #
- # This configuration is designed to work in the widest possible
- # set of circumstances, with the widest possible number of
- # authentication methods. This means that in general, you should
- # need to make very few changes to this file.
- #
- # The best way to configure the server for your local system
- # is to CAREFULLY edit this file. Most attempts to make large
- # edits to this file will BREAK THE SERVER. Any edits should
- # be small, and tested by running the server with "radiusd -X".
- # Once the edits have been verified to work, save a copy of these
- # configuration files somewhere. (e.g. as a "tar" file). Then,
- # make more edits, and test, as above.
- #
- # There are many "commented out" references to modules such
- # as ldap, sql, etc. These references serve as place-holders.
- # If you need the functionality of that module, then configure
- # it in radiusd.conf, and un-comment the references to it in
- # this file. In most cases, those small changes will result
- # in the server being able to connect to the DB, and to
- # authenticate users.
- #
- ######################################################################
- server default {
- #
- # If you want the server to listen on additional addresses, or on
- # additional ports, you can use multiple "listen" sections.
- #
- # Each section make the server listen for only one type of packet,
- # therefore authentication and accounting have to be configured in
- # different sections.
- #
- # The server ignore all "listen" section if you are using '-i' and '-p'
- # on the command line.
- #
- listen {
- # Type of packets to listen for.
- # Allowed values are:
- # auth listen for authentication packets
- # acct listen for accounting packets
- # proxy IP to use for sending proxied packets
- # detail Read from the detail file. For examples, see
- # raddb/sites-available/copy-acct-to-home-server
- # status listen for Status-Server packets. For examples,
- # see raddb/sites-available/status
- # coa listen for CoA-Request and Disconnect-Request
- # packets. For examples, see the file
- # raddb/sites-available/coa
- #
- type = auth
- # Note: "type = proxy" lets you control the source IP used for
- # proxying packets, with some limitations:
- #
- # * A proxy listener CANNOT be used in a virtual server section.
- # * You should probably set "port = 0".
- # * Any "clients" configuration will be ignored.
- #
- # See also proxy.conf, and the "src_ipaddr" configuration entry
- # in the sample "home_server" section. When you specify the
- # source IP address for packets sent to a home server, the
- # proxy listeners are automatically created.
- # ipaddr/ipv4addr/ipv6addr - IP address on which to listen.
- # If multiple ones are listed, only the first one will
- # be used, and the others will be ignored.
- #
- # The configuration options accept the following syntax:
- #
- # ipv4addr - IPv4 address (e.g.192.0.2.3)
- # - wildcard (i.e. *)
- # - hostname (radius.example.com)
- # Only the A record for the host name is used.
- # If there is no A record, an error is returned,
- # and the server fails to start.
- #
- # ipv6addr - IPv6 address (e.g. 2001:db8::1)
- # - wildcard (i.e. *)
- # - hostname (radius.example.com)
- # Only the AAAA record for the host name is used.
- # If there is no AAAA record, an error is returned,
- # and the server fails to start.
- #
- # ipaddr - IPv4 address as above
- # - IPv6 address as above
- # - wildcard (i.e. *), which means IPv4 wildcard.
- # - hostname
- # If there is only one A or AAAA record returned
- # for the host name, it is used.
- # If multiple A or AAAA records are returned
- # for the host name, only the first one is used.
- # If both A and AAAA records are returned
- # for the host name, only the A record is used.
- #
- # ipv4addr = *
- # ipv6addr = *
- ipaddr = *
- # Port on which to listen.
- # Allowed values are:
- # integer port number (1812)
- # 0 means "use /etc/services for the proper port"
- port = 0
- # Some systems support binding to an interface, in addition
- # to the IP address. This feature isn't strictly necessary,
- # but for sites with many IP addresses on one interface,
- # it's useful to say "listen on all addresses for eth0".
- #
- # If your system does not support this feature, you will
- # get an error if you try to use it.
- #
- # interface = eth0
- # Per-socket lists of clients. This is a very useful feature.
- #
- # The name here is a reference to a section elsewhere in
- # radiusd.conf, or clients.conf. Having the name as
- # a reference allows multiple sockets to use the same
- # set of clients.
- #
- # If this configuration is used, then the global list of clients
- # is IGNORED for this "listen" section. Take care configuring
- # this feature, to ensure you don't accidentally disable a
- # client you need.
- #
- # See clients.conf for the configuration of "per_socket_clients".
- #
- # clients = per_socket_clients
- #
- # Set the default UDP receive buffer size. In most cases,
- # the default values set by the kernel are fine. However, in
- # some cases the NASes will send large packets, and many of
- # them at a time. It is then possible to overflow the
- # buffer, causing the kernel to drop packets before they
- # reach FreeRADIUS. Increasing the size of the buffer will
- # avoid these packet drops.
- #
- # recv_buff = 65536
- #
- # Connection limiting for sockets with "proto = tcp".
- #
- # This section is ignored for other kinds of sockets.
- #
- limit {
- #
- # Limit the number of simultaneous TCP connections to the socket
- #
- # The default is 16.
- # Setting this to 0 means "no limit"
- max_connections = 16
- # The per-socket "max_requests" option does not exist.
- #
- # The lifetime, in seconds, of a TCP connection. After
- # this lifetime, the connection will be closed.
- #
- # Setting this to 0 means "forever".
- lifetime = 0
- #
- # The idle timeout, in seconds, of a TCP connection.
- # If no packets have been received over the connection for
- # this time, the connection will be closed.
- #
- # Setting this to 0 means "no timeout".
- #
- # We STRONGLY RECOMMEND that you set an idle timeout.
- #
- idle_timeout = 30
- }
- }
- #
- # This second "listen" section is for listening on the accounting
- # port, too.
- #
- listen {
- ipaddr = *
- # ipv6addr = ::
- port = 0
- type = acct
- # interface = eth0
- # clients = per_socket_clients
- limit {
- # The number of packets received can be rate limited via the
- # "max_pps" configuration item. When it is set, the server
- # tracks the total number of packets received in the previous
- # second. If the count is greater than "max_pps", then the
- # new packet is silently discarded. This helps the server
- # deal with overload situations.
- #
- # The packets/s counter is tracked in a sliding window. This
- # means that the pps calculation is done for the second
- # before the current packet was received. NOT for the current
- # wall-clock second, and NOT for the previous wall-clock second.
- #
- # Useful values are 0 (no limit), or 100 to 10000.
- # Values lower than 100 will likely cause the server to ignore
- # normal traffic. Few systems are capable of handling more than
- # 10K packets/s.
- #
- # It is most useful for accounting systems. Set it to 50%
- # more than the normal accounting load, and you can be sure that
- # the server will never get overloaded
- #
- # max_pps = 0
- # Only for "proto = tcp". These are ignored for "udp" sockets.
- #
- # idle_timeout = 0
- # lifetime = 0
- # max_connections = 0
- }
- }
- # IPv6 versions of the above - read their full config to understand options
- listen {
- type = auth
- ipv6addr = :: # any. ::1 == localhost
- port = 0
- # interface = eth0
- # clients = per_socket_clients
- limit {
- max_connections = 16
- lifetime = 0
- idle_timeout = 30
- }
- }
- listen {
- ipv6addr = ::
- port = 0
- type = acct
- # interface = eth0
- # clients = per_socket_clients
- limit {
- # max_pps = 0
- # idle_timeout = 0
- # lifetime = 0
- # max_connections = 0
- }
- }
- # Authorization. First preprocess (hints and huntgroups files),
- # then realms, and finally look in the "users" file.
- #
- # Any changes made here should also be made to the "inner-tunnel"
- # virtual server.
- #
- # The order of the realm modules will determine the order that
- # we try to find a matching realm.
- #
- # Make *sure* that 'preprocess' comes before any realm if you
- # need to setup hints for the remote radius server
- authorize {
- #
- # Take a User-Name, and perform some checks on it, for spaces and other
- # invalid characters. If the User-Name appears invalid, reject the
- # request.
- #
- # See policy.d/filter for the definition of the filter_username policy.
- #
- filter_username
- #
- # Some broken equipment sends passwords with embedded zeros.
- # i.e. the debug output will show
- #
- # User-Password = "password\000\000"
- #
- # This policy will fix it to just be "password".
- #
- # filter_password
- #
- # The preprocess module takes care of sanitizing some bizarre
- # attributes in the request, and turning them into attributes
- # which are more standard.
- #
- # It takes care of processing the 'raddb/mods-config/preprocess/hints'
- # and the 'raddb/mods-config/preprocess/huntgroups' files.
- preprocess
- # If you intend to use CUI and you require that the Operator-Name
- # be set for CUI generation and you want to generate CUI also
- # for your local clients then uncomment the operator-name
- # below and set the operator-name for your clients in clients.conf
- # operator-name
- #
- # If you want to generate CUI for some clients that do not
- # send proper CUI requests, then uncomment the
- # cui below and set "add_cui = yes" for these clients in clients.conf
- # cui
- #
- # If you want to have a log of authentication requests,
- # un-comment the following line.
- # auth_log
- #
- # The chap module will set 'Auth-Type := CHAP' if we are
- # handling a CHAP request and Auth-Type has not already been set
- pap
- #
- # If the users are logging in with an MS-CHAP-Challenge
- # attribute for authentication, the mschap module will find
- # the MS-CHAP-Challenge attribute, and add 'Auth-Type := MS-CHAP'
- # to the request, which will cause the server to then use
- # the mschap module for authentication.
- mschap
- #
- # If you have a Cisco SIP server authenticating against
- # FreeRADIUS, uncomment the following line, and the 'digest'
- # line in the 'authenticate' section.
- digest
- #
- # The WiMAX specification says that the Calling-Station-Id
- # is 6 octets of the MAC. This definition conflicts with
- # RFC 3580, and all common RADIUS practices. Un-commenting
- # the "wimax" module here means that it will fix the
- # Calling-Station-Id attribute to the normal format as
- # specified in RFC 3580 Section 3.21
- # wimax
- #
- # Look for IPASS style 'realm/', and if not found, look for
- # '@realm', and decide whether or not to proxy, based on
- # that.
- # IPASS
- #
- # Look for realms in user@domain format
- suffix
- # ntdomain
- #
- # This module takes care of EAP-MD5, EAP-TLS, and EAP-LEAP
- # authentication.
- #
- # It also sets the EAP-Type attribute in the request
- # attribute list to the EAP type from the packet.
- #
- # The EAP module returns "ok" or "updated" if it is not yet ready
- # to authenticate the user. The configuration below checks for
- # "ok", and stops processing the "authorize" section if so.
- #
- # Any LDAP and/or SQL servers will not be queried for the
- # initial set of packets that go back and forth to set up
- # TTLS or PEAP.
- #
- # The "updated" check is commented out for compatibility with
- # previous versions of this configuration, but you may wish to
- # uncomment it as well; this will further reduce the number of
- # LDAP and/or SQL queries for TTLS or PEAP.
- #
- eap {
- ok = return
- # updated = return
- }
- #
- # Pull crypt'd passwords from /etc/passwd or /etc/shadow,
- # using the system API's to get the password. If you want
- # to read /etc/passwd or /etc/shadow directly, see the
- # mods-available/passwd module.
- #
- # unix
- #
- # Read the 'users' file. In v3, this is located in
- # raddb/mods-config/files/authorize
- files
- #
- # Look in an SQL database. The schema of the database
- # is meant to mirror the "users" file.
- #
- # See "Authorization Queries" in mods-available/sql
- -sql
- #
- # If you are using /etc/smbpasswd, and are also doing
- # mschap authentication, the un-comment this line, and
- # configure the 'smbpasswd' module.
- # smbpasswd
- #
- # The ldap module reads passwords from the LDAP database.
- -ldap
- #
- # Enforce daily limits on time spent logged in.
- # daily
- #
- expiration
- logintime
- #
- # If no other module has claimed responsibility for
- # authentication, then try to use PAP. This allows the
- # other modules listed above to add a "known good" password
- # to the request, and to do nothing else. The PAP module
- # will then see that password, and use it to do PAP
- # authentication.
- #
- # This module should be listed last, so that the other modules
- # get a chance to set Auth-Type for themselves.
- #
- pap
- #
- # If "status_server = yes", then Status-Server messages are passed
- # through the following section, and ONLY the following section.
- # This permits you to do DB queries, for example. If the modules
- # listed here return "fail", then NO response is sent.
- #
- # Autz-Type Status-Server {
- #
- # }
- }
- # Authentication.
- #
- #
- # This section lists which modules are available for authentication.
- # Note that it does NOT mean 'try each module in order'. It means
- # that a module from the 'authorize' section adds a configuration
- # attribute 'Auth-Type := FOO'. That authentication type is then
- # used to pick the appropriate module from the list below.
- #
- # In general, you SHOULD NOT set the Auth-Type attribute. The server
- # will figure it out on its own, and will do the right thing. The
- # most common side effect of erroneously setting the Auth-Type
- # attribute is that one authentication method will work, but the
- # others will not.
- #
- # The common reasons to set the Auth-Type attribute by hand
- # is to either forcibly reject the user (Auth-Type := Reject),
- # or to or forcibly accept the user (Auth-Type := Accept).
- #
- # Note that Auth-Type := Accept will NOT work with EAP.
- #
- # Please do not put "unlang" configurations into the "authenticate"
- # section. Put them in the "post-auth" section instead. That's what
- # the post-auth section is for.
- #
- authenticate {
- #
- # PAP authentication, when a back-end database listed
- # in the 'authorize' section supplies a password. The
- # password can be clear-text, or encrypted.
- Auth-Type PAP {
- pap
- }
- #
- # Most people want CHAP authentication
- # A back-end database listed in the 'authorize' section
- # MUST supply a CLEAR TEXT password. Encrypted passwords
- # won't work.
- Auth-Type CHAP {
- chap
- }
- #
- # MSCHAP authentication.
- Auth-Type MS-CHAP {
- mschap
- }
- #
- # For old names, too.
- #
- mschap
- #
- # If you have a Cisco SIP server authenticating against
- # FreeRADIUS, uncomment the following line, and the 'digest'
- # line in the 'authorize' section.
- digest
- #
- # Pluggable Authentication Modules.
- # pam
- # Uncomment it if you want to use ldap for authentication
- #
- # Note that this means "check plain-text password against
- # the ldap database", which means that EAP won't work,
- # as it does not supply a plain-text password.
- #
- # We do NOT recommend using this. LDAP servers are databases.
- # They are NOT authentication servers. FreeRADIUS is an
- # authentication server, and knows what to do with authentication.
- # LDAP servers do not.
- #
- # Auth-Type LDAP {
- # ldap
- # }
- #
- # Allow EAP authentication.
- eap
- #
- # The older configurations sent a number of attributes in
- # Access-Challenge packets, which wasn't strictly correct.
- # If you want to filter out these attributes, uncomment
- # the following lines.
- #
- # Auth-Type eap {
- # eap {
- # handled = 1
- # }
- # if (handled && (Response-Packet-Type == Access-Challenge)) {
- # attr_filter.access_challenge.post-auth
- # handled # override the "updated" code from attr_filter
- # }
- # }
- }
- #
- # Pre-accounting. Decide which accounting type to use.
- #
- preacct {
- preprocess
- #
- # Merge Acct-[Input|Output]-Gigawords and Acct-[Input-Output]-Octets
- # into a single 64bit counter Acct-[Input|Output]-Octets64.
- #
- # acct_counters64
- #
- # Session start times are *implied* in RADIUS.
- # The NAS never sends a "start time". Instead, it sends
- # a start packet, *possibly* with an Acct-Delay-Time.
- # The server is supposed to conclude that the start time
- # was "Acct-Delay-Time" seconds in the past.
- #
- # The code below creates an explicit start time, which can
- # then be used in other modules. It will be *mostly* correct.
- # Any errors are due to the 1-second resolution of RADIUS,
- # and the possibility that the time on the NAS may be off.
- #
- # The start time is: NOW - delay - session_length
- #
- # update request {
- # &FreeRADIUS-Acct-Session-Start-Time = "%{expr: %l - %{%{Acct-Session-Time}:-0} - %{%{Acct-Delay-Time}:-0}}"
- # }
- #
- # Ensure that we have a semi-unique identifier for every
- # request, and many NAS boxes are broken.
- acct_unique
- #
- # Look for IPASS-style 'realm/', and if not found, look for
- # '@realm', and decide whether or not to proxy, based on
- # that.
- #
- # Accounting requests are generally proxied to the same
- # home server as authentication requests.
- # IPASS
- suffix
- # ntdomain
- #
- # Read the 'acct_users' file
- files
- }
- #
- # Accounting. Log the accounting data.
- #
- accounting {
- # Update accounting packet by adding the CUI attribute
- # recorded from the corresponding Access-Accept
- # use it only if your NAS boxes do not support CUI themselves
- # cui
- #
- # Create a 'detail'ed log of the packets.
- # Note that accounting requests which are proxied
- # are also logged in the detail file.
- detail
- # daily
- # Update the wtmp file
- #
- # If you don't use "radlast", you can delete this line.
- unix
- #
- # For Simultaneous-Use tracking.
- #
- # Due to packet losses in the network, the data here
- # may be incorrect. There is little we can do about it.
- radutmp
- # sradutmp
- # Return an address to the IP Pool when we see a stop record.
- # sqlippool
- #
- # Log traffic to an SQL database.
- #
- # See "Accounting queries" in mods-available/sql
- -sql
- #
- # If you receive stop packets with zero session length,
- # they will NOT be logged in the database. The SQL module
- # will print a message (only in debugging mode), and will
- # return "noop".
- #
- # You can ignore these packets by uncommenting the following
- # three lines. Otherwise, the server will not respond to the
- # accounting request, and the NAS will retransmit.
- #
- # if (noop) {
- # ok
- # }
- # Cisco VoIP specific bulk accounting
- # pgsql-voip
- # For Exec-Program and Exec-Program-Wait
- exec
- # Filter attributes from the accounting response.
- attr_filter.accounting_response
- #
- # See "Autz-Type Status-Server" for how this works.
- #
- # Acct-Type Status-Server {
- #
- # }
- }
- # Session database, used for checking Simultaneous-Use. Either the radutmp
- # or rlm_sql module can handle this.
- # The rlm_sql module is *much* faster
- session {
- # radutmp
- #
- # See "Simultaneous Use Checking Queries" in mods-available/sql
- sql
- }
- # Post-Authentication
- # Once we KNOW that the user has been authenticated, there are
- # additional steps we can take.
- post-auth {
- #
- # If you need to have a State attribute, you can
- # add it here. e.g. for later CoA-Request with
- # State, and Service-Type = Authorize-Only.
- #
- # if (!&reply:State) {
- # update reply {
- # State := "0x%{randstr:16h}"
- # }
- # }
- #
- # For EAP-TTLS and PEAP, add the cached attributes to the reply.
- # The "session-state" attributes are automatically cached when
- # an Access-Challenge is sent, and automatically retrieved
- # when an Access-Request is received.
- #
- # The session-state attributes are automatically deleted after
- # an Access-Reject or Access-Accept is sent.
- #
- # If both session-state and reply contain a User-Name attribute, remove
- # the one in the reply if it is just a copy of the one in the request, so
- # we don't end up with two User-Name attributes.
- if (session-state:User-Name && reply:User-Name && request:User-Name && (reply:User-Name == request:User-Name)) {
- update reply {
- &User-Name !* ANY
- }
- }
- update {
- &reply: += &session-state:
- }
- # Refresh leases when we see a start or alive. Return an address to
- # the IP Pool when we see a stop record.
- # sqlippool
- # Create the CUI value and add the attribute to Access-Accept.
- # Uncomment the line below if *returning* the CUI.
- # cui
- # Create empty accounting session to make simultaneous check
- # more robust. See the accounting queries configuration in
- # raddb/mods-config/sql/main/*/queries.conf for details.
- #
- # The "sql_session_start" policy is defined in
- # raddb/policy.d/accounting. See that file for more details.
- # sql_session_start
- #
- # If you want to have a log of authentication replies,
- # un-comment the following line, and enable the
- # 'detail reply_log' module.
- # reply_log
- #
- # After authenticating the user, do another SQL query.
- #
- # See "Authentication Logging Queries" in mods-available/sql
- -sql
- #
- # Un-comment the following if you want to modify the user's object
- # in LDAP after a successful login.
- #
- # ldap
- # For Exec-Program and Exec-Program-Wait
- exec
- #
- # Calculate the various WiMAX keys. In order for this to work,
- # you will need to define the WiMAX NAI, usually via
- #
- # update request {
- # &WiMAX-MN-NAI = "%{User-Name}"
- # }
- #
- # If you want various keys to be calculated, you will need to
- # update the reply with "template" values. The module will see
- # this, and replace the template values with the correct ones
- # taken from the cryptographic calculations. e.g.
- #
- # update reply {
- # &WiMAX-FA-RK-Key = 0x00
- # &WiMAX-MSK = "%{reply:EAP-MSK}"
- # }
- #
- # You may want to delete the MS-MPPE-*-Keys from the reply,
- # as some WiMAX clients behave badly when those attributes
- # are included. See "raddb/modules/wimax", configuration
- # entry "delete_mppe_keys" for more information.
- #
- # wimax
- # If there is a client certificate (EAP-TLS, sometimes PEAP
- # and TTLS), then some attributes are filled out after the
- # certificate verification has been performed. These fields
- # MAY be available during the authentication, or they may be
- # available only in the "post-auth" section.
- #
- # The first set of attributes contains information about the
- # issuing certificate which is being used. The second
- # contains information about the client certificate (if
- # available).
- #
- # update reply {
- # Reply-Message += "%{TLS-Cert-Serial}"
- # Reply-Message += "%{TLS-Cert-Expiration}"
- # Reply-Message += "%{TLS-Cert-Subject}"
- # Reply-Message += "%{TLS-Cert-Issuer}"
- # Reply-Message += "%{TLS-Cert-Common-Name}"
- # Reply-Message += "%{TLS-Cert-Subject-Alt-Name-Email}"
- #
- # Reply-Message += "%{TLS-Client-Cert-Serial}"
- # Reply-Message += "%{TLS-Client-Cert-Expiration}"
- # Reply-Message += "%{TLS-Client-Cert-Subject}"
- # Reply-Message += "%{TLS-Client-Cert-Issuer}"
- # Reply-Message += "%{TLS-Client-Cert-Common-Name}"
- # Reply-Message += "%{TLS-Client-Cert-Subject-Alt-Name-Email}"
- # }
- # Insert class attribute (with unique value) into response,
- # aids matching auth and acct records, and protects against duplicate
- # Acct-Session-Id. Note: Only works if the NAS has implemented
- # RFC 2865 behaviour for the class attribute, AND if the NAS
- # supports long Class attributes. Many older or cheap NASes
- # only support 16-octet Class attributes.
- # insert_acct_class
- # MacSEC requires the use of EAP-Key-Name. However, we don't
- # want to send it for all EAP sessions. Therefore, the EAP
- # modules put required data into the EAP-Session-Id attribute.
- # This attribute is never put into a request or reply packet.
- #
- # Uncomment the next few lines to copy the required data into
- # the EAP-Key-Name attribute
- # if (&reply:EAP-Session-Id) {
- # update reply {
- # EAP-Key-Name := &reply:EAP-Session-Id
- # }
- # }
- # Remove reply message if the response contains an EAP-Message
- remove_reply_message_if_eap
- #
- # Access-Reject packets are sent through the REJECT sub-section of the
- # post-auth section.
- #
- # Add the ldap module name (or instance) if you have set
- # 'edir = yes' in the ldap module configuration
- #
- # The "session-state" attributes are not available here.
- #
- Post-Auth-Type REJECT {
- # log failed authentications in SQL, too.
- -sql
- attr_filter.access_reject
- # Insert EAP-Failure message if the request was
- # rejected by policy instead of because of an
- # authentication failure
- eap
- # Remove reply message if the response contains an EAP-Message
- remove_reply_message_if_eap
- }
- #
- # Filter access challenges.
- #
- Post-Auth-Type Challenge {
- # remove_reply_message_if_eap
- # attr_filter.access_challenge.post-auth
- }
- }
- #
- # When the server decides to proxy a request to a home server,
- # the proxied request is first passed through the pre-proxy
- # stage. This stage can re-write the request, or decide to
- # cancel the proxy.
- #
- # Only a few modules currently have this method.
- #
- pre-proxy {
- # Before proxing the request add an Operator-Name attribute identifying
- # if the operator-name is found for this client.
- # No need to uncomment this if you have already enabled this in
- # the authorize section.
- # operator-name
- # The client requests the CUI by sending a CUI attribute
- # containing one zero byte.
- # Uncomment the line below if *requesting* the CUI.
- # cui
- # Uncomment the following line if you want to change attributes
- # as defined in the preproxy_users file.
- # files
- # Uncomment the following line if you want to filter requests
- # sent to remote servers based on the rules defined in the
- # 'attrs.pre-proxy' file.
- # attr_filter.pre-proxy
- # If you want to have a log of packets proxied to a home
- # server, un-comment the following line, and the
- # 'detail pre_proxy_log' section, above.
- # pre_proxy_log
- }
- #
- # When the server receives a reply to a request it proxied
- # to a home server, the request may be massaged here, in the
- # post-proxy stage.
- #
- post-proxy {
- # If you want to have a log of replies from a home server,
- # un-comment the following line, and the 'detail post_proxy_log'
- # section, above.
- # post_proxy_log
- # Uncomment the following line if you want to filter replies from
- # remote proxies based on the rules defined in the 'attrs' file.
- # attr_filter.post-proxy
- #
- # If you are proxying LEAP, you MUST configure the EAP
- # module, and you MUST list it here, in the post-proxy
- # stage.
- #
- # You MUST also use the 'nostrip' option in the 'realm'
- # configuration. Otherwise, the User-Name attribute
- # in the proxied request will not match the user name
- # hidden inside of the EAP packet, and the end server will
- # reject the EAP request.
- #
- eap
- #
- # If the server tries to proxy a request and fails, then the
- # request is processed through the modules in this section.
- #
- # The main use of this section is to permit robust proxying
- # of accounting packets. The server can be configured to
- # proxy accounting packets as part of normal processing.
- # Then, if the home server goes down, accounting packets can
- # be logged to a local "detail" file, for processing with
- # radrelay. When the home server comes back up, radrelay
- # will read the detail file, and send the packets to the
- # home server.
- #
- # See the "mods-available/detail.example.com" file for more
- # details on writing a detail file specifically for one
- # destination.
- #
- # See the "sites-available/robust-proxy-accounting" virtual
- # server for more details on reading this "detail" file.
- #
- # With this configuration, the server always responds to
- # Accounting-Requests from the NAS, but only writes
- # accounting packets to disk if the home server is down.
- #
- # Post-Proxy-Type Fail-Accounting {
- # detail.example.com
- # }
- }
- }
- </code>
- /etc/freeradius/3.0/mods-config/sql/main/mysql/queries.conf
- <code># -*- text -*-
- #
- # main/mysql/queries.conf-- MySQL configuration for default schema (schema.sql)
- #
- # $Id: 51560a71ed819a95bc0f5ccc352efe69e374f7c5 $
- # Use the driver specific SQL escape method.
- #
- # If you enable this configuration item, the "safe_characters"
- # configuration is ignored. FreeRADIUS then uses the MySQL escape
- # functions to escape input strings. The only downside to making this
- # change is that the MySQL escaping method is not the same the one
- # used by FreeRADIUS. So characters which are NOT in the
- # "safe_characters" list will now be stored differently in the database.
- #
- #auto_escape = yes
- # Safe characters list for sql queries. Everything else is replaced
- # with their mime-encoded equivalents.
- # The default list should be ok
- # Using 'auto_escape' is preferred
- safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
- #######################################################################
- # Connection config
- #######################################################################
- # The character set is not configurable. The default character set of
- # the mysql client library is used. To control the character set,
- # create/edit my.cnf (typically in /etc/mysql/my.cnf or /etc/my.cnf)
- # and enter
- # [client]
- # default-character-set = utf8
- #
- #######################################################################
- # Query config: Username
- #######################################################################
- # This is the username that will get substituted, escaped, and added
- # as attribute 'SQL-User-Name'. '%{SQL-User-Name}' should be used below
- # everywhere a username substitution is needed so you you can be sure
- # the username passed from the client is escaped properly.
- #
- # Uncomment the next line, if you want the sql_user_name to mean:
- #
- # Use Stripped-User-Name, if it's there.
- # Else use User-Name, if it's there,
- # Else use hard-coded string "DEFAULT" as the user name.
- #sql_user_name = "%{%{Stripped-User-Name}:-%{%{User-Name}:-DEFAULT}}"
- #
- sql_user_name = "%{User-Name}"
- #######################################################################
- # Query config: Event-Timestamp
- #######################################################################
- # event_timestamp_epoch is the basis for the time inserted into
- # accounting records. Typically this will be the Event-Timestamp of the
- # accounting request, which is usually provided by a NAS.
- #
- # Uncomment the next line, if you want the timestamp to be based on the
- # request reception time recorded by this server, for example if you
- # distrust the provided Event-Timestamp.
- #event_timestamp_epoch = "%l"
- event_timestamp_epoch = "%{%{integer:Event-Timestamp}:-%l}"
- # event_timestamp is the SQL snippet for converting an epoch timestamp
- # to an SQL date.
- event_timestamp = "FROM_UNIXTIME(${event_timestamp_epoch})"
- #######################################################################
- # Default profile
- #######################################################################
- # This is the default profile. It is found in SQL by group membership.
- # That means that this profile must be a member of at least one group
- # which will contain the corresponding check and reply items.
- # This profile will be queried in the authorize section for every user.
- # The point is to assign all users a default profile without having to
- # manually add each one to a group that will contain the profile.
- # The SQL module will also honor the User-Profile attribute. This
- # attribute can be set anywhere in the authorize section (ie the users
- # file). It is found exactly as the default profile is found.
- # If it is set then it will *overwrite* the default profile setting.
- # The idea is to select profiles based on checks on the incoming packets,
- # not on user group membership. For example:
- # -- users file --
- # DEFAULT Service-Type == Outbound-User, User-Profile := "outbound"
- # DEFAULT Service-Type == Framed-User, User-Profile := "framed"
- #
- # By default the default_user_profile is not set
- #
- default_user_profile = "DEFAULT"
- #######################################################################
- # NAS Query
- #######################################################################
- # This query retrieves the radius clients
- #
- # 0. Row ID (currently unused)
- # 1. Name (or IP address)
- # 2. Shortname
- # 3. Type
- # 4. Secret
- # 5. Server
- #######################################################################
- client_query = "\
- SELECT id, nasname, shortname, type, secret, server \
- FROM ${client_table}"
- #######################################################################
- # Authorization Queries
- #######################################################################
- # These queries compare the check items for the user
- # in ${authcheck_table} and setup the reply items in
- # ${authreply_table}. You can use any query/tables
- # you want, but the return data for each row MUST
- # be in the following order:
- #
- # 0. Row ID (currently unused)
- # 1. UserName/GroupName
- # 2. Item Attr Name
- # 3. Item Attr Value
- # 4. Item Attr Operation
- #######################################################################
- # Use these for case sensitive usernames.
- #authorize_check_query = "\
- # SELECT id, username, attribute, value, op \
- # FROM ${authcheck_table} \
- # WHERE username = BINARY '%{SQL-User-Name}' \
- # ORDER BY id"
- #authorize_reply_query = "\
- # SELECT id, username, attribute, value, op \
- # FROM ${authreply_table} \
- # WHERE username = BINARY '%{SQL-User-Name}' \
- # ORDER BY id"
- #
- # The default queries are case insensitive. (for compatibility with
- # older versions of FreeRADIUS)
- #
- authorize_check_query = "\
- SELECT id, username, attribute, value, op \
- FROM ${authcheck_table} \
- WHERE username = '%{SQL-User-Name}' \
- ORDER BY id"
- authorize_reply_query = "\
- SELECT id, username, attribute, value, op \
- FROM ${authreply_table} \
- WHERE username = '%{SQL-User-Name}' \
- ORDER BY id"
- #
- # Use these for case sensitive usernames.
- #
- #group_membership_query = "\
- # SELECT groupname \
- # FROM ${usergroup_table} \
- # WHERE username = BINARY '%{SQL-User-Name}' \
- # ORDER BY priority"
- group_membership_query = "\
- SELECT groupname \
- FROM ${usergroup_table} \
- WHERE username = '%{SQL-User-Name}' \
- ORDER BY priority"
- authorize_group_check_query = "\
- SELECT id, groupname, attribute, \
- Value, op \
- FROM ${groupcheck_table} \
- WHERE groupname = '%{${group_attribute}}' \
- ORDER BY id"
- authorize_group_reply_query = "\
- SELECT id, groupname, attribute, \
- value, op \
- FROM ${groupreply_table} \
- WHERE groupname = '%{${group_attribute}}' \
- ORDER BY id"
- #######################################################################
- # Simultaneous Use Checking Queries
- #######################################################################
- # simul_count_query - query for the number of current connections
- # - If this is not defined, no simultaneous use checking
- # - will be performed by this module instance
- # simul_verify_query - query to return details of current connections
- # for verification
- # - Leave blank or commented out to disable verification step
- # - Note that the returned field order should not be changed.
- #######################################################################
- simul_count_query = "\
- SELECT COUNT(*) \
- FROM ${acct_table1} \
- WHERE username = '%{SQL-User-Name}' \
- AND acctstoptime IS NULL"
- simul_verify_query = "\
- SELECT \
- radacctid, acctsessionid, username, nasipaddress, nasportid, framedipaddress, \
- callingstationid, framedprotocol \
- FROM ${acct_table1} \
- WHERE username = '%{SQL-User-Name}' \
- AND acctstoptime IS NULL"
- #######################################################################
- # Accounting and Post-Auth Queries
- #######################################################################
- # These queries insert/update accounting and authentication records.
- # The query to use is determined by the value of 'reference'.
- # This value is used as a configuration path and should resolve to one
- # or more 'query's. If reference points to multiple queries, and a query
- # fails, the next query is executed.
- #
- # Behaviour is identical to the old 1.x/2.x module, except we can now
- # fail between N queries, and query selection can be based on any
- # combination of attributes, or custom 'Acct-Status-Type' values.
- #######################################################################
- accounting {
- reference = "%{tolower:type.%{%{Acct-Status-Type}:-%{Request-Processing-Stage}}.query}"
- # Write SQL queries to a logfile. This is potentially useful for bulk inserts
- # when used with the rlm_sql_null driver.
- # logfile = ${logdir}/accounting.sql
- column_list = "\
- acctsessionid, acctuniqueid, username, \
- realm, nasipaddress, nasportid, \
- nasporttype, acctstarttime, acctupdatetime, \
- acctstoptime, acctsessiontime, acctauthentic, \
- connectinfo_start, connectinfo_stop, acctinputoctets, \
- acctoutputoctets, calledstationid, callingstationid, \
- acctterminatecause, servicetype, framedprotocol, \
- framedipaddress, framedipv6address, framedipv6prefix, \
- framedinterfaceid, delegatedipv6prefix"
- type {
- accounting-on {
- #
- # Bulk terminate all sessions associated with a given NAS
- #
- query = "\
- UPDATE ${....acct_table1} \
- SET \
- acctstoptime = ${....event_timestamp}, \
- acctsessiontime = '${....event_timestamp_epoch}' \
- - UNIX_TIMESTAMP(acctstarttime), \
- acctterminatecause = '%{%{Acct-Terminate-Cause}:-NAS-Reboot}' \
- WHERE acctstoptime IS NULL \
- AND nasipaddress = '%{NAS-IP-Address}' \
- AND acctstarttime <= ${....event_timestamp}"
- }
- accounting-off {
- query = "${..accounting-on.query}"
- }
- #
- # Implement the "sql_session_start" policy.
- # See raddb/policy.d/accounting for more details.
- #
- # You also need to fix the other queries as
- # documented below. Look for "sql_session_start".
- #
- post-auth {
- query = "\
- INSERT INTO ${....acct_table1} \
- (${...column_list}) \
- VALUES(\
- '%{Acct-Session-Id}', \
- '%{Acct-Unique-Session-Id}', \
- '%{SQL-User-Name}', \
- '%{Realm}', \
- '%{%{NAS-IPv6-Address}:-%{NAS-IP-Address}}', \
- NULLIF('%{%{NAS-Port-ID}:-%{NAS-Port}}', ''), \
- '%{NAS-Port-Type}', \
- ${....event_timestamp}, \
- NULL, \
- NULL, \
- 0, \
- '', \
- '%{Connect-Info}', \
- NULL, \
- 0, \
- 0, \
- '%{Called-Station-Id}', \
- '%{Calling-Station-Id}', \
- '', \
- '%{Service-Type}', \
- NULL, \
- '', \
- '', \
- '', \
- '', \
- '')"
- query = "\
- UPDATE ${....acct_table1} SET \
- AcctStartTime = ${....event_timestamp}, \
- AcctUpdateTime = ${....event_timestamp}, \
- ConnectInfo_start = '%{Connect-Info}', \
- AcctSessionId = '%{Acct-Session-Id}' \
- WHERE UserName = '%{SQL-User-Name}' \
- AND NASIPAddress = '%{%{NAS-IPv6-Address}:-%{NAS-IP-Address}}' \
- AND NASPortId = '%{%{NAS-Port-ID}:-%{NAS-Port}}' \
- AND NASPortType = '%{NAS-Port-Type}' \
- AND AcctStopTime IS NULL"
- }
- start {
- #
- # Insert a new record into the sessions table
- #
- query = "\
- INSERT INTO ${....acct_table1} \
- (${...column_list}) \
- VALUES \
- ('%{Acct-Session-Id}', \
- '%{Acct-Unique-Session-Id}', \
- '%{SQL-User-Name}', \
- '%{Realm}', \
- '%{NAS-IP-Address}', \
- '%{%{NAS-Port-ID}:-%{NAS-Port}}', \
- '%{NAS-Port-Type}', \
- ${....event_timestamp}, \
- ${....event_timestamp}, \
- NULL, \
- '0', \
- '%{Acct-Authentic}', \
- '%{Connect-Info}', \
- '', \
- '0', \
- '0', \
- '%{Called-Station-Id}', \
- '%{Calling-Station-Id}', \
- '', \
- '%{Service-Type}', \
- '%{Framed-Protocol}', \
- '%{Framed-IP-Address}', \
- '%{Framed-IPv6-Address}', \
- '%{Framed-IPv6-Prefix}', \
- '%{Framed-Interface-Id}', \
- '%{Delegated-IPv6-Prefix}')"
- #
- # When using "sql_session_start", you should comment out
- # the previous query, and enable this one.
- #
- # Just change the previous query to "-query",
- # and this one to "query". The previous one
- # will be ignored, and this one will be
- # enabled.
- #
- -query = "\
- UPDATE ${....acct_table1} \
- SET \
- AcctSessionId = '%{Acct-Session-Id}', \
- AcctUniqueId = '%{Acct-Unique-Session-Id}', \
- AcctAuthentic = '%{Acct-Authentic}', \
- ConnectInfo_start = '%{Connect-Info}', \
- ServiceType = '%{Service-Type}', \
- FramedProtocol = '%{Framed-Protocol}', \
- framedipaddress = '%{Framed-IP-Address}', \
- framedipv6address = '%{Framed-IPv6-Address}', \
- framedipv6prefix = '%{Framed-IPv6-Prefix}', \
- framedinterfaceid = '%{Framed-Interface-Id}', \
- delegatedipv6prefix = '%{Delegated-IPv6-Prefix}', \
- AcctStartTime = ${....event_timestamp}, \
- AcctUpdateTime = ${....event_timestamp} \
- WHERE UserName = '%{SQL-User-Name}' \
- AND NASIPAddress = '%{%{NAS-IPv6-Address}:-%{NAS-IP-Address}}' \
- AND NASPortId = '%{%{NAS-Port-ID}:-%{NAS-Port}}' \
- AND NASPortType = '%{NAS-Port-Type}' \
- AND AcctStopTime IS NULL"
- #
- # Key constraints prevented us from inserting a new session,
- # use the alternate query to update an existing session.
- #
- query = "\
- UPDATE ${....acct_table1} SET \
- acctstarttime = ${....event_timestamp}, \
- acctupdatetime = ${....event_timestamp}, \
- connectinfo_start = '%{Connect-Info}' \
- WHERE AcctUniqueId = '%{Acct-Unique-Session-Id}'"
- }
- interim-update {
- #
- # Update an existing session and calculate the interval
- # between the last data we received for the session and this
- # update. This can be used to find stale sessions.
- #
- query = "\
- UPDATE ${....acct_table1} \
- SET \
- acctupdatetime = (@acctupdatetime_old:=acctupdatetime), \
- acctupdatetime = ${....event_timestamp}, \
- acctinterval = ${....event_timestamp_epoch} - \
- UNIX_TIMESTAMP(@acctupdatetime_old), \
- framedipaddress = '%{Framed-IP-Address}', \
- framedipv6address = '%{Framed-IPv6-Address}', \
- framedipv6prefix = '%{Framed-IPv6-Prefix}', \
- framedinterfaceid = '%{Framed-Interface-Id}', \
- delegatedipv6prefix = '%{Delegated-IPv6-Prefix}', \
- 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}'"
- #
- # The update condition matched no existing sessions. Use
- # the values provided in the update to create a new session.
- #
- query = "\
- INSERT INTO ${....acct_table1} \
- (${...column_list}) \
- 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(${....event_timestamp_epoch} - %{%{Acct-Session-Time}:-0}), \
- ${....event_timestamp}, \
- NULL, \
- %{%{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}', \
- '', \
- '%{Service-Type}', \
- '%{Framed-Protocol}', \
- '%{Framed-IP-Address}', \
- '%{Framed-IPv6-Address}', \
- '%{Framed-IPv6-Prefix}', \
- '%{Framed-Interface-Id}', \
- '%{Delegated-IPv6-Prefix}')"
- #
- # When using "sql_session_start", you should comment out
- # the previous query, and enable this one.
- #
- # Just change the previous query to "-query",
- # and this one to "query". The previous one
- # will be ignored, and this one will be
- # enabled.
- #
- -query = "\
- UPDATE ${....acct_table1} \
- SET \
- AcctSessionId = '%{Acct-Session-Id}', \
- AcctUniqueId = '%{Acct-Unique-Session-Id}', \
- AcctAuthentic = '%{Acct-Authentic}', \
- ConnectInfo_start = '%{Connect-Info}', \
- ServiceType = '%{Service-Type}', \
- FramedProtocol = '%{Framed-Protocol}', \
- framedipaddress = '%{Framed-IP-Address}', \
- framedipv6address = '%{Framed-IPv6-Address}', \
- framedipv6prefix = '%{Framed-IPv6-Prefix}', \
- framedinterfaceid = '%{Framed-Interface-Id}', \
- delegatedipv6prefix = '%{Delegated-IPv6-Prefix}', \
- AcctUpdateTime = ${....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}' \
- WHERE UserName = '%{SQL-User-Name}' \
- AND NASIPAddress = '%{%{NAS-IPv6-Address}:-%{NAS-IP-Address}}' \
- AND NASPortId = '%{%{NAS-Port-ID}:-%{NAS-Port}}' \
- AND NASPortType = '%{NAS-Port-Type}' \
- AND AcctStopTime IS NULL"
- }
- stop {
- #
- # Session has terminated, update the stop time and statistics.
- #
- query = "\
- UPDATE ${....acct_table2} SET \
- acctstoptime = ${....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}'"
- #
- # The update condition matched no existing sessions. Use
- # the values provided in the update to create a new session.
- #
- query = "\
- INSERT INTO ${....acct_table2} \
- (${...column_list}) \
- 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(${....event_timestamp_epoch} - %{%{Acct-Session-Time}:-0}), \
- ${....event_timestamp}, \
- ${....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}', \
- '%{Framed-IPv6-Address}', \
- '%{Framed-IPv6-Prefix}', \
- '%{Framed-Interface-Id}', \
- '%{Delegated-IPv6-Prefix}')"
- #
- # When using "sql_session_start", you should comment out
- # the previous query, and enable this one.
- #
- # Just change the previous query to "-query",
- # and this one to "query". The previous one
- # will be ignored, and this one will be
- # enabled.
- #
- -query = "\
- UPDATE ${....acct_table1} \
- SET \
- AcctSessionId = '%{Acct-Session-Id}', \
- AcctUniqueId = '%{Acct-Unique-Session-Id}', \
- AcctAuthentic = '%{Acct-Authentic}', \
- ConnectInfo_start = '%{Connect-Info}', \
- ServiceType = '%{Service-Type}', \
- FramedProtocol = '%{Framed-Protocol}', \
- framedipaddress = '%{Framed-IP-Address}', \
- framedipv6address = '%{Framed-IPv6-Address}', \
- framedipv6prefix = '%{Framed-IPv6-Prefix}', \
- framedinterfaceid = '%{Framed-Interface-Id}', \
- delegatedipv6prefix = '%{Delegated-IPv6-Prefix}', \
- AcctStopTime = ${....event_timestamp}, \
- AcctUpdateTime = ${....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 UserName = '%{SQL-User-Name}' \
- AND NASIPAddress = '%{%{NAS-IPv6-Address}:-%{NAS-IP-Address}}' \
- AND NASPortId = '%{%{NAS-Port-ID}:-%{NAS-Port}}' \
- AND NASPortType = '%{NAS-Port-Type}' \
- AND AcctStopTime IS NULL"
- }
- #
- # No Acct-Status-Type == ignore the packet
- #
- accounting {
- query = "SELECT true"
- }
- }
- }
- #######################################################################
- # Authentication Logging Queries
- #######################################################################
- # postauth_query - Insert some info after authentication
- #######################################################################
- post-auth {
- # Write SQL queries to a logfile. This is potentially useful for bulk inserts
- # when used with the rlm_sql_null driver.
- # logfile = ${logdir}/post-auth.sql
- query = "\
- INSERT INTO ${..postauth_table} \
- (username, pass, reply, authdate) \
- VALUES ( \
- '%{SQL-User-Name}', \
- '%{%{User-Password}:-%{Chap-Password}}', \
- '%{reply:Packet-Type}', \
- '%S.%M')"
- }
- </code>
- /etc/freeradius/3.0/mods-config/sql/main/sqlite/schema.sql
- <code>-----------------------------------------------------------------------------
- -- $Id: 919687de64f6074868eeff31cdfbfb01b3dbeda2 $ --
- -- --
- -- schema.sql rlm_sql - FreeRADIUS SQLite Module --
- -- --
- -- Database schema for SQLite rlm_sql module --
- -- --
- -----------------------------------------------------------------------------
- --
- -- Table structure for table 'radacct'
- --
- CREATE TABLE IF NOT EXISTS radacct (
- radacctid INTEGER PRIMARY KEY AUTOINCREMENT,
- acctsessionid varchar(64) NOT NULL default '',
- acctuniqueid varchar(32) NOT NULL default '',
- username varchar(64) NOT NULL default '',
- realm varchar(64) default '',
- nasipaddress varchar(15) NOT NULL default '',
- nasportid varchar(32) default NULL,
- nasporttype varchar(32) default NULL,
- acctstarttime datetime NULL default NULL,
- acctupdatetime datetime NULL default NULL,
- acctstoptime datetime NULL default NULL,
- acctinterval int(12) default NULL,
- acctsessiontime int(12) default NULL,
- acctauthentic varchar(32) default NULL,
- connectinfo_start varchar(50) default NULL,
- connectinfo_stop varchar(50) default NULL,
- acctinputoctets bigint(20) default NULL,
- acctoutputoctets bigint(20) default NULL,
- calledstationid varchar(50) NOT NULL default '',
- callingstationid varchar(50) NOT NULL default '',
- acctterminatecause varchar(32) NOT NULL default '',
- servicetype varchar(32) default NULL,
- framedprotocol varchar(32) default NULL,
- framedipaddress varchar(15) NOT NULL default '',
- framedipv6address varchar(45) NOT NULL default '',
- framedipv6prefix varchar(45) NOT NULL default '',
- framedinterfaceid varchar(44) NOT NULL default '',
- delegatedipv6prefix varchar(45) NOT NULL default ''
- );
- CREATE UNIQUE INDEX acctuniqueid ON radacct(acctuniqueid);
- CREATE INDEX username ON radacct(username);
- CREATE INDEX framedipaddress ON radacct (framedipaddress);
- CREATE INDEX framedipv6address ON radacct (framedipv6address);
- CREATE INDEX framedipv6prefix ON radacct (framedipv6prefix);
- CREATE INDEX framedinterfaceid ON radacct (framedinterfaceid);
- CREATE INDEX delegatedipv6prefix ON radacct (delegatedipv6prefix);
- CREATE INDEX acctsessionid ON radacct(acctsessionid);
- CREATE INDEX acctsessiontime ON radacct(acctsessiontime);
- CREATE INDEX acctstarttime ON radacct(acctstarttime);
- CREATE INDEX acctinterval ON radacct(acctinterval);
- CREATE INDEX acctstoptime ON radacct(acctstoptime);
- CREATE INDEX nasipaddress ON radacct(nasipaddress);
- --
- -- Table structure for table 'radcheck'
- --
- CREATE TABLE IF NOT EXISTS radcheck (
- id INTEGER PRIMARY KEY AUTOINCREMENT,
- username varchar(64) NOT NULL default '',
- attribute varchar(64) NOT NULL default '',
- op char(2) NOT NULL DEFAULT '==',
- value varchar(253) NOT NULL default ''
- );
- CREATE INDEX check_username ON radcheck(username);
- --
- -- Table structure for table 'radgroupcheck'
- --
- CREATE TABLE IF NOT EXISTS radgroupcheck (
- id INTEGER PRIMARY KEY AUTOINCREMENT,
- groupname varchar(64) NOT NULL default '',
- attribute varchar(64) NOT NULL default '',
- op char(2) NOT NULL DEFAULT '==',
- value varchar(253) NOT NULL default ''
- );
- CREATE INDEX check_groupname ON radgroupcheck(groupname);
- --
- -- Table structure for table 'radgroupreply'
- --
- CREATE TABLE IF NOT EXISTS radgroupreply (
- id INTEGER PRIMARY KEY AUTOINCREMENT,
- groupname varchar(64) NOT NULL default '',
- attribute varchar(64) NOT NULL default '',
- op char(2) NOT NULL DEFAULT '=',
- value varchar(253) NOT NULL default ''
- );
- CREATE INDEX reply_groupname ON radgroupreply(groupname);
- --
- -- Table structure for table 'radreply'
- --
- CREATE TABLE IF NOT EXISTS radreply (
- id INTEGER PRIMARY KEY AUTOINCREMENT,
- username varchar(64) NOT NULL default '',
- attribute varchar(64) NOT NULL default '',
- op char(2) NOT NULL DEFAULT '=',
- value varchar(253) NOT NULL default ''
- );
- CREATE INDEX reply_username ON radreply(username);
- --
- -- Table structure for table 'radusergroup'
- --
- CREATE TABLE IF NOT EXISTS radusergroup (
- id INTEGER PRIMARY KEY AUTOINCREMENT,
- username varchar(64) NOT NULL default '',
- groupname varchar(64) NOT NULL default '',
- priority int(11) NOT NULL default '1'
- );
- CREATE INDEX usergroup_username ON radusergroup(username);
- --
- -- Table structure for table 'radpostauth'
- --
- CREATE TABLE IF NOT EXISTS radpostauth (
- id INTEGER PRIMARY KEY AUTOINCREMENT,
- username varchar(64) NOT NULL default '',
- pass varchar(64) NOT NULL default '',
- reply varchar(32) NOT NULL default '',
- authdate timestamp NOT NULL
- );
- --
- -- Table structure for table 'nas'
- --
- CREATE TABLE IF NOT EXISTS nas (
- id INTEGER PRIMARY KEY AUTOINCREMENT,
- nasname varchar(128) NOT NULL,
- shortname varchar(32),
- type varchar(30) DEFAULT 'other',
- ports int(5),
- secret varchar(60) DEFAULT 'secret' NOT NULL,
- server varchar(64),
- community varchar(50),
- description varchar(200) DEFAULT 'RADIUS Client'
- );
- CREATE INDEX nasname ON nas(nasname);
- </code>
- /etc/freeradius/3.0/sites-enabled/default
- <code>######################################################################
- #
- # As of 2.0.0, FreeRADIUS supports virtual hosts using the
- # "server" section, and configuration directives.
- #
- # Virtual hosts should be put into the "sites-available"
- # directory. Soft links should be created in the "sites-enabled"
- # directory to these files. This is done in a normal installation.
- #
- # If you are using 802.1X (EAP) authentication, please see also
- # the "inner-tunnel" virtual server. You will likely have to edit
- # that, too, for authentication to work.
- #
- # $Id: c60c0ba4c8728fac10b190dbb3b752f9df317c07 $
- #
- ######################################################################
- #
- # Read "man radiusd" before editing this file. See the section
- # titled DEBUGGING. It outlines a method where you can quickly
- # obtain the configuration you want, without running into
- # trouble. See also "man unlang", which documents the format
- # of this file.
- #
- # This configuration is designed to work in the widest possible
- # set of circumstances, with the widest possible number of
- # authentication methods. This means that in general, you should
- # need to make very few changes to this file.
- #
- # The best way to configure the server for your local system
- # is to CAREFULLY edit this file. Most attempts to make large
- # edits to this file will BREAK THE SERVER. Any edits should
- # be small, and tested by running the server with "radiusd -X".
- # Once the edits have been verified to work, save a copy of these
- # configuration files somewhere. (e.g. as a "tar" file). Then,
- # make more edits, and test, as above.
- #
- # There are many "commented out" references to modules such
- # as ldap, sql, etc. These references serve as place-holders.
- # If you need the functionality of that module, then configure
- # it in radiusd.conf, and un-comment the references to it in
- # this file. In most cases, those small changes will result
- # in the server being able to connect to the DB, and to
- # authenticate users.
- #
- ######################################################################
- server default {
- #
- # If you want the server to listen on additional addresses, or on
- # additional ports, you can use multiple "listen" sections.
- #
- # Each section make the server listen for only one type of packet,
- # therefore authentication and accounting have to be configured in
- # different sections.
- #
- # The server ignore all "listen" section if you are using '-i' and '-p'
- # on the command line.
- #
- listen {
- # Type of packets to listen for.
- # Allowed values are:
- # auth listen for authentication packets
- # acct listen for accounting packets
- # proxy IP to use for sending proxied packets
- # detail Read from the detail file. For examples, see
- # raddb/sites-available/copy-acct-to-home-server
- # status listen for Status-Server packets. For examples,
- # see raddb/sites-available/status
- # coa listen for CoA-Request and Disconnect-Request
- # packets. For examples, see the file
- # raddb/sites-available/coa
- #
- type = auth
- # Note: "type = proxy" lets you control the source IP used for
- # proxying packets, with some limitations:
- #
- # * A proxy listener CANNOT be used in a virtual server section.
- # * You should probably set "port = 0".
- # * Any "clients" configuration will be ignored.
- #
- # See also proxy.conf, and the "src_ipaddr" configuration entry
- # in the sample "home_server" section. When you specify the
- # source IP address for packets sent to a home server, the
- # proxy listeners are automatically created.
- # ipaddr/ipv4addr/ipv6addr - IP address on which to listen.
- # If multiple ones are listed, only the first one will
- # be used, and the others will be ignored.
- #
- # The configuration options accept the following syntax:
- #
- # ipv4addr - IPv4 address (e.g.192.0.2.3)
- # - wildcard (i.e. *)
- # - hostname (radius.example.com)
- # Only the A record for the host name is used.
- # If there is no A record, an error is returned,
- # and the server fails to start.
- #
- # ipv6addr - IPv6 address (e.g. 2001:db8::1)
- # - wildcard (i.e. *)
- # - hostname (radius.example.com)
- # Only the AAAA record for the host name is used.
- # If there is no AAAA record, an error is returned,
- # and the server fails to start.
- #
- # ipaddr - IPv4 address as above
- # - IPv6 address as above
- # - wildcard (i.e. *), which means IPv4 wildcard.
- # - hostname
- # If there is only one A or AAAA record returned
- # for the host name, it is used.
- # If multiple A or AAAA records are returned
- # for the host name, only the first one is used.
- # If both A and AAAA records are returned
- # for the host name, only the A record is used.
- #
- # ipv4addr = *
- # ipv6addr = *
- ipaddr = *
- # Port on which to listen.
- # Allowed values are:
- # integer port number (1812)
- # 0 means "use /etc/services for the proper port"
- port = 0
- # Some systems support binding to an interface, in addition
- # to the IP address. This feature isn't strictly necessary,
- # but for sites with many IP addresses on one interface,
- # it's useful to say "listen on all addresses for eth0".
- #
- # If your system does not support this feature, you will
- # get an error if you try to use it.
- #
- # interface = eth0
- # Per-socket lists of clients. This is a very useful feature.
- #
- # The name here is a reference to a section elsewhere in
- # radiusd.conf, or clients.conf. Having the name as
- # a reference allows multiple sockets to use the same
- # set of clients.
- #
- # If this configuration is used, then the global list of clients
- # is IGNORED for this "listen" section. Take care configuring
- # this feature, to ensure you don't accidentally disable a
- # client you need.
- #
- # See clients.conf for the configuration of "per_socket_clients".
- #
- # clients = per_socket_clients
- #
- # Set the default UDP receive buffer size. In most cases,
- # the default values set by the kernel are fine. However, in
- # some cases the NASes will send large packets, and many of
- # them at a time. It is then possible to overflow the
- # buffer, causing the kernel to drop packets before they
- # reach FreeRADIUS. Increasing the size of the buffer will
- # avoid these packet drops.
- #
- # recv_buff = 65536
- #
- # Connection limiting for sockets with "proto = tcp".
- #
- # This section is ignored for other kinds of sockets.
- #
- limit {
- #
- # Limit the number of simultaneous TCP connections to the socket
- #
- # The default is 16.
- # Setting this to 0 means "no limit"
- max_connections = 16
- # The per-socket "max_requests" option does not exist.
- #
- # The lifetime, in seconds, of a TCP connection. After
- # this lifetime, the connection will be closed.
- #
- # Setting this to 0 means "forever".
- lifetime = 0
- #
- # The idle timeout, in seconds, of a TCP connection.
- # If no packets have been received over the connection for
- # this time, the connection will be closed.
- #
- # Setting this to 0 means "no timeout".
- #
- # We STRONGLY RECOMMEND that you set an idle timeout.
- #
- idle_timeout = 30
- }
- }
- #
- # This second "listen" section is for listening on the accounting
- # port, too.
- #
- listen {
- ipaddr = *
- # ipv6addr = ::
- port = 0
- type = acct
- # interface = eth0
- # clients = per_socket_clients
- limit {
- # The number of packets received can be rate limited via the
- # "max_pps" configuration item. When it is set, the server
- # tracks the total number of packets received in the previous
- # second. If the count is greater than "max_pps", then the
- # new packet is silently discarded. This helps the server
- # deal with overload situations.
- #
- # The packets/s counter is tracked in a sliding window. This
- # means that the pps calculation is done for the second
- # before the current packet was received. NOT for the current
- # wall-clock second, and NOT for the previous wall-clock second.
- #
- # Useful values are 0 (no limit), or 100 to 10000.
- # Values lower than 100 will likely cause the server to ignore
- # normal traffic. Few systems are capable of handling more than
- # 10K packets/s.
- #
- # It is most useful for accounting systems. Set it to 50%
- # more than the normal accounting load, and you can be sure that
- # the server will never get overloaded
- #
- # max_pps = 0
- # Only for "proto = tcp". These are ignored for "udp" sockets.
- #
- # idle_timeout = 0
- # lifetime = 0
- # max_connections = 0
- }
- }
- # IPv6 versions of the above - read their full config to understand options
- listen {
- type = auth
- ipv6addr = :: # any. ::1 == localhost
- port = 0
- # interface = eth0
- # clients = per_socket_clients
- limit {
- max_connections = 16
- lifetime = 0
- idle_timeout = 30
- }
- }
- listen {
- ipv6addr = ::
- port = 0
- type = acct
- # interface = eth0
- # clients = per_socket_clients
- limit {
- # max_pps = 0
- # idle_timeout = 0
- # lifetime = 0
- # max_connections = 0
- }
- }
- # Authorization. First preprocess (hints and huntgroups files),
- # then realms, and finally look in the "users" file.
- #
- # Any changes made here should also be made to the "inner-tunnel"
- # virtual server.
- #
- # The order of the realm modules will determine the order that
- # we try to find a matching realm.
- #
- # Make *sure* that 'preprocess' comes before any realm if you
- # need to setup hints for the remote radius server
- authorize {
- #
- # Take a User-Name, and perform some checks on it, for spaces and other
- # invalid characters. If the User-Name appears invalid, reject the
- # request.
- #
- # See policy.d/filter for the definition of the filter_username policy.
- #
- filter_username
- #
- # Some broken equipment sends passwords with embedded zeros.
- # i.e. the debug output will show
- #
- # User-Password = "password\000\000"
- #
- # This policy will fix it to just be "password".
- #
- # filter_password
- #
- # The preprocess module takes care of sanitizing some bizarre
- # attributes in the request, and turning them into attributes
- # which are more standard.
- #
- # It takes care of processing the 'raddb/mods-config/preprocess/hints'
- # and the 'raddb/mods-config/preprocess/huntgroups' files.
- preprocess
- # If you intend to use CUI and you require that the Operator-Name
- # be set for CUI generation and you want to generate CUI also
- # for your local clients then uncomment the operator-name
- # below and set the operator-name for your clients in clients.conf
- # operator-name
- #
- # If you want to generate CUI for some clients that do not
- # send proper CUI requests, then uncomment the
- # cui below and set "add_cui = yes" for these clients in clients.conf
- # cui
- #
- # If you want to have a log of authentication requests,
- # un-comment the following line.
- # auth_log
- #
- # The chap module will set 'Auth-Type := CHAP' if we are
- # handling a CHAP request and Auth-Type has not already been set
- pap
- #
- # If the users are logging in with an MS-CHAP-Challenge
- # attribute for authentication, the mschap module will find
- # the MS-CHAP-Challenge attribute, and add 'Auth-Type := MS-CHAP'
- # to the request, which will cause the server to then use
- # the mschap module for authentication.
- mschap
- #
- # If you have a Cisco SIP server authenticating against
- # FreeRADIUS, uncomment the following line, and the 'digest'
- # line in the 'authenticate' section.
- digest
- #
- # The WiMAX specification says that the Calling-Station-Id
- # is 6 octets of the MAC. This definition conflicts with
- # RFC 3580, and all common RADIUS practices. Un-commenting
- # the "wimax" module here means that it will fix the
- # Calling-Station-Id attribute to the normal format as
- # specified in RFC 3580 Section 3.21
- # wimax
- #
- # Look for IPASS style 'realm/', and if not found, look for
- # '@realm', and decide whether or not to proxy, based on
- # that.
- # IPASS
- #
- # Look for realms in user@domain format
- suffix
- # ntdomain
- #
- # This module takes care of EAP-MD5, EAP-TLS, and EAP-LEAP
- # authentication.
- #
- # It also sets the EAP-Type attribute in the request
- # attribute list to the EAP type from the packet.
- #
- # The EAP module returns "ok" or "updated" if it is not yet ready
- # to authenticate the user. The configuration below checks for
- # "ok", and stops processing the "authorize" section if so.
- #
- # Any LDAP and/or SQL servers will not be queried for the
- # initial set of packets that go back and forth to set up
- # TTLS or PEAP.
- #
- # The "updated" check is commented out for compatibility with
- # previous versions of this configuration, but you may wish to
- # uncomment it as well; this will further reduce the number of
- # LDAP and/or SQL queries for TTLS or PEAP.
- #
- eap {
- ok = return
- # updated = return
- }
- #
- # Pull crypt'd passwords from /etc/passwd or /etc/shadow,
- # using the system API's to get the password. If you want
- # to read /etc/passwd or /etc/shadow directly, see the
- # mods-available/passwd module.
- #
- # unix
- #
- # Read the 'users' file. In v3, this is located in
- # raddb/mods-config/files/authorize
- files
- #
- # Look in an SQL database. The schema of the database
- # is meant to mirror the "users" file.
- #
- # See "Authorization Queries" in mods-available/sql
- -sql
- #
- # If you are using /etc/smbpasswd, and are also doing
- # mschap authentication, the un-comment this line, and
- # configure the 'smbpasswd' module.
- # smbpasswd
- #
- # The ldap module reads passwords from the LDAP database.
- -ldap
- #
- # Enforce daily limits on time spent logged in.
- # daily
- #
- expiration
- logintime
- #
- # If no other module has claimed responsibility for
- # authentication, then try to use PAP. This allows the
- # other modules listed above to add a "known good" password
- # to the request, and to do nothing else. The PAP module
- # will then see that password, and use it to do PAP
- # authentication.
- #
- # This module should be listed last, so that the other modules
- # get a chance to set Auth-Type for themselves.
- #
- pap
- #
- # If "status_server = yes", then Status-Server messages are passed
- # through the following section, and ONLY the following section.
- # This permits you to do DB queries, for example. If the modules
- # listed here return "fail", then NO response is sent.
- #
- # Autz-Type Status-Server {
- #
- # }
- }
- # Authentication.
- #
- #
- # This section lists which modules are available for authentication.
- # Note that it does NOT mean 'try each module in order'. It means
- # that a module from the 'authorize' section adds a configuration
- # attribute 'Auth-Type := FOO'. That authentication type is then
- # used to pick the appropriate module from the list below.
- #
- # In general, you SHOULD NOT set the Auth-Type attribute. The server
- # will figure it out on its own, and will do the right thing. The
- # most common side effect of erroneously setting the Auth-Type
- # attribute is that one authentication method will work, but the
- # others will not.
- #
- # The common reasons to set the Auth-Type attribute by hand
- # is to either forcibly reject the user (Auth-Type := Reject),
- # or to or forcibly accept the user (Auth-Type := Accept).
- #
- # Note that Auth-Type := Accept will NOT work with EAP.
- #
- # Please do not put "unlang" configurations into the "authenticate"
- # section. Put them in the "post-auth" section instead. That's what
- # the post-auth section is for.
- #
- authenticate {
- #
- # PAP authentication, when a back-end database listed
- # in the 'authorize' section supplies a password. The
- # password can be clear-text, or encrypted.
- Auth-Type PAP {
- pap
- }
- #
- # Most people want CHAP authentication
- # A back-end database listed in the 'authorize' section
- # MUST supply a CLEAR TEXT password. Encrypted passwords
- # won't work.
- Auth-Type CHAP {
- chap
- }
- #
- # MSCHAP authentication.
- Auth-Type MS-CHAP {
- mschap
- }
- #
- # For old names, too.
- #
- mschap
- #
- # If you have a Cisco SIP server authenticating against
- # FreeRADIUS, uncomment the following line, and the 'digest'
- # line in the 'authorize' section.
- digest
- #
- # Pluggable Authentication Modules.
- # pam
- # Uncomment it if you want to use ldap for authentication
- #
- # Note that this means "check plain-text password against
- # the ldap database", which means that EAP won't work,
- # as it does not supply a plain-text password.
- #
- # We do NOT recommend using this. LDAP servers are databases.
- # They are NOT authentication servers. FreeRADIUS is an
- # authentication server, and knows what to do with authentication.
- # LDAP servers do not.
- #
- # Auth-Type LDAP {
- # ldap
- # }
- #
- # Allow EAP authentication.
- eap
- #
- # The older configurations sent a number of attributes in
- # Access-Challenge packets, which wasn't strictly correct.
- # If you want to filter out these attributes, uncomment
- # the following lines.
- #
- # Auth-Type eap {
- # eap {
- # handled = 1
- # }
- # if (handled && (Response-Packet-Type == Access-Challenge)) {
- # attr_filter.access_challenge.post-auth
- # handled # override the "updated" code from attr_filter
- # }
- # }
- }
- #
- # Pre-accounting. Decide which accounting type to use.
- #
- preacct {
- preprocess
- #
- # Merge Acct-[Input|Output]-Gigawords and Acct-[Input-Output]-Octets
- # into a single 64bit counter Acct-[Input|Output]-Octets64.
- #
- # acct_counters64
- #
- # Session start times are *implied* in RADIUS.
- # The NAS never sends a "start time". Instead, it sends
- # a start packet, *possibly* with an Acct-Delay-Time.
- # The server is supposed to conclude that the start time
- # was "Acct-Delay-Time" seconds in the past.
- #
- # The code below creates an explicit start time, which can
- # then be used in other modules. It will be *mostly* correct.
- # Any errors are due to the 1-second resolution of RADIUS,
- # and the possibility that the time on the NAS may be off.
- #
- # The start time is: NOW - delay - session_length
- #
- # update request {
- # &FreeRADIUS-Acct-Session-Start-Time = "%{expr: %l - %{%{Acct-Session-Time}:-0} - %{%{Acct-Delay-Time}:-0}}"
- # }
- #
- # Ensure that we have a semi-unique identifier for every
- # request, and many NAS boxes are broken.
- acct_unique
- #
- # Look for IPASS-style 'realm/', and if not found, look for
- # '@realm', and decide whether or not to proxy, based on
- # that.
- #
- # Accounting requests are generally proxied to the same
- # home server as authentication requests.
- # IPASS
- suffix
- # ntdomain
- #
- # Read the 'acct_users' file
- files
- }
- #
- # Accounting. Log the accounting data.
- #
- accounting {
- # Update accounting packet by adding the CUI attribute
- # recorded from the corresponding Access-Accept
- # use it only if your NAS boxes do not support CUI themselves
- # cui
- #
- # Create a 'detail'ed log of the packets.
- # Note that accounting requests which are proxied
- # are also logged in the detail file.
- detail
- # daily
- # Update the wtmp file
- #
- # If you don't use "radlast", you can delete this line.
- unix
- #
- # For Simultaneous-Use tracking.
- #
- # Due to packet losses in the network, the data here
- # may be incorrect. There is little we can do about it.
- radutmp
- # sradutmp
- # Return an address to the IP Pool when we see a stop record.
- # sqlippool
- #
- # Log traffic to an SQL database.
- #
- # See "Accounting queries" in mods-available/sql
- -sql
- #
- # If you receive stop packets with zero session length,
- # they will NOT be logged in the database. The SQL module
- # will print a message (only in debugging mode), and will
- # return "noop".
- #
- # You can ignore these packets by uncommenting the following
- # three lines. Otherwise, the server will not respond to the
- # accounting request, and the NAS will retransmit.
- #
- # if (noop) {
- # ok
- # }
- # Cisco VoIP specific bulk accounting
- # pgsql-voip
- # For Exec-Program and Exec-Program-Wait
- exec
- # Filter attributes from the accounting response.
- attr_filter.accounting_response
- #
- # See "Autz-Type Status-Server" for how this works.
- #
- # Acct-Type Status-Server {
- #
- # }
- }
- # Session database, used for checking Simultaneous-Use. Either the radutmp
- # or rlm_sql module can handle this.
- # The rlm_sql module is *much* faster
- session {
- # radutmp
- #
- # See "Simultaneous Use Checking Queries" in mods-available/sql
- sql
- }
- # Post-Authentication
- # Once we KNOW that the user has been authenticated, there are
- # additional steps we can take.
- post-auth {
- #
- # If you need to have a State attribute, you can
- # add it here. e.g. for later CoA-Request with
- # State, and Service-Type = Authorize-Only.
- #
- # if (!&reply:State) {
- # update reply {
- # State := "0x%{randstr:16h}"
- # }
- # }
- #
- # For EAP-TTLS and PEAP, add the cached attributes to the reply.
- # The "session-state" attributes are automatically cached when
- # an Access-Challenge is sent, and automatically retrieved
- # when an Access-Request is received.
- #
- # The session-state attributes are automatically deleted after
- # an Access-Reject or Access-Accept is sent.
- #
- # If both session-state and reply contain a User-Name attribute, remove
- # the one in the reply if it is just a copy of the one in the request, so
- # we don't end up with two User-Name attributes.
- if (session-state:User-Name && reply:User-Name && request:User-Name && (reply:User-Name == request:User-Name)) {
- update reply {
- &User-Name !* ANY
- }
- }
- update {
- &reply: += &session-state:
- }
- # Refresh leases when we see a start or alive. Return an address to
- # the IP Pool when we see a stop record.
- # sqlippool
- # Create the CUI value and add the attribute to Access-Accept.
- # Uncomment the line below if *returning* the CUI.
- # cui
- # Create empty accounting session to make simultaneous check
- # more robust. See the accounting queries configuration in
- # raddb/mods-config/sql/main/*/queries.conf for details.
- #
- # The "sql_session_start" policy is defined in
- # raddb/policy.d/accounting. See that file for more details.
- # sql_session_start
- #
- # If you want to have a log of authentication replies,
- # un-comment the following line, and enable the
- # 'detail reply_log' module.
- # reply_log
- #
- # After authenticating the user, do another SQL query.
- #
- # See "Authentication Logging Queries" in mods-available/sql
- -sql
- #
- # Un-comment the following if you want to modify the user's object
- # in LDAP after a successful login.
- #
- # ldap
- # For Exec-Program and Exec-Program-Wait
- exec
- #
- # Calculate the various WiMAX keys. In order for this to work,
- # you will need to define the WiMAX NAI, usually via
- #
- # update request {
- # &WiMAX-MN-NAI = "%{User-Name}"
- # }
- #
- # If you want various keys to be calculated, you will need to
- # update the reply with "template" values. The module will see
- # this, and replace the template values with the correct ones
- # taken from the cryptographic calculations. e.g.
- #
- # update reply {
- # &WiMAX-FA-RK-Key = 0x00
- # &WiMAX-MSK = "%{reply:EAP-MSK}"
- # }
- #
- # You may want to delete the MS-MPPE-*-Keys from the reply,
- # as some WiMAX clients behave badly when those attributes
- # are included. See "raddb/modules/wimax", configuration
- # entry "delete_mppe_keys" for more information.
- #
- # wimax
- # If there is a client certificate (EAP-TLS, sometimes PEAP
- # and TTLS), then some attributes are filled out after the
- # certificate verification has been performed. These fields
- # MAY be available during the authentication, or they may be
- # available only in the "post-auth" section.
- #
- # The first set of attributes contains information about the
- # issuing certificate which is being used. The second
- # contains information about the client certificate (if
- # available).
- #
- # update reply {
- # Reply-Message += "%{TLS-Cert-Serial}"
- # Reply-Message += "%{TLS-Cert-Expiration}"
- # Reply-Message += "%{TLS-Cert-Subject}"
- # Reply-Message += "%{TLS-Cert-Issuer}"
- # Reply-Message += "%{TLS-Cert-Common-Name}"
- # Reply-Message += "%{TLS-Cert-Subject-Alt-Name-Email}"
- #
- # Reply-Message += "%{TLS-Client-Cert-Serial}"
- # Reply-Message += "%{TLS-Client-Cert-Expiration}"
- # Reply-Message += "%{TLS-Client-Cert-Subject}"
- # Reply-Message += "%{TLS-Client-Cert-Issuer}"
- # Reply-Message += "%{TLS-Client-Cert-Common-Name}"
- # Reply-Message += "%{TLS-Client-Cert-Subject-Alt-Name-Email}"
- # }
- # Insert class attribute (with unique value) into response,
- # aids matching auth and acct records, and protects against duplicate
- # Acct-Session-Id. Note: Only works if the NAS has implemented
- # RFC 2865 behaviour for the class attribute, AND if the NAS
- # supports long Class attributes. Many older or cheap NASes
- # only support 16-octet Class attributes.
- # insert_acct_class
- # MacSEC requires the use of EAP-Key-Name. However, we don't
- # want to send it for all EAP sessions. Therefore, the EAP
- # modules put required data into the EAP-Session-Id attribute.
- # This attribute is never put into a request or reply packet.
- #
- # Uncomment the next few lines to copy the required data into
- # the EAP-Key-Name attribute
- # if (&reply:EAP-Session-Id) {
- # update reply {
- # EAP-Key-Name := &reply:EAP-Session-Id
- # }
- # }
- # Remove reply message if the response contains an EAP-Message
- remove_reply_message_if_eap
- #
- # Access-Reject packets are sent through the REJECT sub-section of the
- # post-auth section.
- #
- # Add the ldap module name (or instance) if you have set
- # 'edir = yes' in the ldap module configuration
- #
- # The "session-state" attributes are not available here.
- #
- Post-Auth-Type REJECT {
- # log failed authentications in SQL, too.
- -sql
- attr_filter.access_reject
- # Insert EAP-Failure message if the request was
- # rejected by policy instead of because of an
- # authentication failure
- eap
- # Remove reply message if the response contains an EAP-Message
- remove_reply_message_if_eap
- }
- #
- # Filter access challenges.
- #
- Post-Auth-Type Challenge {
- # remove_reply_message_if_eap
- # attr_filter.access_challenge.post-auth
- }
- }
- #
- # When the server decides to proxy a request to a home server,
- # the proxied request is first passed through the pre-proxy
- # stage. This stage can re-write the request, or decide to
- # cancel the proxy.
- #
- # Only a few modules currently have this method.
- #
- pre-proxy {
- # Before proxing the request add an Operator-Name attribute identifying
- # if the operator-name is found for this client.
- # No need to uncomment this if you have already enabled this in
- # the authorize section.
- # operator-name
- # The client requests the CUI by sending a CUI attribute
- # containing one zero byte.
- # Uncomment the line below if *requesting* the CUI.
- # cui
- # Uncomment the following line if you want to change attributes
- # as defined in the preproxy_users file.
- # files
- # Uncomment the following line if you want to filter requests
- # sent to remote servers based on the rules defined in the
- # 'attrs.pre-proxy' file.
- # attr_filter.pre-proxy
- # If you want to have a log of packets proxied to a home
- # server, un-comment the following line, and the
- # 'detail pre_proxy_log' section, above.
- # pre_proxy_log
- }
- #
- # When the server receives a reply to a request it proxied
- # to a home server, the request may be massaged here, in the
- # post-proxy stage.
- #
- post-proxy {
- # If you want to have a log of replies from a home server,
- # un-comment the following line, and the 'detail post_proxy_log'
- # section, above.
- # post_proxy_log
- # Uncomment the following line if you want to filter replies from
- # remote proxies based on the rules defined in the 'attrs' file.
- # attr_filter.post-proxy
- #
- # If you are proxying LEAP, you MUST configure the EAP
- # module, and you MUST list it here, in the post-proxy
- # stage.
- #
- # You MUST also use the 'nostrip' option in the 'realm'
- # configuration. Otherwise, the User-Name attribute
- # in the proxied request will not match the user name
- # hidden inside of the EAP packet, and the end server will
- # reject the EAP request.
- #
- eap
- #
- # If the server tries to proxy a request and fails, then the
- # request is processed through the modules in this section.
- #
- # The main use of this section is to permit robust proxying
- # of accounting packets. The server can be configured to
- # proxy accounting packets as part of normal processing.
- # Then, if the home server goes down, accounting packets can
- # be logged to a local "detail" file, for processing with
- # radrelay. When the home server comes back up, radrelay
- # will read the detail file, and send the packets to the
- # home server.
- #
- # See the "mods-available/detail.example.com" file for more
- # details on writing a detail file specifically for one
- # destination.
- #
- # See the "sites-available/robust-proxy-accounting" virtual
- # server for more details on reading this "detail" file.
- #
- # With this configuration, the server always responds to
- # Accounting-Requests from the NAS, but only writes
- # accounting packets to disk if the home server is down.
- #
- # Post-Proxy-Type Fail-Accounting {
- # detail.example.com
- # }
- }
- }
- </code>
- freeradius -X
- <code> # Loading module "digest" from file /etc/freeradius/3.0/mods-enabled/digest
- # 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_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_replicate
- # Loading module "replicate" from file /etc/freeradius/3.0/mods-enabled/replicate
- # 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
- }
- # Loaded module rlm_expiration
- # Loading module "expiration" from file /etc/freeradius/3.0/mods-enabled/expiration
- # 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_unpack
- # Loading module "unpack" from file /etc/freeradius/3.0/mods-enabled/unpack
- # Loaded module rlm_pap
- # Loading module "pap" from file /etc/freeradius/3.0/mods-enabled/pap
- pap {
- normalise = yes
- }
- instantiate {
- }
- # 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_leap
- # Linked to sub-module rlm_eap_gtc
- gtc {
- challenge = "Password: "
- auth_type = "PAP"
- }
- # 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"
- cipher_server_preference = no
- ecdh_curve = "prime256v1"
- disable_tlsv1 = yes
- disable_tlsv1_1 = yes
- tls_max_version = "1.2"
- tls_min_version = "1.2"
- cache {
- enable = no
- 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
- }
- }
- Please use tls_min_version and tls_max_version instead of disable_tlsv1
- Please use tls_min_version and tls_max_version instead of disable_tlsv1_2
- # 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 = no
- use_tunneled_reply = no
- proxy_tunneled_request_as_eap = yes
- 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 "mschap" from file /etc/freeradius/3.0/mods-enabled/mschap
- rlm_mschap (mschap): using internal authentication
- # 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
- # Instantiating module "logintime" from file /etc/freeradius/3.0/mods-enabled/logintime
- # 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 "detail" from file /etc/freeradius/3.0/mods-enabled/detail
- # 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
- # 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 "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 "sql" from file /etc/freeradius/3.0/mods-enabled/sql
- rlm_sql_mysql: libmysql version: 8.0.25
- mysql {
- tls {
- tls_required = no
- check_cert = no
- check_cert_cn = no
- }
- 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 8.0.25-0ubuntu0.21.04.1, 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 8.0.25-0ubuntu0.21.04.1, 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 8.0.25-0ubuntu0.21.04.1, 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 8.0.25-0ubuntu0.21.04.1, 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 8.0.25-0ubuntu0.21.04.1, 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 192.168.1.250 (M2) to global clients list
- rlm_sql (192.168.1.250): Client "M2" (sql) added
- rlm_sql (sql): Adding client 192.168.1.66 (Pc) to global clients list
- rlm_sql (192.168.1.66): Client "Pc" (sql) added
- rlm_sql (sql): Released connection (0)
- 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 8.0.25-0ubuntu0.21.04.1, protocol version 10
- # 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 "bangpath" 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 "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 "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 "etc_passwd" from file /etc/freeradius/3.0/mods-enabled/passwd
- rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no
- # Instantiating module "expiration" from file /etc/freeradius/3.0/mods-enabled/expiration
- # 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 "pap" from file /etc/freeradius/3.0/mods-enabled/pap
- } # modules
- radiusd: #### Loading Virtual Servers ####
- server { # from file /etc/freeradius/3.0/radiusd.conf
- } # server
- server default { # from file /etc/freeradius/3.0/sites-enabled/default
- # Loading authenticate {...}
- # Loading authorize {...}
- Ignoring "ldap" (see raddb/mods-available/README.rst)
- # Loading preacct {...}
- # Loading accounting {...}
- # Loading session {...}
- # Loading post-proxy {...}
- # Loading post-auth {...}
- } # server default
- 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 {...}
- # Skipping contents of 'if' as it is always 'false' -- /etc/freeradius/3.0/sites-enabled/inner-tunnel:336
- } # server inner-tunnel
- radiusd: #### Opening IP addresses and Ports ####
- 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
- }
- }
- listen {
- type = "auth"
- ipaddr = 127.0.0.1
- port = 18120
- }
- 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 auth address 127.0.0.1 port 18120 bound to server inner-tunnel
- Listening on proxy address * port 56862
- Listening on proxy address :: port 47912
- Ready to process requests
- (0) Received Accounting-Request Id 0 from 192.168.1.250:33371 to 192.168.1.77:1813 length 91
- (0) Acct-Status-Type = Accounting-On
- (0) Acct-Authentic = RADIUS
- (0) NAS-Identifier = "NanoStation M2"
- (0) Called-Station-Id = "E0-63-DA-62-16-A5:test-free-T"
- (0) NAS-Port-Type = Wireless-802.11
- (0) Acct-Terminate-Cause = NAS-Reboot
- (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) --> e7ab440349e59649733a04748cea8efd
- (0) &Acct-Unique-Session-Id := e7ab440349e59649733a04748cea8efd
- (0) } # update request = noop
- (0) } # else = noop
- (0) } # policy acct_unique = noop
- (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/192.168.1.250/detail-20210710
- (0) 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.1.250/detail-20210710
- (0) detail: EXPAND %t
- (0) detail: --> Sat Jul 10 05:53:28 2021
- (0) [detail] = ok
- (0) [unix] = noop
- (0) radutmp: EXPAND /var/log/freeradius/radutmp
- (0) radutmp: --> /var/log/freeradius/radutmp
- (0) radutmp: NAS M2 restarted (Accounting-On packet seen)
- (0) radutmp: ERROR: Error accessing file /var/log/freeradius/radutmp: No such file or directory
- (0) [radutmp] = fail
- (0) } # accounting = fail
- (0) Not sending reply to client.
- (0) Finished request
- (0) Cleaning up request packet ID 0 with timestamp +225
- Ready to process requests
- (1) Received Access-Request Id 1 from 192.168.1.250:39211 to 192.168.1.77:1812 length 177
- (1) User-Name = "tt"
- (1) NAS-Identifier = "NanoStation M2"
- (1) Called-Station-Id = "E0-63-DA-62-16-A5:test-free-T"
- (1) NAS-Port-Type = Wireless-802.11
- (1) NAS-Port = 0
- (1) Calling-Station-Id = "24-EE-9A-1C-64-FC"
- (1) Connect-Info = "CONNECT 0Mbps 802.11b"
- (1) Acct-Session-Id = "60E9357A-00000000"
- (1) Framed-MTU = 1400
- (1) EAP-Message = 0x02690007017474
- (1) Message-Authenticator = 0xcb54df109b0a9ce2e84f32176614693e
- (1) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default
- (1) authorize {
- (1) policy filter_username {
- (1) if (&User-Name) {
- (1) if (&User-Name) -> TRUE
- (1) if (&User-Name) {
- (1) if (&User-Name =~ / /) {
- (1) if (&User-Name =~ / /) -> FALSE
- (1) if (&User-Name =~ /@[^@]*@/ ) {
- (1) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
- (1) if (&User-Name =~ /\.\./ ) {
- (1) if (&User-Name =~ /\.\./ ) -> FALSE
- (1) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
- (1) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE
- (1) if (&User-Name =~ /\.$/) {
- (1) if (&User-Name =~ /\.$/) -> FALSE
- (1) if (&User-Name =~ /@\./) {
- (1) if (&User-Name =~ /@\./) -> FALSE
- (1) } # if (&User-Name) = notfound
- (1) } # policy filter_username = notfound
- (1) [preprocess] = ok
- (1) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type
- (1) pap: WARNING: Authentication will fail unless a "known good" password is available
- (1) [pap] = noop
- (1) [mschap] = noop
- (1) [digest] = noop
- (1) suffix: Checking for suffix after "@"
- (1) suffix: No '@' in User-Name = "tt", looking up realm NULL
- (1) suffix: No such realm "NULL"
- (1) [suffix] = noop
- (1) eap: Peer sent EAP Response (code 2) ID 105 length 7
- (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 106 length 22
- (1) eap: EAP session adding &reply:State = 0x6842883268288c18
- (1) [eap] = handled
- (1) } # authenticate = handled
- (1) Using Post-Auth-Type Challenge
- (1) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
- (1) Challenge { ... } # empty sub-section is ignored
- (1) Sent Access-Challenge Id 1 from 192.168.1.77:1812 to 192.168.1.250:39211 length 0
- (1) EAP-Message = 0x016a0016041097fba8824cf013df6ac6a85398b7ac83
- (1) Message-Authenticator = 0x00000000000000000000000000000000
- (1) State = 0x6842883268288c1823d78676bb1324f8
- (1) Finished request
- Waking up in 4.9 seconds.
- (2) Received Access-Request Id 2 from 192.168.1.250:39211 to 192.168.1.77:1812 length 194
- (2) User-Name = "tt"
- (2) NAS-Identifier = "NanoStation M2"
- (2) Called-Station-Id = "E0-63-DA-62-16-A5:test-free-T"
- (2) NAS-Port-Type = Wireless-802.11
- (2) NAS-Port = 0
- (2) Calling-Station-Id = "24-EE-9A-1C-64-FC"
- (2) Connect-Info = "CONNECT 0Mbps 802.11b"
- (2) Acct-Session-Id = "60E9357A-00000000"
- (2) Framed-MTU = 1400
- (2) EAP-Message = 0x026a00060319
- (2) State = 0x6842883268288c1823d78676bb1324f8
- (2) Message-Authenticator = 0x5ca2159f25122d6415bcf21103e1b496
- (2) session-state: No cached attributes
- (2) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default
- (2) authorize {
- (2) policy filter_username {
- (2) if (&User-Name) {
- (2) if (&User-Name) -> TRUE
- (2) if (&User-Name) {
- (2) if (&User-Name =~ / /) {
- (2) if (&User-Name =~ / /) -> FALSE
- (2) if (&User-Name =~ /@[^@]*@/ ) {
- (2) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
- (2) if (&User-Name =~ /\.\./ ) {
- (2) if (&User-Name =~ /\.\./ ) -> FALSE
- (2) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
- (2) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE
- (2) if (&User-Name =~ /\.$/) {
- (2) if (&User-Name =~ /\.$/) -> FALSE
- (2) if (&User-Name =~ /@\./) {
- (2) if (&User-Name =~ /@\./) -> FALSE
- (2) } # if (&User-Name) = notfound
- (2) } # policy filter_username = notfound
- (2) [preprocess] = ok
- (2) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type
- (2) pap: WARNING: Authentication will fail unless a "known good" password is available
- (2) [pap] = noop
- (2) [mschap] = noop
- (2) [digest] = noop
- (2) suffix: Checking for suffix after "@"
- (2) suffix: No '@' in User-Name = "tt", looking up realm NULL
- (2) suffix: No such realm "NULL"
- (2) [suffix] = noop
- (2) eap: Peer sent EAP Response (code 2) ID 106 length 6
- (2) eap: No EAP Start, assuming it's an on-going EAP conversation
- (2) [eap] = updated
- (2) files: users: Matched entry DEFAULT at line 1
- (2) [files] = ok
- (2) sql: EXPAND %{User-Name}
- (2) sql: --> tt
- (2) sql: SQL-User-Name set to 'tt'
- rlm_sql (sql): Closing connection (1): Hit idle_timeout, was idle for 225 seconds
- rlm_sql_mysql: Socket destructor called, closing socket
- rlm_sql (sql): Closing connection (2): Hit idle_timeout, was idle for 225 seconds
- rlm_sql_mysql: Socket destructor called, closing socket
- rlm_sql (sql): Closing connection (3): Hit idle_timeout, was idle for 225 seconds
- rlm_sql_mysql: Socket destructor called, closing socket
- rlm_sql (sql): Closing connection (4): Hit idle_timeout, was idle for 225 seconds
- rlm_sql (sql): You probably need to lower "min"
- rlm_sql_mysql: Socket destructor called, closing socket
- rlm_sql (sql): Closing connection (0): Hit idle_timeout, was idle for 225 seconds
- rlm_sql (sql): You probably need to lower "min"
- rlm_sql_mysql: Socket destructor called, closing socket
- rlm_sql (sql): Closing connection (5): Hit idle_timeout, was idle for 225 seconds
- rlm_sql (sql): You probably need to lower "min"
- rlm_sql_mysql: Socket destructor called, closing socket
- rlm_sql (sql): 0 of 0 connections in use. You may need to increase "spare"
- rlm_sql (sql): Opening additional connection (6), 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 8.0.25-0ubuntu0.21.04.1, protocol version 10
- rlm_sql (sql): Reserved connection (6)
- (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 = 'tt' ORDER BY id
- (2) sql: Executing select query: SELECT id, username, attribute, value, op FROM radcheck WHERE username = 'tt' ORDER BY id
- (2) sql: User found in radcheck table
- (2) sql: Conditional check items matched, merging assignment check items
- (2) sql: Cleartext-Password := "tt"
- (2) sql: Simultaneous-Use := 1
- (2) sql: EXPAND SELECT id, username, attribute, value, op FROM radreply WHERE username = '%{SQL-User-Name}' ORDER BY id
- (2) sql: --> SELECT id, username, attribute, value, op FROM radreply WHERE username = 'tt' ORDER BY id
- (2) sql: Executing select query: SELECT id, username, attribute, value, op FROM radreply WHERE username = 'tt' ORDER BY id
- rlm_sql (sql): 1 of 1 connections in use. You may need to increase "spare"
- rlm_sql (sql): Opening additional connection (7), 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 8.0.25-0ubuntu0.21.04.1, protocol version 10
- rlm_sql (sql): Reserved connection (7)
- rlm_sql (sql): Released connection (7)
- Need 1 more connections to reach min connections (3)
- rlm_sql (sql): Opening additional connection (8), 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 8.0.25-0ubuntu0.21.04.1, protocol version 10
- (2) sql: EXPAND SELECT groupname FROM radusergroup WHERE username = '%{SQL-User-Name}' ORDER BY priority
- (2) sql: --> SELECT groupname FROM radusergroup WHERE username = 'tt' ORDER BY priority
- (2) sql: Executing select query: SELECT groupname FROM radusergroup WHERE username = 'tt' ORDER BY priority
- (2) sql: User not found in any groups
- (2) sql: Checking profile DEFAULT
- (2) sql: EXPAND DEFAULT
- (2) sql: --> DEFAULT
- (2) sql: SQL-User-Name set to 'DEFAULT'
- rlm_sql (sql): Reserved connection (7)
- rlm_sql (sql): Released connection (7)
- (2) sql: EXPAND SELECT groupname FROM radusergroup WHERE username = '%{SQL-User-Name}' ORDER BY priority
- (2) sql: --> SELECT groupname FROM radusergroup WHERE username = 'DEFAULT' ORDER BY priority
- (2) sql: Executing select query: SELECT groupname FROM radusergroup WHERE username = 'DEFAULT' ORDER BY priority
- (2) sql: User found in the group table
- (2) sql: EXPAND SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = '%{SQL-Group}' ORDER BY id
- (2) sql: --> SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = 'VLAN3010' ORDER BY id
- (2) sql: Executing select query: SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = 'VLAN3010' ORDER BY id
- (2) sql: Group "VLAN3010": Conditional check items matched
- (2) sql: Group "VLAN3010": Merging assignment check items
- (2) sql: EXPAND SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = '%{SQL-Group}' ORDER BY id
- (2) sql: --> SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = 'VLAN3010' ORDER BY id
- (2) sql: Executing select query: SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = 'VLAN3010' ORDER BY id
- (2) sql: Group "VLAN3010": Merging reply items
- rlm_sql (sql): Released connection (6)
- (2) [sql] = ok
- (2) [expiration] = noop
- (2) [logintime] = noop
- (2) pap: WARNING: Auth-Type already set. Not setting to PAP
- (2) [pap] = 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 0x6842883268288c18
- (2) eap: Finished EAP session with state 0x6842883268288c18
- (2) eap: Previous EAP request found for state 0x6842883268288c18, 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 TLS session
- (2) eap_peap: [eaptls start] = request
- (2) eap: Sending EAP Request (code 1) ID 107 length 6
- (2) eap: EAP session adding &reply:State = 0x6842883269299118
- (2) [eap] = handled
- (2) } # authenticate = handled
- (2) Using Post-Auth-Type Challenge
- (2) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
- (2) Challenge { ... } # empty sub-section is ignored
- (2) Sent Access-Challenge Id 2 from 192.168.1.77:1812 to 192.168.1.250:39211 length 0
- (2) EAP-Message = 0x016b00061920
- (2) Message-Authenticator = 0x00000000000000000000000000000000
- (2) State = 0x684288326929911823d78676bb1324f8
- (2) Finished request
- Waking up in 4.9 seconds.
- (3) Received Access-Request Id 3 from 192.168.1.250:39211 to 192.168.1.77:1812 length 360
- (3) User-Name = "tt"
- (3) NAS-Identifier = "NanoStation M2"
- (3) Called-Station-Id = "E0-63-DA-62-16-A5:test-free-T"
- (3) NAS-Port-Type = Wireless-802.11
- (3) NAS-Port = 0
- (3) Calling-Station-Id = "24-EE-9A-1C-64-FC"
- (3) Connect-Info = "CONNECT 0Mbps 802.11b"
- (3) Acct-Session-Id = "60E9357A-00000000"
- (3) Framed-MTU = 1400
- (3) EAP-Message = 0x026b00ac1980000000a2160303009d01000099030360e935d8a839a6839b5f9645f1a96f487b5d16c191f3f9502bfadae79b9e1be500002ac02cc02bc030c02f009f009ec024c023c028c027c00ac009c014c013009d009c003d003c0035002f000a01000046000500050100000000000a00080006001d00170018000b00020100000d001a00180804080508060401050102010403050302030202060106030023000000170000ff01000100
- (3) State = 0x684288326929911823d78676bb1324f8
- (3) Message-Authenticator = 0x7b7476565829ef722da3d01fcc94d9e0
- (3) session-state: No cached attributes
- (3) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default
- (3) authorize {
- (3) policy filter_username {
- (3) if (&User-Name) {
- (3) if (&User-Name) -> TRUE
- (3) if (&User-Name) {
- (3) if (&User-Name =~ / /) {
- (3) if (&User-Name =~ / /) -> FALSE
- (3) if (&User-Name =~ /@[^@]*@/ ) {
- (3) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
- (3) if (&User-Name =~ /\.\./ ) {
- (3) if (&User-Name =~ /\.\./ ) -> FALSE
- (3) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
- (3) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE
- (3) if (&User-Name =~ /\.$/) {
- (3) if (&User-Name =~ /\.$/) -> FALSE
- (3) if (&User-Name =~ /@\./) {
- (3) if (&User-Name =~ /@\./) -> FALSE
- (3) } # if (&User-Name) = notfound
- (3) } # policy filter_username = notfound
- (3) [preprocess] = ok
- (3) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type
- (3) pap: WARNING: Authentication will fail unless a "known good" password is available
- (3) [pap] = noop
- (3) [mschap] = noop
- (3) [digest] = noop
- (3) suffix: Checking for suffix after "@"
- (3) suffix: No '@' in User-Name = "tt", looking up realm NULL
- (3) suffix: No such realm "NULL"
- (3) [suffix] = noop
- (3) eap: Peer sent EAP Response (code 2) ID 107 length 172
- (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 0x6842883269299118
- (3) eap: Finished EAP session with state 0x6842883269299118
- (3) eap: Previous EAP request found for state 0x6842883269299118, 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 162 bytes
- (3) eap_peap: Got complete TLS record (162 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.3 [length 009d]
- (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 02de]
- (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: TLS - In Handshake Phase
- (3) eap_peap: TLS - got 1152 bytes of data
- (3) eap_peap: [eaptls process] = handled
- (3) eap: Sending EAP Request (code 1) ID 108 length 1004
- (3) eap: EAP session adding &reply:State = 0x684288326a2e9118
- (3) [eap] = handled
- (3) } # authenticate = handled
- (3) Using Post-Auth-Type Challenge
- (3) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
- (3) Challenge { ... } # empty sub-section is ignored
- (3) Sent Access-Challenge Id 3 from 192.168.1.77:1812 to 192.168.1.250:39211 length 0
- (3) EAP-Message = 0x016c03ec19c000000480160303003d0200003903033a95d108643270a4d0f904335df72ef24874e412d61dbccc304666cd97ed1c7800c030000011ff01000100000b0004030001020017000016030302de0b0002da0002d70002d4308202d0308201b8a00302010202141d31bfd4a0190c08dd84f61bf2f277c9c1599b9c300d06092a864886f70d01010b05003011310f300d06035504030c067562756e7475301e170d3231303730373130343631335a170d3331303730353130343631335a3011310f300d06035504030c067562756e747530820122300d06092a864886f70d01010105000382010f003082010a0282010100ce445ab44e1a200066245d6ffabbe1efd24f0938a19efff06de2d27d5039cb45db0d59bce7d08659a6ab2ae0d4f278a555cc5910bfc7c3ab7f9828c511d192c32d49aa067b91d5f86b03e62fa21fdb0247ae67ec58e34c16cd6694602aac17e10f5c64f1a3726cda172e3f540e0b2a5167f019f14f5d7200ffe8579e81104e3e0c02ff
- (3) Message-Authenticator = 0x00000000000000000000000000000000
- (3) State = 0x684288326a2e911823d78676bb1324f8
- (3) Finished request
- Waking up in 4.8 seconds.
- (4) Received Access-Request Id 4 from 192.168.1.250:39211 to 192.168.1.77:1812 length 194
- (4) User-Name = "tt"
- (4) NAS-Identifier = "NanoStation M2"
- (4) Called-Station-Id = "E0-63-DA-62-16-A5:test-free-T"
- (4) NAS-Port-Type = Wireless-802.11
- (4) NAS-Port = 0
- (4) Calling-Station-Id = "24-EE-9A-1C-64-FC"
- (4) Connect-Info = "CONNECT 0Mbps 802.11b"
- (4) Acct-Session-Id = "60E9357A-00000000"
- (4) Framed-MTU = 1400
- (4) EAP-Message = 0x026c00061900
- (4) State = 0x684288326a2e911823d78676bb1324f8
- (4) Message-Authenticator = 0x3c290765afd02b4e895da457298f2d2a
- (4) session-state: No cached attributes
- (4) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default
- (4) authorize {
- (4) policy filter_username {
- (4) if (&User-Name) {
- (4) if (&User-Name) -> TRUE
- (4) if (&User-Name) {
- (4) if (&User-Name =~ / /) {
- (4) if (&User-Name =~ / /) -> FALSE
- (4) if (&User-Name =~ /@[^@]*@/ ) {
- (4) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
- (4) if (&User-Name =~ /\.\./ ) {
- (4) if (&User-Name =~ /\.\./ ) -> FALSE
- (4) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
- (4) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE
- (4) if (&User-Name =~ /\.$/) {
- (4) if (&User-Name =~ /\.$/) -> FALSE
- (4) if (&User-Name =~ /@\./) {
- (4) if (&User-Name =~ /@\./) -> FALSE
- (4) } # if (&User-Name) = notfound
- (4) } # policy filter_username = notfound
- (4) [preprocess] = ok
- (4) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type
- (4) pap: WARNING: Authentication will fail unless a "known good" password is available
- (4) [pap] = noop
- (4) [mschap] = noop
- (4) [digest] = noop
- (4) suffix: Checking for suffix after "@"
- (4) suffix: No '@' in User-Name = "tt", looking up realm NULL
- (4) suffix: No such realm "NULL"
- (4) [suffix] = noop
- (4) eap: Peer sent EAP Response (code 2) ID 108 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 0x684288326a2e9118
- (4) eap: Finished EAP session with state 0x684288326a2e9118
- (4) eap: Previous EAP request found for state 0x684288326a2e9118, 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 109 length 164
- (4) eap: EAP session adding &reply:State = 0x684288326b2f9118
- (4) [eap] = handled
- (4) } # authenticate = handled
- (4) Using Post-Auth-Type Challenge
- (4) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
- (4) Challenge { ... } # empty sub-section is ignored
- (4) Sent Access-Challenge Id 4 from 192.168.1.77:1812 to 192.168.1.250:39211 length 0
- (4) EAP-Message = 0x016d00a419005d2fd06a8cb2a15ec0bcaa6b9945a246332cb8d433e7f69919c220925b757deeacc03ca5877afe5188e2d23568b042caeb081c61deaabba9f7e42fa3701efa4b712f29fd272916220445e5f6c93e6e493c2c5c3a5fc6be62fc9136be3aeadca96961d90a816e6ef0e6e14d85c4014cdcaed8090f74c5294cfa6103d89c9e3813f0b92322f1199cfc643b658f6fb9a5ef6fa3f0c25e16030300040e000000
- (4) Message-Authenticator = 0x00000000000000000000000000000000
- (4) State = 0x684288326b2f911823d78676bb1324f8
- (4) Finished request
- Waking up in 4.8 seconds.
- (5) Received Access-Request Id 5 from 192.168.1.250:39211 to 192.168.1.77:1812 length 324
- (5) User-Name = "tt"
- (5) NAS-Identifier = "NanoStation M2"
- (5) Called-Station-Id = "E0-63-DA-62-16-A5:test-free-T"
- (5) NAS-Port-Type = Wireless-802.11
- (5) NAS-Port = 0
- (5) Calling-Station-Id = "24-EE-9A-1C-64-FC"
- (5) Connect-Info = "CONNECT 0Mbps 802.11b"
- (5) Acct-Session-Id = "60E9357A-00000000"
- (5) Framed-MTU = 1400
- (5) EAP-Message = 0x026d008819800000007e1603030046100000424104473c7f6cf4fd418fa80d39e5ac77e50d9c73e23627da377e4c5731848a77f12ae5916269ca5defc00e94d92239fa921d9af7c1fe2511f553b947bcf4fb4a1b48140303000101160303002800000000000000004c4af1636726227e6b22e95444b8ca7710ad3026978ab5c318367a97b983b755
- (5) State = 0x684288326b2f911823d78676bb1324f8
- (5) Message-Authenticator = 0x4c236ef1284ad1f146a28512a29ce7db
- (5) session-state: No cached attributes
- (5) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default
- (5) authorize {
- (5) policy filter_username {
- (5) if (&User-Name) {
- (5) if (&User-Name) -> TRUE
- (5) if (&User-Name) {
- (5) if (&User-Name =~ / /) {
- (5) if (&User-Name =~ / /) -> FALSE
- (5) if (&User-Name =~ /@[^@]*@/ ) {
- (5) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
- (5) if (&User-Name =~ /\.\./ ) {
- (5) if (&User-Name =~ /\.\./ ) -> FALSE
- (5) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
- (5) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE
- (5) if (&User-Name =~ /\.$/) {
- (5) if (&User-Name =~ /\.$/) -> FALSE
- (5) if (&User-Name =~ /@\./) {
- (5) if (&User-Name =~ /@\./) -> FALSE
- (5) } # if (&User-Name) = notfound
- (5) } # policy filter_username = notfound
- (5) [preprocess] = ok
- (5) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type
- (5) pap: WARNING: Authentication will fail unless a "known good" password is available
- (5) [pap] = noop
- (5) [mschap] = noop
- (5) [digest] = noop
- (5) suffix: Checking for suffix after "@"
- (5) suffix: No '@' in User-Name = "tt", looking up realm NULL
- (5) suffix: No such realm "NULL"
- (5) [suffix] = noop
- (5) eap: Peer sent EAP Response (code 2) ID 109 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 0x684288326b2f9118
- (5) eap: Finished EAP session with state 0x684288326b2f9118
- (5) eap: Previous EAP request found for state 0x684288326b2f9118, 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: TLS - Connection Established
- (5) eap_peap: TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
- (5) eap_peap: TLS-Session-Version = "TLS 1.2"
- (5) eap_peap: TLS - got 51 bytes of data
- (5) eap_peap: [eaptls process] = handled
- (5) eap: Sending EAP Request (code 1) ID 110 length 57
- (5) eap: EAP session adding &reply:State = 0x684288326c2c9118
- (5) [eap] = handled
- (5) } # authenticate = handled
- (5) Using Post-Auth-Type Challenge
- (5) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
- (5) Challenge { ... } # empty sub-section is ignored
- (5) session-state: Saving cached attributes
- (5) TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
- (5) TLS-Session-Version = "TLS 1.2"
- (5) Sent Access-Challenge Id 5 from 192.168.1.77:1812 to 192.168.1.250:39211 length 0
- (5) EAP-Message = 0x016e0039190014030300010116030300289bc18678dd17d8ccc6b9b67ce9f77800b06d646399b19bb64c8695b121f2495685a9687f5f2d7c3f
- (5) Message-Authenticator = 0x00000000000000000000000000000000
- (5) State = 0x684288326c2c911823d78676bb1324f8
- (5) Finished request
- Waking up in 4.8 seconds.
- (6) Received Access-Request Id 6 from 192.168.1.250:39211 to 192.168.1.77:1812 length 194
- (6) User-Name = "tt"
- (6) NAS-Identifier = "NanoStation M2"
- (6) Called-Station-Id = "E0-63-DA-62-16-A5:test-free-T"
- (6) NAS-Port-Type = Wireless-802.11
- (6) NAS-Port = 0
- (6) Calling-Station-Id = "24-EE-9A-1C-64-FC"
- (6) Connect-Info = "CONNECT 0Mbps 802.11b"
- (6) Acct-Session-Id = "60E9357A-00000000"
- (6) Framed-MTU = 1400
- (6) EAP-Message = 0x026e00061900
- (6) State = 0x684288326c2c911823d78676bb1324f8
- (6) Message-Authenticator = 0xce1783465c903de1f0908a153c0053ab
- (6) Restoring &session-state
- (6) &session-state:TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
- (6) &session-state:TLS-Session-Version = "TLS 1.2"
- (6) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default
- (6) authorize {
- (6) policy filter_username {
- (6) if (&User-Name) {
- (6) if (&User-Name) -> TRUE
- (6) if (&User-Name) {
- (6) if (&User-Name =~ / /) {
- (6) if (&User-Name =~ / /) -> FALSE
- (6) if (&User-Name =~ /@[^@]*@/ ) {
- (6) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
- (6) if (&User-Name =~ /\.\./ ) {
- (6) if (&User-Name =~ /\.\./ ) -> FALSE
- (6) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
- (6) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE
- (6) if (&User-Name =~ /\.$/) {
- (6) if (&User-Name =~ /\.$/) -> FALSE
- (6) if (&User-Name =~ /@\./) {
- (6) if (&User-Name =~ /@\./) -> FALSE
- (6) } # if (&User-Name) = notfound
- (6) } # policy filter_username = notfound
- (6) [preprocess] = ok
- (6) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type
- (6) pap: WARNING: Authentication will fail unless a "known good" password is available
- (6) [pap] = noop
- (6) [mschap] = noop
- (6) [digest] = noop
- (6) suffix: Checking for suffix after "@"
- (6) suffix: No '@' in User-Name = "tt", looking up realm NULL
- (6) suffix: No such realm "NULL"
- (6) [suffix] = noop
- (6) eap: Peer sent EAP Response (code 2) ID 110 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 0x684288326c2c9118
- (6) eap: Finished EAP session with state 0x684288326c2c9118
- (6) eap: Previous EAP request found for state 0x684288326c2c9118, 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 111 length 40
- (6) eap: EAP session adding &reply:State = 0x684288326d2d9118
- (6) [eap] = handled
- (6) } # authenticate = handled
- (6) Using Post-Auth-Type Challenge
- (6) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
- (6) Challenge { ... } # empty sub-section is ignored
- (6) session-state: Saving cached attributes
- (6) TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
- (6) TLS-Session-Version = "TLS 1.2"
- (6) Sent Access-Challenge Id 6 from 192.168.1.77:1812 to 192.168.1.250:39211 length 0
- (6) EAP-Message = 0x016f00281900170303001d9bc18678dd17d8cd7bf8ecae7318ae3ffb618704f39d6ed563bf8e2228
- (6) Message-Authenticator = 0x00000000000000000000000000000000
- (6) State = 0x684288326d2d911823d78676bb1324f8
- (6) Finished request
- Waking up in 1.2 seconds.
- (7) Received Access-Request Id 7 from 192.168.1.250:39211 to 192.168.1.77:1812 length 226
- (7) User-Name = "tt"
- (7) NAS-Identifier = "NanoStation M2"
- (7) Called-Station-Id = "E0-63-DA-62-16-A5:test-free-T"
- (7) NAS-Port-Type = Wireless-802.11
- (7) NAS-Port = 0
- (7) Calling-Station-Id = "24-EE-9A-1C-64-FC"
- (7) Connect-Info = "CONNECT 0Mbps 802.11b"
- (7) Acct-Session-Id = "60E9357A-00000000"
- (7) Framed-MTU = 1400
- (7) EAP-Message = 0x026f00261900170303001b000000000000000193be61fa0440a46188bc366b492b8034481bdc
- (7) State = 0x684288326d2d911823d78676bb1324f8
- (7) Message-Authenticator = 0x95a6f91ac6fe33397d819ea1d0e293ad
- (7) Restoring &session-state
- (7) &session-state:TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
- (7) &session-state:TLS-Session-Version = "TLS 1.2"
- (7) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default
- (7) authorize {
- (7) policy filter_username {
- (7) if (&User-Name) {
- (7) if (&User-Name) -> TRUE
- (7) if (&User-Name) {
- (7) if (&User-Name =~ / /) {
- (7) if (&User-Name =~ / /) -> FALSE
- (7) if (&User-Name =~ /@[^@]*@/ ) {
- (7) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
- (7) if (&User-Name =~ /\.\./ ) {
- (7) if (&User-Name =~ /\.\./ ) -> FALSE
- (7) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
- (7) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE
- (7) if (&User-Name =~ /\.$/) {
- (7) if (&User-Name =~ /\.$/) -> FALSE
- (7) if (&User-Name =~ /@\./) {
- (7) if (&User-Name =~ /@\./) -> FALSE
- (7) } # if (&User-Name) = notfound
- (7) } # policy filter_username = notfound
- (7) [preprocess] = ok
- (7) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type
- (7) pap: WARNING: Authentication will fail unless a "known good" password is available
- (7) [pap] = noop
- (7) [mschap] = noop
- (7) [digest] = noop
- (7) suffix: Checking for suffix after "@"
- (7) suffix: No '@' in User-Name = "tt", looking up realm NULL
- (7) suffix: No such realm "NULL"
- (7) [suffix] = noop
- (7) eap: Peer sent EAP Response (code 2) ID 111 length 38
- (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 0x684288326d2d9118
- (7) eap: Finished EAP session with state 0x684288326d2d9118
- (7) eap: Previous EAP request found for state 0x684288326d2d9118, 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 - tt
- (7) eap_peap: Got inner identity 'tt'
- (7) eap_peap: Setting default EAP type for tunneled EAP session
- (7) eap_peap: Got tunneled request
- (7) eap_peap: EAP-Message = 0x026f0007017474
- (7) eap_peap: Setting User-Name to tt
- (7) eap_peap: Sending tunneled request to inner-tunnel
- (7) eap_peap: EAP-Message = 0x026f0007017474
- (7) eap_peap: FreeRADIUS-Proxied-To = 127.0.0.1
- (7) eap_peap: User-Name = "tt"
- (7) Virtual server inner-tunnel received request
- (7) EAP-Message = 0x026f0007017474
- (7) FreeRADIUS-Proxied-To = 127.0.0.1
- (7) User-Name = "tt"
- (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) policy filter_username {
- (7) if (&User-Name) {
- (7) if (&User-Name) -> TRUE
- (7) if (&User-Name) {
- (7) if (&User-Name =~ / /) {
- (7) if (&User-Name =~ / /) -> FALSE
- (7) if (&User-Name =~ /@[^@]*@/ ) {
- (7) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
- (7) if (&User-Name =~ /\.\./ ) {
- (7) if (&User-Name =~ /\.\./ ) -> FALSE
- (7) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
- (7) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE
- (7) if (&User-Name =~ /\.$/) {
- (7) if (&User-Name =~ /\.$/) -> FALSE
- (7) if (&User-Name =~ /@\./) {
- (7) if (&User-Name =~ /@\./) -> FALSE
- (7) } # if (&User-Name) = notfound
- (7) } # policy filter_username = notfound
- (7) [chap] = noop
- (7) [mschap] = noop
- (7) suffix: Checking for suffix after "@"
- (7) suffix: No '@' in User-Name = "tt", looking up realm NULL
- (7) suffix: No such realm "NULL"
- (7) [suffix] = noop
- (7) update control {
- (7) &Proxy-To-Realm := LOCAL
- (7) } # update control = noop
- (7) eap: Peer sent EAP Response (code 2) ID 111 length 7
- (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 112 length 43
- (7) eap: EAP session adding &reply:State = 0xd74a4af6d73a501b
- (7) [eap] = handled
- (7) } # authenticate = handled
- (7) } # server inner-tunnel
- (7) Virtual server sending reply
- (7) EAP-Message = 0x0170002b1a0170002610ff4aba44157f3f6daaa78d5d92da2c1b667265657261646975732d332e302e3231
- (7) Message-Authenticator = 0x00000000000000000000000000000000
- (7) State = 0xd74a4af6d73a501b91bb465120504682
- (7) eap_peap: Got tunneled reply code 11
- (7) eap_peap: EAP-Message = 0x0170002b1a0170002610ff4aba44157f3f6daaa78d5d92da2c1b667265657261646975732d332e302e3231
- (7) eap_peap: Message-Authenticator = 0x00000000000000000000000000000000
- (7) eap_peap: State = 0xd74a4af6d73a501b91bb465120504682
- (7) eap_peap: Got tunneled reply RADIUS code 11
- (7) eap_peap: EAP-Message = 0x0170002b1a0170002610ff4aba44157f3f6daaa78d5d92da2c1b667265657261646975732d332e302e3231
- (7) eap_peap: Message-Authenticator = 0x00000000000000000000000000000000
- (7) eap_peap: State = 0xd74a4af6d73a501b91bb465120504682
- (7) eap_peap: Got tunneled Access-Challenge
- (7) eap: Sending EAP Request (code 1) ID 112 length 74
- (7) eap: EAP session adding &reply:State = 0x684288326e329118
- (7) [eap] = handled
- (7) } # authenticate = handled
- (7) Using Post-Auth-Type Challenge
- (7) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
- (7) Challenge { ... } # empty sub-section is ignored
- (7) session-state: Saving cached attributes
- (7) TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
- (7) TLS-Session-Version = "TLS 1.2"
- (7) Sent Access-Challenge Id 7 from 192.168.1.77:1812 to 192.168.1.250:39211 length 0
- (7) EAP-Message = 0x0170004a1900170303003f9bc18678dd17d8ce6fdb500f675ed6826caf4dd149cfc2a3254997601a952a88706aee0795dbf7d350e6f206468aac08e49732f333369a323bdce19e037975
- (7) Message-Authenticator = 0x00000000000000000000000000000000
- (7) State = 0x684288326e32911823d78676bb1324f8
- (7) Finished request
- Waking up in 1.2 seconds.
- (8) Received Access-Request Id 8 from 192.168.1.250:39211 to 192.168.1.77:1812 length 280
- (8) User-Name = "tt"
- (8) NAS-Identifier = "NanoStation M2"
- (8) Called-Station-Id = "E0-63-DA-62-16-A5:test-free-T"
- (8) NAS-Port-Type = Wireless-802.11
- (8) NAS-Port = 0
- (8) Calling-Station-Id = "24-EE-9A-1C-64-FC"
- (8) Connect-Info = "CONNECT 0Mbps 802.11b"
- (8) Acct-Session-Id = "60E9357A-00000000"
- (8) Framed-MTU = 1400
- (8) EAP-Message = 0x0270005c19001703030051000000000000000289398a4bcbffc2a90fa7e497598503543419ab0ef74991a53ee2058ae1e5880bea2d4ca409204c63dc820c99d75ae2df573e144d29be051d20d57999f94407f4ee608094966946f26d
- (8) State = 0x684288326e32911823d78676bb1324f8
- (8) Message-Authenticator = 0x37875e0b782178285fd1e9445e1628f1
- (8) Restoring &session-state
- (8) &session-state:TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
- (8) &session-state:TLS-Session-Version = "TLS 1.2"
- (8) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default
- (8) authorize {
- (8) policy filter_username {
- (8) if (&User-Name) {
- (8) if (&User-Name) -> TRUE
- (8) if (&User-Name) {
- (8) if (&User-Name =~ / /) {
- (8) if (&User-Name =~ / /) -> FALSE
- (8) if (&User-Name =~ /@[^@]*@/ ) {
- (8) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
- (8) if (&User-Name =~ /\.\./ ) {
- (8) if (&User-Name =~ /\.\./ ) -> FALSE
- (8) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
- (8) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE
- (8) if (&User-Name =~ /\.$/) {
- (8) if (&User-Name =~ /\.$/) -> FALSE
- (8) if (&User-Name =~ /@\./) {
- (8) if (&User-Name =~ /@\./) -> FALSE
- (8) } # if (&User-Name) = notfound
- (8) } # policy filter_username = notfound
- (8) [preprocess] = ok
- (8) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type
- (8) pap: WARNING: Authentication will fail unless a "known good" password is available
- (8) [pap] = noop
- (8) [mschap] = noop
- (8) [digest] = noop
- (8) suffix: Checking for suffix after "@"
- (8) suffix: No '@' in User-Name = "tt", looking up realm NULL
- (8) suffix: No such realm "NULL"
- (8) [suffix] = noop
- (8) eap: Peer sent EAP Response (code 2) ID 112 length 92
- (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 0xd74a4af6d73a501b
- (8) eap: Finished EAP session with state 0x684288326e329118
- (8) eap: Previous EAP request found for state 0x684288326e329118, 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 = 0x0270003d1a0270003831161a3db5508a6c1728d9c5d7d0a3c4e70000000000000000fae5f579fc7c6fb48510503914b409955786f3f1a44178d1007474
- (8) eap_peap: Setting User-Name to tt
- (8) eap_peap: Sending tunneled request to inner-tunnel
- (8) eap_peap: EAP-Message = 0x0270003d1a0270003831161a3db5508a6c1728d9c5d7d0a3c4e70000000000000000fae5f579fc7c6fb48510503914b409955786f3f1a44178d1007474
- (8) eap_peap: FreeRADIUS-Proxied-To = 127.0.0.1
- (8) eap_peap: User-Name = "tt"
- (8) eap_peap: State = 0xd74a4af6d73a501b91bb465120504682
- (8) Virtual server inner-tunnel received request
- (8) EAP-Message = 0x0270003d1a0270003831161a3db5508a6c1728d9c5d7d0a3c4e70000000000000000fae5f579fc7c6fb48510503914b409955786f3f1a44178d1007474
- (8) FreeRADIUS-Proxied-To = 127.0.0.1
- (8) User-Name = "tt"
- (8) State = 0xd74a4af6d73a501b91bb465120504682
- (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) policy filter_username {
- (8) if (&User-Name) {
- (8) if (&User-Name) -> TRUE
- (8) if (&User-Name) {
- (8) if (&User-Name =~ / /) {
- (8) if (&User-Name =~ / /) -> FALSE
- (8) if (&User-Name =~ /@[^@]*@/ ) {
- (8) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
- (8) if (&User-Name =~ /\.\./ ) {
- (8) if (&User-Name =~ /\.\./ ) -> FALSE
- (8) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
- (8) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE
- (8) if (&User-Name =~ /\.$/) {
- (8) if (&User-Name =~ /\.$/) -> FALSE
- (8) if (&User-Name =~ /@\./) {
- (8) if (&User-Name =~ /@\./) -> FALSE
- (8) } # if (&User-Name) = notfound
- (8) } # policy filter_username = notfound
- (8) [chap] = noop
- (8) [mschap] = noop
- (8) suffix: Checking for suffix after "@"
- (8) suffix: No '@' in User-Name = "tt", looking up realm NULL
- (8) suffix: No such realm "NULL"
- (8) [suffix] = noop
- (8) update control {
- (8) &Proxy-To-Realm := LOCAL
- (8) } # update control = noop
- (8) eap: Peer sent EAP Response (code 2) ID 112 length 61
- (8) eap: No EAP Start, assuming it's an on-going EAP conversation
- (8) [eap] = updated
- (8) files: users: Matched entry DEFAULT at line 1
- (8) [files] = ok
- (8) sql: EXPAND %{User-Name}
- (8) sql: --> tt
- (8) sql: SQL-User-Name set to 'tt'
- rlm_sql (sql): Reserved connection (6)
- (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 = 'tt' ORDER BY id
- (8) sql: Executing select query: SELECT id, username, attribute, value, op FROM radcheck WHERE username = 'tt' ORDER BY id
- (8) sql: User found in radcheck table
- (8) sql: Conditional check items matched, merging assignment check items
- (8) sql: Cleartext-Password := "tt"
- (8) sql: Simultaneous-Use := 1
- (8) sql: EXPAND SELECT id, username, attribute, value, op FROM radreply WHERE username = '%{SQL-User-Name}' ORDER BY id
- (8) sql: --> SELECT id, username, attribute, value, op FROM radreply WHERE username = 'tt' ORDER BY id
- (8) sql: Executing select query: SELECT id, username, attribute, value, op FROM radreply WHERE username = 'tt' ORDER BY id
- rlm_sql (sql): Reserved connection (8)
- rlm_sql (sql): Released connection (8)
- Need 8 more connections to reach 10 spares
- rlm_sql (sql): Opening additional connection (9), 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 8.0.25-0ubuntu0.21.04.1, protocol version 10
- (8) sql: EXPAND SELECT groupname FROM radusergroup WHERE username = '%{SQL-User-Name}' ORDER BY priority
- (8) sql: --> SELECT groupname FROM radusergroup WHERE username = 'tt' ORDER BY priority
- (8) sql: Executing select query: SELECT groupname FROM radusergroup WHERE username = 'tt' ORDER BY priority
- (8) sql: User not found in any groups
- (8) sql: Checking profile DEFAULT
- (8) sql: EXPAND DEFAULT
- (8) sql: --> DEFAULT
- (8) sql: SQL-User-Name set to 'DEFAULT'
- rlm_sql (sql): Reserved connection (7)
- rlm_sql (sql): Released connection (7)
- (8) sql: EXPAND SELECT groupname FROM radusergroup WHERE username = '%{SQL-User-Name}' ORDER BY priority
- (8) sql: --> SELECT groupname FROM radusergroup WHERE username = 'DEFAULT' ORDER BY priority
- (8) sql: Executing select query: SELECT groupname FROM radusergroup WHERE username = 'DEFAULT' ORDER BY priority
- (8) sql: User found in the group table
- (8) sql: EXPAND SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = '%{SQL-Group}' ORDER BY id
- (8) sql: --> SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = 'VLAN3010' ORDER BY id
- (8) sql: Executing select query: SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = 'VLAN3010' ORDER BY id
- (8) sql: Group "VLAN3010": Conditional check items matched
- (8) sql: Group "VLAN3010": Merging assignment check items
- (8) sql: EXPAND SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = '%{SQL-Group}' ORDER BY id
- (8) sql: --> SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = 'VLAN3010' ORDER BY id
- (8) sql: Executing select query: SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = 'VLAN3010' ORDER BY id
- (8) sql: Group "VLAN3010": Merging reply items
- rlm_sql (sql): Released connection (6)
- (8) [sql] = ok
- (8) [expiration] = noop
- (8) [logintime] = noop
- (8) pap: WARNING: Auth-Type already set. Not setting to PAP
- (8) [pap] = 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 0xd74a4af6d73a501b
- (8) eap: Finished EAP session with state 0xd74a4af6d73a501b
- (8) eap: Previous EAP request found for state 0xd74a4af6d73a501b, 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: Found Cleartext-Password, hashing to create NT-Password
- (8) mschap: Creating challenge hash with username: tt
- (8) mschap: Client is using MS-CHAPv2
- (8) mschap: Adding MS-CHAPv2 MPPE keys
- (8) eap_mschapv2: [mschap] = ok
- (8) eap_mschapv2: } # authenticate = ok
- (8) eap_mschapv2: MSCHAP Success
- (8) eap: Sending EAP Request (code 1) ID 113 length 51
- (8) eap: EAP session adding &reply:State = 0xd74a4af6d63b501b
- (8) [eap] = handled
- (8) } # authenticate = handled
- (8) } # server inner-tunnel
- (8) Virtual server sending reply
- (8) EAP-Message = 0x017100331a0370002e533d33363337413436313345353732444135444133383233363546324530313542303731413742304245
- (8) Message-Authenticator = 0x00000000000000000000000000000000
- (8) State = 0xd74a4af6d63b501b91bb465120504682
- (8) eap_peap: Got tunneled reply code 11
- (8) eap_peap: EAP-Message = 0x017100331a0370002e533d33363337413436313345353732444135444133383233363546324530313542303731413742304245
- (8) eap_peap: Message-Authenticator = 0x00000000000000000000000000000000
- (8) eap_peap: State = 0xd74a4af6d63b501b91bb465120504682
- (8) eap_peap: Got tunneled reply RADIUS code 11
- (8) eap_peap: EAP-Message = 0x017100331a0370002e533d33363337413436313345353732444135444133383233363546324530313542303731413742304245
- (8) eap_peap: Message-Authenticator = 0x00000000000000000000000000000000
- (8) eap_peap: State = 0xd74a4af6d63b501b91bb465120504682
- (8) eap_peap: Got tunneled Access-Challenge
- (8) eap: Sending EAP Request (code 1) ID 113 length 82
- (8) eap: EAP session adding &reply:State = 0x684288326f339118
- (8) [eap] = handled
- (8) } # authenticate = handled
- (8) Using Post-Auth-Type Challenge
- (8) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
- (8) Challenge { ... } # empty sub-section is ignored
- (8) session-state: Saving cached attributes
- (8) TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
- (8) TLS-Session-Version = "TLS 1.2"
- (8) Sent Access-Challenge Id 8 from 192.168.1.77:1812 to 192.168.1.250:39211 length 0
- (8) EAP-Message = 0x01710052190017030300479bc18678dd17d8cf7caf8983b73fe2f303a70150d6cbc91d4390b984653df14d812bc544c5e3830f38b582a6068360ad1b88617c7f53271195c5de682a5b12ffeb49e17df5c552
- (8) Message-Authenticator = 0x00000000000000000000000000000000
- (8) State = 0x684288326f33911823d78676bb1324f8
- (8) Finished request
- Waking up in 1.2 seconds.
- (9) Received Access-Request Id 9 from 192.168.1.250:39211 to 192.168.1.77:1812 length 225
- (9) User-Name = "tt"
- (9) NAS-Identifier = "NanoStation M2"
- (9) Called-Station-Id = "E0-63-DA-62-16-A5:test-free-T"
- (9) NAS-Port-Type = Wireless-802.11
- (9) NAS-Port = 0
- (9) Calling-Station-Id = "24-EE-9A-1C-64-FC"
- (9) Connect-Info = "CONNECT 0Mbps 802.11b"
- (9) Acct-Session-Id = "60E9357A-00000000"
- (9) Framed-MTU = 1400
- (9) EAP-Message = 0x027100251900170303001a0000000000000003b22aa380f8f1df3ba84552c849ed6dfa9269
- (9) State = 0x684288326f33911823d78676bb1324f8
- (9) Message-Authenticator = 0x3c8cf47c0a08093e507caa9e7af0b395
- (9) Restoring &session-state
- (9) &session-state:TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
- (9) &session-state:TLS-Session-Version = "TLS 1.2"
- (9) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default
- (9) authorize {
- (9) policy filter_username {
- (9) if (&User-Name) {
- (9) if (&User-Name) -> TRUE
- (9) if (&User-Name) {
- (9) if (&User-Name =~ / /) {
- (9) if (&User-Name =~ / /) -> FALSE
- (9) if (&User-Name =~ /@[^@]*@/ ) {
- (9) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
- (9) if (&User-Name =~ /\.\./ ) {
- (9) if (&User-Name =~ /\.\./ ) -> FALSE
- (9) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
- (9) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE
- (9) if (&User-Name =~ /\.$/) {
- (9) if (&User-Name =~ /\.$/) -> FALSE
- (9) if (&User-Name =~ /@\./) {
- (9) if (&User-Name =~ /@\./) -> FALSE
- (9) } # if (&User-Name) = notfound
- (9) } # policy filter_username = notfound
- (9) [preprocess] = ok
- (9) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type
- (9) pap: WARNING: Authentication will fail unless a "known good" password is available
- (9) [pap] = noop
- (9) [mschap] = noop
- (9) [digest] = noop
- (9) suffix: Checking for suffix after "@"
- (9) suffix: No '@' in User-Name = "tt", looking up realm NULL
- (9) suffix: No such realm "NULL"
- (9) [suffix] = noop
- (9) eap: Peer sent EAP Response (code 2) ID 113 length 37
- (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 0xd74a4af6d63b501b
- (9) eap: Finished EAP session with state 0x684288326f339118
- (9) eap: Previous EAP request found for state 0x684288326f339118, 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 phase2
- (9) eap_peap: EAP method MSCHAPv2 (26)
- (9) eap_peap: Got tunneled request
- (9) eap_peap: EAP-Message = 0x027100061a03
- (9) eap_peap: Setting User-Name to tt
- (9) eap_peap: Sending tunneled request to inner-tunnel
- (9) eap_peap: EAP-Message = 0x027100061a03
- (9) eap_peap: FreeRADIUS-Proxied-To = 127.0.0.1
- (9) eap_peap: User-Name = "tt"
- (9) eap_peap: State = 0xd74a4af6d63b501b91bb465120504682
- (9) Virtual server inner-tunnel received request
- (9) EAP-Message = 0x027100061a03
- (9) FreeRADIUS-Proxied-To = 127.0.0.1
- (9) User-Name = "tt"
- (9) State = 0xd74a4af6d63b501b91bb465120504682
- (9) WARNING: Outer and inner identities are the same. User privacy is compromised.
- (9) server inner-tunnel {
- (9) session-state: No cached attributes
- (9) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/inner-tunnel
- (9) authorize {
- (9) policy filter_username {
- (9) if (&User-Name) {
- (9) if (&User-Name) -> TRUE
- (9) if (&User-Name) {
- (9) if (&User-Name =~ / /) {
- (9) if (&User-Name =~ / /) -> FALSE
- (9) if (&User-Name =~ /@[^@]*@/ ) {
- (9) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
- (9) if (&User-Name =~ /\.\./ ) {
- (9) if (&User-Name =~ /\.\./ ) -> FALSE
- (9) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
- (9) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE
- (9) if (&User-Name =~ /\.$/) {
- (9) if (&User-Name =~ /\.$/) -> FALSE
- (9) if (&User-Name =~ /@\./) {
- (9) if (&User-Name =~ /@\./) -> FALSE
- (9) } # if (&User-Name) = notfound
- (9) } # policy filter_username = notfound
- (9) [chap] = noop
- (9) [mschap] = noop
- (9) suffix: Checking for suffix after "@"
- (9) suffix: No '@' in User-Name = "tt", looking up realm NULL
- (9) suffix: No such realm "NULL"
- (9) [suffix] = noop
- (9) update control {
- (9) &Proxy-To-Realm := LOCAL
- (9) } # update control = noop
- (9) eap: Peer sent EAP Response (code 2) ID 113 length 6
- (9) eap: No EAP Start, assuming it's an on-going EAP conversation
- (9) [eap] = updated
- (9) files: users: Matched entry DEFAULT at line 1
- (9) [files] = ok
- (9) sql: EXPAND %{User-Name}
- (9) sql: --> tt
- (9) sql: SQL-User-Name set to 'tt'
- rlm_sql (sql): Reserved connection (6)
- (9) sql: EXPAND SELECT id, username, attribute, value, op FROM radcheck WHERE username = '%{SQL-User-Name}' ORDER BY id
- (9) sql: --> SELECT id, username, attribute, value, op FROM radcheck WHERE username = 'tt' ORDER BY id
- (9) sql: Executing select query: SELECT id, username, attribute, value, op FROM radcheck WHERE username = 'tt' ORDER BY id
- (9) sql: User found in radcheck table
- (9) sql: Conditional check items matched, merging assignment check items
- (9) sql: Cleartext-Password := "tt"
- (9) sql: Simultaneous-Use := 1
- (9) sql: EXPAND SELECT id, username, attribute, value, op FROM radreply WHERE username = '%{SQL-User-Name}' ORDER BY id
- (9) sql: --> SELECT id, username, attribute, value, op FROM radreply WHERE username = 'tt' ORDER BY id
- (9) sql: Executing select query: SELECT id, username, attribute, value, op FROM radreply WHERE username = 'tt' ORDER BY id
- rlm_sql (sql): Reserved connection (8)
- rlm_sql (sql): Released connection (8)
- (9) sql: EXPAND SELECT groupname FROM radusergroup WHERE username = '%{SQL-User-Name}' ORDER BY priority
- (9) sql: --> SELECT groupname FROM radusergroup WHERE username = 'tt' ORDER BY priority
- (9) sql: Executing select query: SELECT groupname FROM radusergroup WHERE username = 'tt' ORDER BY priority
- (9) sql: User not found in any groups
- (9) sql: Checking profile DEFAULT
- (9) sql: EXPAND DEFAULT
- (9) sql: --> DEFAULT
- (9) sql: SQL-User-Name set to 'DEFAULT'
- rlm_sql (sql): Reserved connection (9)
- rlm_sql (sql): Released connection (9)
- (9) sql: EXPAND SELECT groupname FROM radusergroup WHERE username = '%{SQL-User-Name}' ORDER BY priority
- (9) sql: --> SELECT groupname FROM radusergroup WHERE username = 'DEFAULT' ORDER BY priority
- (9) sql: Executing select query: SELECT groupname FROM radusergroup WHERE username = 'DEFAULT' ORDER BY priority
- (9) sql: User found in the group table
- (9) sql: EXPAND SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = '%{SQL-Group}' ORDER BY id
- (9) sql: --> SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = 'VLAN3010' ORDER BY id
- (9) sql: Executing select query: SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = 'VLAN3010' ORDER BY id
- (9) sql: Group "VLAN3010": Conditional check items matched
- (9) sql: Group "VLAN3010": Merging assignment check items
- (9) sql: EXPAND SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = '%{SQL-Group}' ORDER BY id
- (9) sql: --> SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = 'VLAN3010' ORDER BY id
- (9) sql: Executing select query: SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = 'VLAN3010' ORDER BY id
- (9) sql: Group "VLAN3010": Merging reply items
- rlm_sql (sql): Released connection (6)
- (9) [sql] = ok
- (9) [expiration] = noop
- (9) [logintime] = noop
- (9) pap: WARNING: Auth-Type already set. Not setting to PAP
- (9) [pap] = noop
- (9) } # authorize = updated
- (9) Found Auth-Type = eap
- (9) # Executing group from file /etc/freeradius/3.0/sites-enabled/inner-tunnel
- (9) authenticate {
- (9) eap: Expiring EAP session with state 0xd74a4af6d63b501b
- (9) eap: Finished EAP session with state 0xd74a4af6d63b501b
- (9) eap: Previous EAP request found for state 0xd74a4af6d63b501b, released from the list
- (9) eap: Peer sent packet with method EAP MSCHAPv2 (26)
- (9) eap: Calling submodule eap_mschapv2 to process data
- (9) eap: Sending EAP Success (code 3) ID 113 length 4
- (9) eap: Freeing handler
- (9) [eap] = ok
- (9) } # authenticate = ok
- (9) # Executing section session from file /etc/freeradius/3.0/sites-enabled/inner-tunnel
- (9) session {
- (9) radutmp: EXPAND /var/log/freeradius/radutmp
- (9) radutmp: --> /var/log/freeradius/radutmp
- (9) [radutmp] = ok
- (9) } # session = ok
- (9) # Executing section post-auth from file /etc/freeradius/3.0/sites-enabled/inner-tunnel
- (9) post-auth {
- (9) sql: EXPAND .query
- (9) sql: --> .query
- (9) sql: Using query template 'query'
- rlm_sql (sql): Reserved connection (7)
- (9) sql: EXPAND %{User-Name}
- (9) sql: --> tt
- (9) sql: SQL-User-Name set to 'tt'
- (9) sql: EXPAND INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( '%{SQL-User-Name}', '%{%{User-Password}:-%{Chap-Password}}', '%{reply:Packet-Type}', '%S.%M')
- (9) sql: --> INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( 'tt', '', 'Access-Accept', '2021-07-10 05:53:32.084540')
- (9) sql: Executing query: INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( 'tt', '', 'Access-Accept', '2021-07-10 05:53:32.084540')
- (9) sql: SQL query returned: success
- (9) sql: 1 record(s) updated
- rlm_sql (sql): Released connection (7)
- (9) [sql] = ok
- (9) if (0) {
- (9) if (0) -> FALSE
- (9) } # post-auth = ok
- (9) } # server inner-tunnel
- (9) Virtual server sending reply
- (9) MS-MPPE-Encryption-Policy = Encryption-Allowed
- (9) MS-MPPE-Encryption-Types = RC4-40or128-bit-Allowed
- (9) MS-MPPE-Send-Key = 0xe5fe902b3c9e25b0a560687fc4b6ac40
- (9) MS-MPPE-Recv-Key = 0x20596bd3cb08534e4b41a667d73b3379
- (9) EAP-Message = 0x03710004
- (9) Message-Authenticator = 0x00000000000000000000000000000000
- (9) User-Name = "tt"
- (9) eap_peap: Got tunneled reply code 2
- (9) eap_peap: MS-MPPE-Encryption-Policy = Encryption-Allowed
- (9) eap_peap: MS-MPPE-Encryption-Types = RC4-40or128-bit-Allowed
- (9) eap_peap: MS-MPPE-Send-Key = 0xe5fe902b3c9e25b0a560687fc4b6ac40
- (9) eap_peap: MS-MPPE-Recv-Key = 0x20596bd3cb08534e4b41a667d73b3379
- (9) eap_peap: EAP-Message = 0x03710004
- (9) eap_peap: Message-Authenticator = 0x00000000000000000000000000000000
- (9) eap_peap: User-Name = "tt"
- (9) eap_peap: Got tunneled reply RADIUS code 2
- (9) eap_peap: MS-MPPE-Encryption-Policy = Encryption-Allowed
- (9) eap_peap: MS-MPPE-Encryption-Types = RC4-40or128-bit-Allowed
- (9) eap_peap: MS-MPPE-Send-Key = 0xe5fe902b3c9e25b0a560687fc4b6ac40
- (9) eap_peap: MS-MPPE-Recv-Key = 0x20596bd3cb08534e4b41a667d73b3379
- (9) eap_peap: EAP-Message = 0x03710004
- (9) eap_peap: Message-Authenticator = 0x00000000000000000000000000000000
- (9) eap_peap: User-Name = "tt"
- (9) eap_peap: Tunneled authentication was successful
- (9) eap_peap: SUCCESS
- (9) eap: Sending EAP Request (code 1) ID 114 length 46
- (9) eap: EAP session adding &reply:State = 0x6842883260309118
- (9) [eap] = handled
- (9) } # authenticate = handled
- (9) Using Post-Auth-Type Challenge
- (9) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
- (9) Challenge { ... } # empty sub-section is ignored
- (9) session-state: Saving cached attributes
- (9) TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
- (9) TLS-Session-Version = "TLS 1.2"
- (9) Sent Access-Challenge Id 9 from 192.168.1.77:1812 to 192.168.1.250:39211 length 0
- (9) EAP-Message = 0x0172002e190017030300239bc18678dd17d8d0a44de1490acf480db021ad2cfdbbacfeae8a59eca3e80035bdbaab
- (9) Message-Authenticator = 0x00000000000000000000000000000000
- (9) State = 0x684288326030911823d78676bb1324f8
- (9) Finished request
- Waking up in 1.1 seconds.
- (10) Received Access-Request Id 10 from 192.168.1.250:39211 to 192.168.1.77:1812 length 234
- (10) User-Name = "tt"
- (10) NAS-Identifier = "NanoStation M2"
- (10) Called-Station-Id = "E0-63-DA-62-16-A5:test-free-T"
- (10) NAS-Port-Type = Wireless-802.11
- (10) NAS-Port = 0
- (10) Calling-Station-Id = "24-EE-9A-1C-64-FC"
- (10) Connect-Info = "CONNECT 0Mbps 802.11b"
- (10) Acct-Session-Id = "60E9357A-00000000"
- (10) Framed-MTU = 1400
- (10) EAP-Message = 0x0272002e1900170303002300000000000000041b14e4976484536fb99c4e210d91208f92e23817ce4dc83383530d
- (10) State = 0x684288326030911823d78676bb1324f8
- (10) Message-Authenticator = 0xda12c558b40fe5d265a5d854be0220b3
- (10) Restoring &session-state
- (10) &session-state:TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
- (10) &session-state:TLS-Session-Version = "TLS 1.2"
- (10) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default
- (10) authorize {
- (10) policy filter_username {
- (10) if (&User-Name) {
- (10) if (&User-Name) -> TRUE
- (10) if (&User-Name) {
- (10) if (&User-Name =~ / /) {
- (10) if (&User-Name =~ / /) -> FALSE
- (10) if (&User-Name =~ /@[^@]*@/ ) {
- (10) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
- (10) if (&User-Name =~ /\.\./ ) {
- (10) if (&User-Name =~ /\.\./ ) -> FALSE
- (10) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
- (10) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE
- (10) if (&User-Name =~ /\.$/) {
- (10) if (&User-Name =~ /\.$/) -> FALSE
- (10) if (&User-Name =~ /@\./) {
- (10) if (&User-Name =~ /@\./) -> FALSE
- (10) } # if (&User-Name) = notfound
- (10) } # policy filter_username = notfound
- (10) [preprocess] = ok
- (10) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type
- (10) pap: WARNING: Authentication will fail unless a "known good" password is available
- (10) [pap] = noop
- (10) [mschap] = noop
- (10) [digest] = noop
- (10) suffix: Checking for suffix after "@"
- (10) suffix: No '@' in User-Name = "tt", looking up realm NULL
- (10) suffix: No such realm "NULL"
- (10) [suffix] = noop
- (10) eap: Peer sent EAP Response (code 2) ID 114 length 46
- (10) eap: Continuing tunnel setup
- (10) [eap] = ok
- (10) } # authorize = ok
- (10) Found Auth-Type = eap
- (10) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
- (10) authenticate {
- (10) eap: Expiring EAP session with state 0x6842883260309118
- (10) eap: Finished EAP session with state 0x6842883260309118
- (10) eap: Previous EAP request found for state 0x6842883260309118, released from the list
- (10) eap: Peer sent packet with method EAP PEAP (25)
- (10) eap: Calling submodule eap_peap to process data
- (10) eap_peap: Continuing EAP-TLS
- (10) eap_peap: [eaptls verify] = ok
- (10) eap_peap: Done initial handshake
- (10) eap_peap: [eaptls process] = ok
- (10) eap_peap: Session established. Decoding tunneled attributes
- (10) eap_peap: PEAP state send tlv success
- (10) eap_peap: Received EAP-TLV response
- (10) eap_peap: Success
- (10) eap: Sending EAP Success (code 3) ID 114 length 4
- (10) eap: Freeing handler
- (10) [eap] = ok
- (10) } # authenticate = ok
- (10) # Executing section post-auth from file /etc/freeradius/3.0/sites-enabled/default
- (10) post-auth {
- (10) if (session-state:User-Name && reply:User-Name && request:User-Name && (reply:User-Name == request:User-Name)) {
- (10) if (session-state:User-Name && reply:User-Name && request:User-Name && (reply:User-Name == request:User-Name)) -> FALSE
- (10) update {
- (10) &reply::TLS-Session-Cipher-Suite += &session-state:TLS-Session-Cipher-Suite[*] -> 'ECDHE-RSA-AES256-GCM-SHA384'
- (10) &reply::TLS-Session-Version += &session-state:TLS-Session-Version[*] -> 'TLS 1.2'
- (10) } # update = noop
- (10) sql: EXPAND .query
- (10) sql: --> .query
- (10) sql: Using query template 'query'
- rlm_sql (sql): Reserved connection (6)
- (10) sql: EXPAND %{User-Name}
- (10) sql: --> tt
- (10) sql: SQL-User-Name set to 'tt'
- (10) sql: EXPAND INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( '%{SQL-User-Name}', '%{%{User-Password}:-%{Chap-Password}}', '%{reply:Packet-Type}', '%S.%M')
- (10) sql: --> INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( 'tt', '', 'Access-Accept', '2021-07-10 05:53:32.134762')
- (10) sql: Executing query: INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( 'tt', '', 'Access-Accept', '2021-07-10 05:53:32.134762')
- (10) sql: SQL query returned: success
- (10) sql: 1 record(s) updated
- rlm_sql (sql): Released connection (6)
- (10) [sql] = ok
- (10) [exec] = noop
- (10) policy remove_reply_message_if_eap {
- (10) if (&reply:EAP-Message && &reply:Reply-Message) {
- (10) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE
- (10) else {
- (10) [noop] = noop
- (10) } # else = noop
- (10) } # policy remove_reply_message_if_eap = noop
- (10) } # post-auth = ok
- (10) Sent Access-Accept Id 10 from 192.168.1.77:1812 to 192.168.1.250:39211 length 0
- (10) MS-MPPE-Recv-Key = 0xbaf20d8e3eca5ac180fe759bac80cd8337e78b31f4f6d8f99568a17dbb089556
- (10) MS-MPPE-Send-Key = 0xc48b4be0c86bca4336996aa646e22471a819056983fd43c0dd28e3f447188982
- (10) EAP-Message = 0x03720004
- (10) Message-Authenticator = 0x00000000000000000000000000000000
- (10) User-Name = "tt"
- (10) Finished request
- Waking up in 1.1 seconds.
- (11) Received Accounting-Request Id 11 from 192.168.1.250:33371 to 192.168.1.77:1813 length 156
- (11) Acct-Session-Id = "60E9357A-00000000"
- (11) Acct-Status-Type = Start
- (11) Acct-Authentic = RADIUS
- (11) User-Name = "tt"
- (11) NAS-Identifier = "NanoStation M2"
- (11) Called-Station-Id = "E0-63-DA-62-16-A5:test-free-T"
- (11) NAS-Port-Type = Wireless-802.11
- (11) NAS-Port = 0
- (11) Calling-Station-Id = "24-EE-9A-1C-64-FC"
- (11) Connect-Info = "CONNECT 0Mbps 802.11b"
- (11) # Executing section preacct from file /etc/freeradius/3.0/sites-enabled/default
- (11) preacct {
- (11) [preprocess] = ok
- (11) policy acct_unique {
- (11) update request {
- (11) &Tmp-String-9 := "ai:"
- (11) } # update request = noop
- (11) if (("%{hex:&Class}" =~ /^%{hex:&Tmp-String-9}/) && ("%{string:&Class}" =~ /^ai:([0-9a-f]{32})/i)) {
- (11) EXPAND %{hex:&Class}
- (11) -->
- (11) EXPAND ^%{hex:&Tmp-String-9}
- (11) --> ^61693a
- (11) if (("%{hex:&Class}" =~ /^%{hex:&Tmp-String-9}/) && ("%{string:&Class}" =~ /^ai:([0-9a-f]{32})/i)) -> FALSE
- (11) else {
- (11) update request {
- (11) EXPAND %{md5:%{User-Name},%{Acct-Session-ID},%{%{NAS-IPv6-Address}:-%{NAS-IP-Address}},%{NAS-Identifier},%{NAS-Port-ID},%{NAS-Port}}
- (11) --> 6a47e79243e72db7033f8519919bbbb3
- (11) &Acct-Unique-Session-Id := 6a47e79243e72db7033f8519919bbbb3
- (11) } # update request = noop
- (11) } # else = noop
- (11) } # policy acct_unique = noop
- (11) suffix: Checking for suffix after "@"
- (11) suffix: No '@' in User-Name = "tt", looking up realm NULL
- (11) suffix: No such realm "NULL"
- (11) [suffix] = noop
- (11) [files] = noop
- (11) } # preacct = ok
- (11) # Executing section accounting from file /etc/freeradius/3.0/sites-enabled/default
- (11) accounting {
- (11) detail: EXPAND /var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d
- (11) detail: --> /var/log/freeradius/radacct/192.168.1.250/detail-20210710
- (11) 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.1.250/detail-20210710
- (11) detail: EXPAND %t
- (11) detail: --> Sat Jul 10 05:53:32 2021
- (11) [detail] = ok
- (11) [unix] = ok
- (11) radutmp: EXPAND /var/log/freeradius/radutmp
- (11) radutmp: --> /var/log/freeradius/radutmp
- (11) radutmp: EXPAND %{User-Name}
- (11) radutmp: --> tt
- (11) [radutmp] = ok
- (11) sql: EXPAND %{tolower:type.%{%{Acct-Status-Type}:-%{Request-Processing-Stage}}.query}
- (11) sql: --> type.start.query
- (11) sql: Using query template 'query'
- rlm_sql (sql): Reserved connection (8)
- (11) sql: EXPAND %{User-Name}
- (11) sql: --> tt
- (11) sql: SQL-User-Name set to 'tt'
- (11) 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, framedipv6address, framedipv6prefix, framedinterfaceid, delegatedipv6prefix) 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}:-%l}), FROM_UNIXTIME(%{%{integer:Event-Timestamp}:-%l}), NULL, '0', '%{Acct-Authentic}', '%{Connect-Info}', '', '0', '0', '%{Called-Station-Id}', '%{Calling-Station-Id}', '', '%{Service-Type}', '%{Framed-Protocol}', '%{Framed-IP-Address}', '%{Framed-IPv6-Address}', '%{Framed-IPv6-Prefix}', '%{Framed-Interface-Id}', '%{Delegated-IPv6-Prefix}')
- (11) 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, framedipv6address, framedipv6prefix, framedinterfaceid, delegatedipv6prefix) VALUES ('60E9357A-00000000', '6a47e79243e72db7033f8519919bbbb3', 'tt', '', '192.168.1.250', '0', 'Wireless-802.11', FROM_UNIXTIME(1625896412), FROM_UNIXTIME(1625896412), NULL, '0', 'RADIUS', 'CONNECT 0Mbps 802.11b', '', '0', '0', 'E0-63-DA-62-16-A5:test-free-T', '24-EE-9A-1C-64-FC', '', '', '', '', '', '', '', '')
- (11) 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, framedipv6address, framedipv6prefix, framedinterfaceid, delegatedipv6prefix) VALUES ('60E9357A-00000000', '6a47e79243e72db7033f8519919bbbb3', 'tt', '', '192.168.1.250', '0', 'Wireless-802.11', FROM_UNIXTIME(1625896412), FROM_UNIXTIME(1625896412), NULL, '0', 'RADIUS', 'CONNECT 0Mbps 802.11b', '', '0', '0', 'E0-63-DA-62-16-A5:test-free-T', '24-EE-9A-1C-64-FC', '', '', '', '', '', '', '', '')
- (11) sql: SQL query returned: success
- (11) sql: 1 record(s) updated
- rlm_sql (sql): Released connection (8)
- (11) [sql] = ok
- (11) [exec] = noop
- (11) attr_filter.accounting_response: EXPAND %{User-Name}
- (11) attr_filter.accounting_response: --> tt
- (11) attr_filter.accounting_response: Matched entry DEFAULT at line 12
- (11) [attr_filter.accounting_response] = updated
- (11) } # accounting = updated
- (11) Sent Accounting-Response Id 11 from 192.168.1.77:1813 to 192.168.1.250:33371 length 0
- (11) Finished request
- (11) Cleaning up request packet ID 11 with timestamp +229
- Waking up in 1.0 seconds.
- (1) Cleaning up request packet ID 1 with timestamp +225
- (2) Cleaning up request packet ID 2 with timestamp +225
- (3) Cleaning up request packet ID 3 with timestamp +225
- (4) Cleaning up request packet ID 4 with timestamp +225
- (5) Cleaning up request packet ID 5 with timestamp +225
- Waking up in 3.5 seconds.
- (6) Cleaning up request packet ID 6 with timestamp +229
- (7) Cleaning up request packet ID 7 with timestamp +229
- (8) Cleaning up request packet ID 8 with timestamp +229
- (9) Cleaning up request packet ID 9 with timestamp +229
- (10) Cleaning up request packet ID 10 with timestamp +229
- Ready to process requests
- </code>
Add Comment
Please, Sign In to add comment