Skip to content

Commit 648ea9a

Browse files
committed
radiusd: enable status server
1 parent 69bb484 commit 648ea9a

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

radiusd/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ RUN rm -rf /secrets
2424

2525
USER freerad
2626
EXPOSE 1812/tcp 1812/udp
27+
EXPOSE 18121/tcp 18121/udp
2728
CMD ["/run.sh"]

radiusd/raddb/sites-enabled/status

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
server status {
2+
listen {
3+
type = status
4+
ipaddr = 127.0.0.1
5+
port = 18121
6+
}
7+
8+
client admin {
9+
ipaddr = 127.0.0.1
10+
secret = maplenutbunny
11+
}
12+
13+
authorize {
14+
ok
15+
Autz-Type Status-Server {
16+
ok
17+
}
18+
}
19+
}

radiusd/run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#!/bin/bash -xe
2+
23
RADIUS_SECRET=${RADIUS_SECRET:-testing123}
34
sed -i -e "s/__RADIUS_SECRET__/${RADIUS_SECRET}/g" /etc/freeradius/3.0/clients.conf
5+
46
if [[ "${RADIUS_DEBUG}" = "1" ]];then
57
isdebug=-xx
68
else
79
isdebug=
810
fi
11+
912
exec /usr/sbin/freeradius $isdebug -f -lstdout

0 commit comments

Comments
 (0)