Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

RADIUS (radius)

Reached from

Lower layerSelectorValue
udpdst_port / src_port1812 (0x0714)
udpdst_port / src_port1813 (0x0715)

Fields

FieldTypeDefaultAutoDescription
codeenum(8)1 (access_request)RADIUS packet type (Access-Request, Access-Accept, Accounting-Request, …).
identifieruint(8)0Identifier matching requests and replies.
lengthuint(16)Length of the header and payload in octetsLength of the whole RADIUS packet, in octets (Auto).
authenticatorbytes(16)00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0016-octet Request / Response Authenticator (Manual).
attributestlv — length - 20 octets2 itemsRADIUS attributes (8-bit type, 8-bit length including the header).

code

ValueName
1 (0x01)access_request
2 (0x02)access_accept
3 (0x03)access_reject
4 (0x04)accounting_request
5 (0x05)accounting_response
11 (0x0b)access_challenge
12 (0x0c)status_server
40 (0x28)disconnect_request
41 (0x29)disconnect_ack
42 (0x2a)disconnect_nak
43 (0x2b)coa_request
44 (0x2c)coa_ack
45 (0x2d)coa_nak

attributes

  • Type 8 bits, length 8 bits.
  • The length counts the type and length fields too.
  • Unknown types are kept as raw value octets.
TypeNameValue fieldsDescription
1 (0x01)user_name
2 (0x02)user_password
3 (0x03)chap_password
4 (0x04)nas_ip_addressaddress
5 (0x05)nas_portvalue
6 (0x06)service_typevalue
7 (0x07)framed_protocolvalue
8 (0x08)framed_ip_addressaddress
18 (0x12)reply_message
24 (0x18)state
25 (0x19)class
26 (0x1a)vendor_specificvendor_id, value
27 (0x1b)session_timeoutvalue
30 (0x1e)called_station_id
31 (0x1f)calling_station_id
32 (0x20)nas_identifier
40 (0x28)acct_status_typevalue
44 (0x2c)acct_session_id
61 (0x3d)nas_port_typevalue
79 (0x4f)eap_message
80 (0x50)message_authenticator

attributes › nas_ip_address

FieldTypeDefaultAutoDescription
addressipv4

attributes › nas_port

FieldTypeDefaultAutoDescription
valueuint(32)

attributes › service_type

FieldTypeDefaultAutoDescription
valueuint(32)

attributes › framed_protocol

FieldTypeDefaultAutoDescription
valueuint(32)

attributes › framed_ip_address

FieldTypeDefaultAutoDescription
addressipv4

attributes › vendor_specific

FieldTypeDefaultAutoDescription
vendor_iduint(32)
valuebytes — rest of the PDU

attributes › session_timeout

FieldTypeDefaultAutoDescription
valueuint(32)

attributes › acct_status_type

FieldTypeDefaultAutoDescription
valueuint(32)

attributes › nas_port_type

FieldTypeDefaultAutoDescription
valueuint(32)

Constraints

LevelRule
warninglength within 20..4096

Sample templates