eapol_test for testing different
EAP protocols without the actual
infrastructure.eapol_testeapol_test is a part of wpa_supplicant
suite eapol_test, you can test the
system without the hardware client, supplicant, and wireless access
point.eapol_test configuration
.config file is in directory
wpa_supplicant/. After creating or updating it,
always rerun make eapol_test
because the eapol_test target is not a part of the
default make target.Line 19: unknown EAP method 'SIM' You may need to add support for this EAP method during wpa_supplicant build time configuration. See README for more information.
CONFIG_EAP_SIM to .config file
and re-compile:echo CONFIG_EAP_SIM=y >> .config make eapol_test
password="Ki:OPc" in eapol_test
.config file, eapol_test must be
compiled with the internal GSM-Milenage implementation. If it is not
compiled, the authentication process gives the following error
message:EAP-SIM: 3 challenges EAP-SIM: GSM authentication algorithm EAP-SIM: No GSM authentication algorithm enabled EAP-SIM: GSM authentication failed
eapol_test with the internal GSM-Milenage
implementation:echo CONFIG_SIM_SIMULATOR=y >> .config make eapol_test
password="Ki:OPc:SQN" in eapol_test
.config file.echo CONFIG_EAP_AKA=y >> .config echo CONFIG_EAP_AKA_PRIME=y >> .config echo CONFIG_USIM_SIMULATOR=y >> .config make eapol_test
eapol_test or Wi-Fi client device with that supports
one of the SIM based EAP methods./opt/radiator/radiator-sim/goodies/simcards.dat
in a directory writable by Radiator process. Radiator will update the
file in the directory:
sudo mkdir /etc/radiator/simcards sudo cp /opt/radiator/radiator-sim/goodies/simcards.dat /etc/radiator/simcards/ sudo chown radiator:radiator /etc/radiator/simcards/
/opt/radiator/radiator-sim/goodies/wxmap.cfg to
/etc/radiator/radiator-wxmap.conf/etc/radiator/radiator-wxmap.conf is set up
correctly.
3GPPCardDatabaseFilename %D/simcards/simcards.dat
/var/log/radiator/ that the server has started
correctly.
sudo systemctl start radiator@wxmap
/opt/radiator/radiator-sim/goodies/eap_sim_wx.cfg
to /etc/radiator/radiator-eapsim.conf/var/log/radiator/ that the server has started
correctly.
sudo systemctl start radiator@eapsim
eapol_test
with a configuration that simulates the card. The values in
sim-simulator.conf match values in
simcards.dat.eapol_test -p 1645 -s mysecret -c
/opt/radiator/radiator-sim/goodies/sim-simulator.conf
<Client
DEFAULT> in radiator-eapsim.conf
for the shared secret value. The secret defaults to
mysecret. Configure the Wi-Fi client device to
use EAP-SIM and follow the authentication in the Radiator log file.
UseTMSI and UseReauthentication
flags in the Radiator EAP server
configuration file./opt/radiator/radiator-sim/goodies/eap_aka_wx.cfg
and
/opt/radiator/radiator-sim/goodies/aka-simulator.conf
for Radiator and eapol_test, respectively.
EAP-AKA' files are named eap_aka_prime_wx.cfg and
aka-prime-simulator.confcd /opt/radiator/radiator-sim/ ./goodies/gettriplets -pin 1234 >>/path/to/triplets.dat
/etc/radiator/radiator-wxmap.conf file. Ensure
that Radiator process can access and read the file. Comment out
3GPPCardDatabaseFile parameter.
TripletsFile /path/to/triplets.dat # 3GPPCardDatabaseFilename %D/simcards/simcards.dat
/var/log/radiator/ that the server has
started correctly.
sudo systemctl restart radiator@wxmap
/var/log/radiator/ that the server has started
correctly.
sudo systemctl restart radiator@eapsim
UseTMSI and UseReauthentication
flags in the Radiator EAP server
configuration file.