Public Repository

Last pushed: 2 years ago
Short Description
RADIUS Extensible Authentication Protocol (EAP) command line test program
Full Description

eapol_test from wpa_supplicant, sends RADIUS EAP messages. Supports a variety of EAP methods (EAP-TLS, PEAP, EAP-TTLS-PAP, etc.)

Recommended Usage: docker run -v <localconfigdir>:/mnt rohanmahy/eapol_test /usr/local/wpa_supplicant-2.4/wpa_supplicant/eapol_test -c /mnt/<configfile> -a <radius-server-ip> -s <radius-secret>

where: <localconfigdir> is a local directory on the host computer with the eapol_test config file and certificate(s).

Sample config file for EAP-TTLS with inner PAP:

network={
        ssid="example"
        key_mgmt=WPA-EAP
        eap=TTLS
        identity="exampleuser[@example.com]"
        anonymous_identity="anonymous"
        password="examplepassword"
        phase2="auth=PAP"

        #  Comment out the following line to skip server certificate validation.
        ca_cert="/mnt/ca.der"
}

Building yourself
To reproduce this yourself you can use this Dockerfile:

FROM phusion/baseimage:latest

COPY wpa_supplicant-build-config.patch /usr/local/

RUN apt-get update && \
        apt-get install -y build-essential wget patch openssl libssl-dev && \
        apt-get clean && rm -rf /var/lib/apt/lists/*

RUN cd /usr/local/ && wget https://w1.fi/releases/wpa_supplicant-2.4.tar.gz && \
        tar xvfz wpa_supplicant-2.4.tar.gz && \
        cd wpa_supplicant-2.4/wpa_supplicant && \
        cp defconfig .config && \
        patch -p0 </usr/local/wpa_supplicant-build-config.patch && \
        make && make eapol_test && \
        ln -s eapol_test /usr/local/bin/eapol_test

CMD /usr/local/wpa_supplicant-2.4/wpa_supplicant/eapol_test

wpa_supplicant-build-config.patch just comments out the nl80211 kernel interface:

--- defconfig   2015-03-15 17:30:39.000000000 +0000
+++ .config     2015-08-12 20:00:00.322478352 +0000
@@ -29,7 +29,7 @@
 CONFIG_DRIVER_WEXT=y

 # Driver interface for Linux drivers using the nl80211 kernel interface
-CONFIG_DRIVER_NL80211=y
+#CONFIG_DRIVER_NL80211=y

 # driver_nl80211.c requires libnl. If you are compiling it yourself
 # you may need to point hostapd to your version of libnl.
Docker Pull Command
Owner
rohanmahy

Comments (0)