# Forward a network from any RADIUS server to Trustaige RADIUS

> Keep FortiAuthenticator or any other RADIUS server, and forward one new SSID to Trustaige RADIUS, which decides each join by the device certificate.

Source: https://docs.trustaige.com/manage/forward-from-radius-server

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.

Any RADIUS server that can proxy a request by its attributes can hand one new
SSID to Trustaige RADIUS. Trustaige checks the device's certificate, its owner
and its posture on every join and answers through your server; everything
else your server does carries on as it is. Guides for
[Windows NPS](/manage/own-radius-nps), [Cisco ISE](/manage/forward-from-cisco-ise),
[Aruba ClearPass](/manage/forward-from-clearpass) and
[FreeRADIUS](/manage/forward-from-freeradius) give each one's screens; this
page is the recipe for any other, FortiAuthenticator included.

1. Device → Access point: joins the new SSID
2. Access point → Your RADIUS server: Access-Request, Called-Station-Id ends in the SSID
3. Your RADIUS server → Trustaige RADIUS: forwarded, with its own Proxy-State
4. Device ↔ Trustaige RADIUS: EAP-TLS, carried by the access point and your server
5. Trustaige RADIUS → Your RADIUS server: Access-Accept or Access-Reject, Proxy-State echoed
6. Your RADIUS server → Access point: passed back

## What your server must do

| Your server must | Why |
|---|---|
| Match the new SSID at the end of `Called-Station-Id` | Access points write it as their MAC, a colon, then the SSID. Forward only the SSIDs of networks the site serves. |
| Forward `Called-Station-Id` unchanged | Trustaige picks the network by the SSID in it, as on a site whose access points send directly. |
| Keep Message-Authenticator on the requests it forwards | Trustaige drops a request without it. EAP requests carry it. |
| Accept the `Proxy-State` it adds back in the reply | Trustaige returns every `Proxy-State` of a request, in order and unchanged, in every reply ([RFC 2865 §5.33](https://www.rfc-editor.org/rfc/rfc2865#section-5.33)). Proxying servers rely on it. |
| Pass the reply's attributes on to the access point | `Session-Timeout`, `Termination-Action`, any VLAN, and the MPPE keys the access point needs for the device's session. |
| Optionally, forward accounting to the next port | Trustaige accepts accounting on the port after the authentication port and shows who is connected now. |

The organization is the site where you register the server; nothing in a
forwarded request names it. Trustaige records the access point behind your
server by the `NAS-Identifier` it sent, else its `NAS-IP-Address`.

## In Trustaige

1. **Add the network.** Open **Devices › Networks**, choose **Add network**,
   and enter the new SSID. At **Server**, choose **Trustaige RADIUS**.

2. **Connect a site.** Open **Devices › Networks › Sites** and connect a site
   for the office your server serves. At **How it connects**, choose:
   - **Site connector**, the recommended route: install
     [Conduit](/manage/conduit) on the office network and turn on RADIUS on
     the connector. Your server forwards on the office network and needs no
     fixed address.
   - **Access points send RADIUS**: your server forwards from a fixed public
     address to UDP 1812, and 1813 for accounting.
   - **Controller over RadSec**: your server connects to TCP 2083 over TLS
     with a certificate the hub issues from its signing request.

3. **Register your server.** At **Access points**, choose **Your RADIUS
   server**, then **FortiAuthenticator** or **Other**. Name it, and enter its
   **Office network address** behind a connector, its **Public address**
   otherwise, or paste its signing request at a RadSec site.

4. **Disconnects.** Turn on **Passes disconnects on to its access points**
   only if your server forwards a Disconnect-Request from Trustaige to the
   access point holding the session. Otherwise leave it off and choose under
   **Devices sign in again every**: 15 minutes, 30 minutes, 1 hour (the
   default) or 4 hours.

5. **Copy the values:** the **Server** (or **Primary server** and **Secondary
   server**) and the **Port**, with the shared secret, shown once; at a RadSec
   site, the **Controller certificate** and the **Server roots to trust**.

6. **Networks.** Serve the new network at this site, and leave **Live test**
   open while you set up your server.

## The sign-in interval

With the switch off, every Access-Accept carries a `Session-Timeout` no
longer than the interval, with `Termination-Action` set to `RADIUS-Request`
([RFC 2865 §5.27, §5.29](https://www.rfc-editor.org/rfc/rfc2865#section-5.27)).
The access point has the device sign in again in place, and 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. Trustaige sends your server no
Disconnect-Request: **Disconnect now** on a session behind it takes effect
when the device next signs in.

With the switch on, Trustaige sends a Disconnect-Request to your server,
on UDP 3799 unless you change it on the site's page, carrying the session's
`Acct-Session-Id`, `Calling-Station-Id`, `User-Name` and `NAS-Identifier`.
Sessions come from accounting, so forward accounting too.

The site's page marks your server's row **Forwarding server** and states the
interval, for example **Devices sign in again every 1 hour**. Choose it to
change either setting.

## In your server

1. **Add Trustaige as a remote RADIUS server**, or proxy target, or home
   server: the address and port from the hub, the shared secret, and the
   accounting port after the authentication port. Add the secondary server
   as a failover, if the hub showed one.

2. **Add a rule for the new SSID:** `Called-Station-Id` ends with
   `:<your-ssid>`, forwarding to Trustaige. Put it ahead of rules that would
   match the same requests.

3. **Leave the reply alone.** Don't let the rule add, strip or replace
   attributes in Trustaige's reply.

4. **Forward accounting**, if your server can, for the same SSID. Don't
   forward Accounting-On or Accounting-Off of your own: Trustaige reads one as
   the end of every session behind your server.

## Check it works

- **Live test** in the hub shows your server as heard from and the join as it
  happens.
- **Devices › Networks › Activity** lists every join and refusal with the
  reason in a sentence, and reads "via" the access point, "forwarded by" your
  server.
- With accounting forwarded, the site's and the network's pages list the
  device under **Connected now**.

## Troubleshooting

**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. Register the address your server forwards from; behind a connector,
**Live test** lists the addresses the connector heard. Each server that
forwards is registered on its own, with its own shared secret.

**Activity says “The access point does not sign its requests. Turn on Message-Authenticator in its RADIUS settings.”**

Your server forwarded a request without Message-Authenticator. Turn on its
option to add or keep Message-Authenticator on requests to this server.

**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, or your server rewrote
`Called-Station-Id` before forwarding it. Serve the network at the site, and
forward the attribute unchanged.

**Your server reports no answer from Trustaige**

Nothing reached Trustaige or came back. Check the connector is online, or the
firewall allows the server out to the address and port in the hub, then the
shared secret: Trustaige drops a request it can't authenticate without
answering. Status checks work: Trustaige answers a Status-Server signed with
the shared secret.

**The join fails at your server after Trustaige accepts it**

Your server discarded the reply. Check that it matches replies by the
`Proxy-State` it added, which Trustaige returns unchanged, and that it
doesn't require an attribute Trustaige doesn't send.

## What hasn't been confirmed yet

Trustaige's lab hasn't yet recorded FortiAuthenticator forwarding to Trustaige
RADIUS. FortiAuthenticator adds a remote RADIUS server under **Authentication
› Remote Auth. Servers › RADIUS**, with **Proxy** as its **Preferred auth.
method**, which passes the authentication session on unchanged. Fortinet
doesn't say whether that carries EAP-TLS, or how a RADIUS policy picks the
remote server by `Called-Station-Id`. Until it's confirmed, forward from
another server, or let FortiAuthenticator admit devices itself as [its own
guide](/manage/own-radius-fortiauthenticator) shows.

Whether any given server keeps `Class` from Trustaige's reply, which the
access point echoes in accounting and Trustaige uses to tie a session to its
device, depends on the server. Without it, sessions still appear on the
site's page, without the device's name.

## Documentation

- [FortiAuthenticator: remote RADIUS servers](https://docs.fortinet.com/document/fortiauthenticator/6.5.0/administration-guide/647)
- [RFC 2865: RADIUS](https://www.rfc-editor.org/rfc/rfc2865)
- [RFC 2866: RADIUS Accounting](https://www.rfc-editor.org/rfc/rfc2866)
- [RFC 3580: IEEE 802.1X RADIUS usage guidelines](https://www.rfc-editor.org/rfc/rfc3580), which puts the SSID in `Called-Station-Id`
- [RFC 5176: Dynamic authorization (Disconnect-Request)](https://www.rfc-editor.org/rfc/rfc5176)
- [RFC 6614: RADIUS over TLS](https://www.rfc-editor.org/rfc/rfc6614)
