Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions raddb/mods-available/files
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,12 @@ files files_accounting {
# key = "%{Stripped-User-Name || User-Name}"
filename = ${modconfdir}/files/accounting
}

#
# ## An instance of the `files` module for authorizing access for WiFi clients
# ## via their MAC address
# ## Based on https://wiki.freeradius.org/guide/Mac-Auth
#
files authorized_macs {
key = "%{Calling-Station-ID}"
}
5 changes: 5 additions & 0 deletions raddb/mods-config/authorized_macs/accounting
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This is like the 'users' file, but it is processed only for
# accounting packets.
#
# See the `accounting` file in the files mod for examples

14 changes: 14 additions & 0 deletions raddb/mods-config/authorized_macs/authorize
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#
# Configuration file for the rlm_files module.
# Please see rlm_files documentation for more information.
#
# This file contains authentication security and configuration
# information for each user. Accounting requests are NOT processed
# through this file. Instead, see the 'accounting' file in this directory.
#
# This file follows the same format as other instances of the files mod, see
# the `files/authorize` for more details and examples
#
# An example entry is below
#00-00-5E-00-53-FF
# Reply-Message = "Device with MAC Address %{Calling-Station-Id} authorized for network access"