RADIUS (radius)
- レイヤ: アプリケーション・制御
- ヘッダ: 可変長
- 補足: アプリケーションプロトコル
下位レイヤからの到達
フィールド
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
code | enum(8) | 1 (access_request) | RADIUS パケット種別 (Access-Request、Access-Accept、Accounting-Request など)。 | |
identifier | uint(8) | 0 | 要求と応答を対応付ける識別子。 | |
length | uint(16) | ヘッダとペイロードの長さ (オクテット単位) | RADIUS パケット全体の長さ (オクテット、自動)。 | |
authenticator | bytes(16) | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | 16 オクテットの Request / Response Authenticator (手動)。 | |
attributes | tlv — length - 20 オクテット | 2 要素 | RADIUS 属性 (8 ビット型、ヘッダを含む 8 ビット長)。 |
code
| 値 | 名前 |
|---|---|
| 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
- タイプ 8 ビット、長さ 8 ビット。
- 長さはタイプと長さのフィールドも含みます。
- 未知のタイプは値をオクテット列のまま保持します。
| タイプ値 | 名前 | 値のフィールド | 説明 |
|---|---|---|---|
| 1 (0x01) | user_name | ||
| 2 (0x02) | user_password | ||
| 3 (0x03) | chap_password | ||
| 4 (0x04) | nas_ip_address | address | |
| 5 (0x05) | nas_port | value | |
| 6 (0x06) | service_type | value | |
| 7 (0x07) | framed_protocol | value | |
| 8 (0x08) | framed_ip_address | address | |
| 18 (0x12) | reply_message | ||
| 24 (0x18) | state | ||
| 25 (0x19) | class | ||
| 26 (0x1a) | vendor_specific | vendor_id, value | |
| 27 (0x1b) | session_timeout | value | |
| 30 (0x1e) | called_station_id | ||
| 31 (0x1f) | calling_station_id | ||
| 32 (0x20) | nas_identifier | ||
| 40 (0x28) | acct_status_type | value | |
| 44 (0x2c) | acct_session_id | ||
| 61 (0x3d) | nas_port_type | value | |
| 79 (0x4f) | eap_message | ||
| 80 (0x50) | message_authenticator |
attributes › nas_ip_address
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
address | ipv4 |
attributes › nas_port
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
value | uint(32) |
attributes › service_type
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
value | uint(32) |
attributes › framed_protocol
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
value | uint(32) |
attributes › framed_ip_address
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
address | ipv4 |
attributes › vendor_specific
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
vendor_id | uint(32) | |||
value | bytes — PDU の残りすべて |
attributes › session_timeout
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
value | uint(32) |
attributes › acct_status_type
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
value | uint(32) |
attributes › nas_port_type
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
value | uint(32) |
制約
| レベル | 規則 |
|---|---|
| 警告 | length が 20..4096 の範囲 |
サンプルテンプレート
- radius-access-request —
templates/protocols/app/radius-access-request.wpg.yaml