-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (31 loc) · 1.57 KB
/
Dockerfile
File metadata and controls
39 lines (31 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM --platform=linux/amd64 ubuntu:24.04
LABEL architecture="amd64" \
maintainer="github.com/miniradius" \
desc="RADIUS CLI utilities from FreeRADIUS (eapol_test, radclient, radcrypt, radeapclient, radlast, radperf, radsecret, radsniff, radsqlrelay, radtest, radwho, radzap)"
ARG DEBIAN_FRONTEND=noninteractive
ARG DEBCONF_NOWARNINGS=yes
ARG WPA_SUPPLICANT_VERSION=2.11
# Init bind9-utils, dpkg, freeradius-comon (dictionary) freeradius-utils (tools) and others
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
--no-install-recommends ca-certificates bind9-utils curl freeradius-common freeradius-utils git \
build-essential pkg-config libssl-dev libnl-3-dev libnl-genl-3-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists
# Install eapol_test
RUN git clone --depth 1 --single-branch --branch v3.2.x https://github.com/FreeRADIUS/freeradius-server.git && \
/freeradius-server/scripts/ci/eapol_test-build.sh && \
cp /freeradius-server/scripts/ci/eapol_test/eapol_test /usr/bin/ && \
rm -rf /freeradius-server
# Install radperf
RUN curl -O https://networkradius.com/assets/packages/radperf/radperf_2.0.1_amd64.deb && \
dpkg -i radperf_2.0.1_amd64.deb && \
rm -f radperf_2.0.1_amd64.deb && \
apt-get remove -y curl && \
apt-get autoremove -y && \
ln -s /usr/sbin/radperf /usr/bin/radperf && \
ln -s /usr/share/freeradius/* /usr/share
# CSV (user,password pairs) for radperf
COPY ./accounts-10.csv ./accounts-100.csv ./accounts-1000.csv /accounts/
# Launching a shell for interactive work
CMD ["/bin/bash"]