Anybus Defender series 4000, 6000
A switch capable of 802.1x authentication and has RADIUS capability.
Download FreeRADIUS. System -> Package Manager -> Available Packages and search for “freeradius” and download it.
Once installed go to Status -> Services and make sure radiusd has a green checkmark otherwise press the Start Service button, if it won’t start you will need to download the configuration file for the Defender under System -> Backup & Restore and “Download configuration as XML”, open it with notepad and search for <starts_on_sync/> and remove it, then upload the configuration file at Restore Backup, choose the file and then press the “Restore Configuration” button, the Defender will restart under the process.
Services -> FreeRADIUS -> NAS/Clients, here we will add the switch.
Client IP Address: IP of the switch, in this case 192.168.200.201
Client Shortname: To make it easier to identify
Client Shared Secret: This will be used to connect to the RADIUS server.
Client Protocol: UDPAnd save.
Under Services -> FreeRADIUS ->Users we will add the MAC addresses of the clients here. Press Add and you will see this screen:
In Username write the MAC address of the client in this way “b4-1a-62-11-bf-1b” then in Password write the same as in Username, Password Encryption should be Cleartext-Password.
Further down you will find VLAN Configuration:
Here write the VLAN ID the client should have and then save at the bottom.
Now you will need to create the VLANs, go to Interfaces -> Assignments -> VLANs and press Add. Parent Interface should be where the clients will connect and VLAN Tag should be the number you want the VLAN to have. Save.
Go to Interfaces -> Assignments and at Available network ports you can choose ex. “VLAN 10 on igb1 – lan”, press Add and you will create an interface for the VLAN.
Press the name of the new Interface and this will show:
Enable the Interface, change the Description to VLAN10 for example, change IPv4 Configuration Type from None to Static IPv4 and give it an IP.
Firewall -> Rules -> VLAN10 (or the name you used) and create the rules you want to have.
N-Tron Switch
To make Radius work with the switch first you need to enable 802.1x ports and make the VLANs on the switch.
Go to Redundancy -> CIST ports and disable CIST on the ports you plan to use for Radius.
Then go to Security -> 802.1x Ports -> Config and toggle Enabled.
Make sure Re-authentication and RADIUS-Assigned VLAN are Enabled.
Then go to Ports and on the ports you plan to use Radius with change the Admin State from Force Authorized to Port-Based 802.1x and toggle VLAN under Radius-Assigned.
Then press RADIUS at the top, go to Servers and the big + (called Add new RADIUS server) in the upper right.
Host: IP of the interface connected to the switch.
Auth Port: 1812
Acct Port: 1813
Secret Key: What you wrote in Client Shared Secret aboveThen go to Ports and VLANs -> VLANs and press the big + (called Add a new VLAN Group when hovered over) in the upper right.
Give it the same ID as the ones you created on the Defender.
Make sure that the port connected to the Defender is Tagged (filled in) and that the ports you plan to use are considered Untagged (Thick border)
Note: While this guide is for Kali it should be very similar for other Linux OS.
Step 1 — Place the CA Certificate
sudo mkdir -p /etc/ssl/radiussudo cp Freeradius+CA.crt /etc/ssl/radius/
sudo chmod 644 /etc/ssl/radius/Freeradius+CA.crtThis ensures NetworkManager can access the certificate.
Step 2 — Open Advanced Network Configuration
Step 3 — Edit or Create a Wired Connection
Step 4 — Configure 802.1X Authentication
Step 5 — Configure IP Settings (Optional)
Step 6 — Activate the Connection
journalctl -fLook for (It may look different):
EAP: Starting PEAP authentication
EAP-MSCHAPV2: Authentication succeeded
CTRL-EVENT-EAP-SUCCESSThis confirms the device authenticated successfully.
Windows 10 / 11
We’ll install the CA certificate so Windows trusts FreeRADIUS and configure wired 802.1X.
Step 1 — Install the CA Certificate
Windows will now trust the FreeRADIUS server certificate.
Step 2 — Configure Wired 802.1X
Step 3 — Test Connection
Command Prompt → ipconfig → You should see an IP address of the chosen VLAN
© HMS Networks AB 2026