# General Structure

## Rule Collection

{% hint style="info" %}
We recommend providing descriptive names for your rules, as this will allow them to be clearly identifiable in the Insight [Log](/admin-portal/insights/log.md)s.
{% endhint %}

Every Rule can have a **Name, Description** and is specified for a specific authentication type.\
Currently you can define a rule for **Wi-Fi**, **LAN** and **VPN**. Furthermore, you can **Enable** or **Disable** each rule.

<figure><img src="/files/yKoACUKpPRaZiZePgQfs" alt=""><figcaption><p>Showing various rules</p></figcaption></figure>

## SSID, Access Point (AP) and Switch MAC Groups

{% hint style="info" %}
For **Wi-Fi** and **Wired/LAN** networks only!
{% endhint %}

To restrict access to specific networking infrastructure elements, such as APs, SSIDs or network switches, you have two options:&#x20;

1. Add the respective **MAC** **address(es)** or **SSID(s)** directly in the Rule collection.
2. Create **Groups** that allow you to add multiple targets and manage them more efficiently. This way, items can be added or removed without the need to touch the Rule itself, as the Rule will only reference the Group.&#x20;

{% hint style="info" %}
Should you have a large number of MAC addresses that you wish to add, you can import them from the following file types: .xlsx, .xls or .csv file.

The maximum number of MAC addresses that can be imported depends on a number of factors, including the number of rules you have configured.
{% endhint %}

<figure><img src="/files/qZzzwSk0Ocp5HXulvjf1" alt="" width="413"><figcaption></figcaption></figure>

<figure><img src="/files/LHg8GtkgHKOFkZZiUMbE" alt=""><figcaption></figcaption></figure>

## Trusted NAS Identifiers and IP Addresses

{% hint style="info" %}
For **VPN** networks only!
{% endhint %}

When using RADIUSaaS for authenticating a VPN, the authentication requests can be limited to certain Network Access Servers (NAS) by allow-listing their identifier or IP address.&#x20;

1. Add the respective **NAS Identifier(s)** or **NAS IP Address(es)** directly in the Rule collection
2. Create Groups that allow you to add multiple targets and manage them more efficiently. This way, items can be added or removed without the need to touch the Rule itself, as the Rule will only reference the Group.&#x20;

<figure><img src="/files/1IYnEyaVHYnCYw2PzMMn" alt="" width="278"><figcaption></figcaption></figure>

## Custom Certificate Extensions

If you have your own PKI and want to assign VLAN IDs based on the value of a custom certificate extension (OID), you can make that mapping information available to RADIUSaaS under **Custom Certificate Extensions.** Once you have specified such a custom extension, you can reference it in any rule and assign VLANs based on the raw or filtered extension value.

{% hint style="info" %}
Currently it is not supported to add custom certificate extensions to SCEP profiles in many MDM systems, including Microsoft Intune and Jamf Pro.

We therefore recommend using the Certificate Subject Name instead to [dynamically assign VLANs](/admin-portal/settings/rules.md#vlan-assignment).
{% endhint %}

<img src="/files/KChLETNrAIOeBcSlOSdI" alt="Showing VLAN assignment by Certificate Extension" width="268">

<figure><img src="/files/n8KnM49EIkGPLrhHHJki" alt=""><figcaption><p>Showing a Certificate Extension</p></figcaption></figure>

## VLAN Attributes

This section allows the configuration of vendor-specific VLAN attributes that RADIUSaaS will return if a relevant rule (static or dynamic VLAN tagging enabled) is matched. In case the pre-configured values lead to issues with your networking equipment, they can be removed from here, too.

<figure><img src="/files/vnfkMuPq9cnrNXs9djB1" alt=""><figcaption></figcaption></figure>

## RADIUS Attributes

In this section, vendor-specific attributes (VSAs) can be managed. The attributes configured here can then be used in your rules under [**Additional RADIUS Return Attributes**](/admin-portal/settings/rules.md#additional-radius-return-attributes).

<figure><img src="/files/o9vaO8N6kI1uN9yUm9s3" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.radiusaas.com/admin-portal/settings/rules/general-structure.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
