Score:1

Any way to do virtual 802.1x inside Linux?

id flag

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?

pt flag
[This question](https://superuser.com/questions/1059987/how-can-i-quickly-set-up-a-lab-with-802-1x-wired-authentication-without-a-swit) seems to have links to examples of setting up the server side, and [this article](https://help.ubuntu.com/community/Network802.1xAuthentication) shows how to set up wpa_supplicant for a wired connection.
A. Trevelyan avatar
id flag
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.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.