1

I'm trying to test out 802.1x in a virtual environment but I haven't been able to find any good resources/guides on how to do that.

The scenario is something like this:

  1. I have a Linux host machine (OS: ubuntu jammy) with a couple of lxc containers running

  2. Both of the containers are connected to a linux bridge, so they can communicate with each other directly. (like a miniature 2-node network inside the main machine)

  3. One of the containers is running FreeRadius

  4. I want the other other container to authenticate itself to the network using the first (radius) container as the authentication server, so i can be able to play around with things like EAP-TLS and various 802.1x capabilities and see how it looks.

hostapd says it can be used as an authenticator, but all the guides and videos I've been able to find online only talk about using it to set up a linux machine as a wireless access point or hotspot - never any mention of just using hostapd to authenticate itself on a wired network.

I understand that this isn't an ideal setup and in the real world you would probably want this functionality offloaded to the switch instead of being on the client, but for testing purposes - can it be done?

2
  • 2
    This question seems to have links to examples of setting up the server side, and this article shows how to set up wpa_supplicant for a wired connection.
    – larsks
    Oct 18, 2022 at 23:12
  • Thanks, I'll go through these and see if there's anything I can use or if I have to scrap my setup and do it like they describe. Oct 19, 2022 at 16:20

0

You must log in to answer this question.

Browse other questions tagged .