User Tools

Site Tools


technical:8021x

802.1x

Cisco IOS

Server Profile

username <radius-user> password <password>
!
radius server <server>
 address ipv4 <ip> auth-port 1812 acct-port 1813
 automate-tester username <radius-user> ignore-acct-port
 key <key>
!
aaa group server radius <group>
 server name <server>
 ip radius source-interface <interface>
!
ip radius source-interface <interface>

AAA Profile

aaa new-model
aaa session-id common
aaa authentication dot1x default group radius
aaa accounting dot1x default start-stop group radius
aaa accounting update newinfo

MAB

Interface Configuration

interface <interface>
 switchport mode access
 authentication periodic
 authentication port-control auto
 mab

Global Configuration

mab request format attribute 1 groupsize 2 separator : lowercase
authentication mac-move permit
dot1x system-auth-control

CoA

aaa server radius dynamic-author
 client <ip> server-key <key>

Dynamic VLAN

RADIUS Attributes

radius-server attribute 6 on-for-login-auth
radius-server attribute 32 include-in-access-req 

FreeRADIUS

MAB

RADIUS Client Configuration

/etc/raddb/clients.conf

client <name> {
    ipv4addr = <ip>
    proto = udp
    secret = <key>
    nas_type = cisco

Users Configuration

/etc/raddb/users

<mac>       Cleartext-Password := "<mac>"
            Tunnel-Type = 13,
            Tunnel-Medium-Type = 6,
            Tunnel-Private-Group-Id = <vlan>
             
DEFAULT        Cleartext-Password := "%{User-Name}"
               Tunnel-Type = 13,
               Tunnel-Medium-Type = 6,
               Tunnel-Private-Group-ID := 999

WPA2/3 EAP-TLS

Linux

MAB

EAP-TLS

OpenVPN RADIUS Plugin

Go RADIUS

technical/8021x.txt · Last modified: 2024/12/14 09:14 by 127.0.0.1