# Forward a network from Windows NPS to Trustaige RADIUS

> Keep NPS for the networks it serves today, and forward one new SSID to Trustaige RADIUS, which admits devices by their Trustaige certificates.

Source: https://docs.trustaige.com/manage/own-radius-nps

Replace these placeholders with your organization's own values:

- `<your-ssid>`: Network name (SSID), for example `Acme-Secure`. The Wi-Fi name the network broadcasts, as entered in the hub.
- `<your-radius-server>`: Trustaige RADIUS server, for example `203.0.113.10`. The Server, or Primary server, the hub shows when you register your RADIUS server at a site.

NPS can't admit a device by its Trustaige certificate. For EAP-TLS, NPS maps
each client certificate to an Active Directory account, and a device managed
by Trustaige alone has none. Since
[KB5014754](https://support.microsoft.com/en-us/topic/kb5014754-certificate-based-authentication-changes-on-windows-domain-controllers-ad2c23b0-15d8-4340-a468-4d4f3b188f16),
that mapping must also be strong, so there is no lighter rule to fall back to.

So leave NPS as it is, and add one new network. Your access points send its
requests to NPS as they do today; NPS forwards that SSID, and only that SSID,
to Trustaige RADIUS. Trustaige checks the device's certificate, its owner and
its posture on every join and answers through NPS. Everything else NPS serves,
your existing Wi-Fi and VPN included, carries on untouched, and you can move
people across one group at a time.

1. Device → Access point: joins the new SSID
2. Access point → NPS: Access-Request, Called-Station-Id ends in the SSID
3. NPS → Trustaige RADIUS: forwarded by the connection request policy
4. Device ↔ Trustaige RADIUS: EAP-TLS, carried by the access point and NPS
5. Trustaige RADIUS → NPS: Access-Accept or Access-Reject
6. NPS → Access point: passed back

The TLS session runs between the device and Trustaige RADIUS. NPS relays it
and can't read it.

## Before you start

| You need | Why |
|---|---|
| NPS on Windows Server, already serving your access points | It stays their RADIUS server. |
| A [site connector](/manage/conduit) on the office network, or a fixed public address for NPS | NPS forwards to the connector on the office network, or straight to Trustaige from its public address. Trustaige recognises NPS by the address its requests come from. |
| Access points that send the SSID in `Called-Station-Id` | NPS and Trustaige both tell the network apart by it, written as the access point's MAC, a colon, then the SSID. Most controllers do this by default. |
| Permission in Trustaige to manage devices | Networks and sites live under **Devices**. |

## In Trustaige

1. **Add the network.** Open **Devices › Networks**, choose **Add network**,
   and enter the new SSID. At **Server**, choose **Trustaige RADIUS**. Finish
   the wizard; devices of the people you chose receive the profile.

2. **Connect a site.** Open **Devices › Networks › Sites** and connect a site
   for the office NPS serves. At **How it connects**, choose:
   - **Site connector**, the recommended route. Install Conduit on an
     always-on computer on the office network and turn on RADIUS on the
     connector. NPS then forwards on the office network, and needs no fixed
     address.
   - **Access points send RADIUS**, if NPS reaches the internet from a fixed
     public address. Allow outbound UDP 1812, and 1813 for accounting, from
     NPS.

3. **Register NPS.** At **Access points**, choose **Your RADIUS server**, then
   **Windows NPS** as the make. Name it (for example `Head office NPS`) and
   enter its address: behind a connector, its **Office network address**, the
   one the connector hears it from; otherwise its **Public address**, the one
   its requests reach the internet from.

4. **Choose how often devices sign in again.** NPS doesn't pass a
   Disconnect-Request on to the access point, so leave **Passes disconnects on
   to its access points** off. Under **Devices sign in again every**, choose
   15 minutes, 30 minutes, 1 hour (the default) or 4 hours, then choose
   **Register server**.

   Every Access-Accept then carries a `Session-Timeout` no longer than that,
   with `Termination-Action` set to `RADIUS-Request`, so the access point has
   the device sign in again in place. A device that lost its standing, or
   whose owner left, is refused at that sign-in. Signing in again is resumed
   and takes a moment.

5. **Copy the values.** The hub shows the **Server** address (or a **Primary
   server** and **Secondary server**), the **Port**, and the shared secret.
   The shared secret is shown once, so keep the page open until NPS has it.

6. **Networks.** Serve the new network at this site.

7. Leave **Live test** open while you set up NPS below, then join from a
   device at the site.

## In NPS

1. **Add Trustaige as a remote RADIUS server group.** In the NPS console,
   open **RADIUS Clients and Servers**, right-click **Remote RADIUS Server
   Groups** and choose **New**. Name the group `Trustaige RADIUS`, choose
   **Add**, and enter the server address from the hub:

   ```txt title="Server"
   <your-radius-server>
   ```

   On the **Authentication/Accounting** tab, enter the shared secret in
   **Shared secret** and **Confirm shared secret**, and set the
   authentication port to the **Port** from the hub. The accounting port is
   the one after it: `1813` when the port is `1812`. Clear **Forward network
   access server start and stop notifications to this server**: Trustaige
   reads a start or stop notification from NPS as the end of every session
   behind it. If the hub showed a secondary server, add it the same way.

2. **Add a connection request policy for the new SSID.** Under **Policies**,
   right-click **Connection Request Policies** and choose **New Connection
   Request Policy**. Name it `Trustaige network`.

3. **Condition.** Add **Called Station ID** with this pattern, the new SSID at
   the end of the attribute:

   ```txt title="Called Station ID"
   :<your-ssid>$
   ```

   NPS reads it as a regular expression. If the SSID has `.`, `(`, `)`, `[`,
   `+`, `*`, `?` or `$` in it, put `\` before each.

4. **Forwarding.** Choose **Forward requests to the following remote RADIUS
   server group for authentication** and pick `Trustaige RADIUS`.

5. **Accounting, if you want it.** Under **Accounting**, check **Forward
   accounting requests to this remote RADIUS server group** to see who is
   connected now. Trustaige records each session from the accounting your
   access points send, and shows it under **Connected now** on the site's and
   the network's pages.

6. **Order.** Finish the wizard, then move `Trustaige network` above the
   default connection request policy, so NPS reaches it first. Requests for
   every other SSID still fall through to the policies you have today.

## On your access points

Add the new SSID with WPA3-Enterprise or WPA2-Enterprise, as you chose in the
hub, and the same RADIUS server they use today: NPS. To forward accounting,
keep accounting on for the new SSID, pointed at NPS. Nothing else changes on
them. Keep Message-Authenticator on: EAP requests carry it, NPS signs the
requests it forwards with it, and Trustaige refuses requests without it.

## Check it works

- **Live test** in the site's wizard shows the join as it happens, and NPS as
  heard from.
- **Devices › Networks › Activity** lists every join and refusal, with the
  reason in a sentence and the site. A forwarded join reads "via" the access
  point, by the `NAS-Identifier` it sent (else its address), "forwarded by"
  NPS.
- On the site's page, NPS's row is marked **Forwarding server** and reads
  **Devices sign in again every 1 hour**, or the interval you chose. Choose
  it to change the interval.

## Troubleshooting

**NPS logs “Reason Code: 49”: “The RADIUS request did not match any configured connection request policy”**

No connection request policy matched the request. Check that the access point
sends `Called-Station-Id` with the SSID after a colon, and that your pattern
ends with the SSID exactly, including case. If you removed the default policy,
every other SSID now matches nothing; put it back last in the list.

**Activity says “An access point that is not registered sent a request.”**

Trustaige received the request from an address that isn't registered at the
site. Behind a connector, NPS forwarded from another of its office addresses:
**Live test** lists the addresses the connector heard, and lets you register
one there. Without a connector, NPS's requests reach the internet from a
different address than the one you entered, often a firewall's; remove NPS in
the hub and register it again with that address. A second NPS server is
registered on its own, with its own shared secret.

**Activity says “The access point asked for a network this site does not serve.”**

The SSID in the request isn't one the site serves. Serve the network at the
site under **Devices › Networks › Sites**, and check that the SSID on the
access points is the one in the hub.

**NPS says the remote RADIUS server didn't respond**

Nothing reached Trustaige or came back. Behind a connector, check that the
connector is online and that NPS forwards to the connector's addresses and
port from the hub. Without one, allow outbound UDP 1812 from NPS to the server
address in the hub. Then check the shared secret: Trustaige drops a request it
can't authenticate without answering.

**Activity says “The device presented no certificate. Its network profile or certificate is missing.”**

The device hasn't received the network's profile or its certificate yet. Open
the network in the hub: **Devices** lists each device and why it can't join
yet.

**Connected now stays empty**

Trustaige has no accounting for the site. Check that the connection request
policy forwards accounting, that the accounting port is the one after the
authentication port, and that the access points send accounting to NPS for
the new SSID.

**NPS refuses Trustaige devices with “Reason Code: 16” on an SSID NPS authenticates itself**

That's NPS failing to map the certificate to an Active Directory account. It's
why this guide forwards the network instead. Join the new SSID, not one NPS
authenticates.

## What hasn't been confirmed yet

Trustaige's lab hasn't yet recorded whether NPS passes on, unchanged, the
`Class` attribute Trustaige returns, which the access point echoes in its
accounting. Trustaige uses it to tie each session to its device. Without it,
sessions still appear on the site's page, without the device's name.

## Microsoft's documentation

- [Connection request policies](https://learn.microsoft.com/en-us/windows-server/networking/technologies/nps/nps-crp-crpolicies)
- [Configure connection request policies](https://learn.microsoft.com/en-us/windows-server/networking/technologies/nps/nps-crp-configure)
- [Configure remote RADIUS server groups](https://learn.microsoft.com/en-us/windows-server/networking/technologies/nps/nps-crp-rrsg-configure)
- [Use regular expressions in NPS](https://learn.microsoft.com/en-us/windows-server/networking/technologies/nps/nps-crp-reg-expressions)
- [KB5014754: Certificate-based authentication changes on Windows domain controllers](https://support.microsoft.com/en-us/topic/kb5014754-certificate-based-authentication-changes-on-windows-domain-controllers-ad2c23b0-15d8-4340-a468-4d4f3b188f16)
