A simple RADIUS server for MAC-authentication.
A docker image has been created based on alpine:3.18
docker run -d -p 1812:1812/udp -v ./config.ini:/etc/radius-mac/config.ini ghcr.io/jcbshw/radius-mac:latest
# standard build
make
# build for mipsel (eg. UniFi EdgeRouter X)
make mipsel
cp src/radius-mac /usr/bin
# add systemd service
cp config.ini /etc/radius-mac.ini
cp radius-mac.service /etc/system/systemd/
systemctl daemon-reload
systemctl start radius-mac.service
# enable at boot
systemctl enable radius-mac.service