> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/rpr/3.0/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/rpr/3.0/releases/3.0.0.md).

# RADIUS Proxy 3.0.0

**Release date:** 2024-03-08

In this release of RADIUS Proxy (RPR), we provide the following features and bug fixes:

- New configuration format
- Use DNS resolver with the cache to reduce DNS calls
- Add the ability to export the incoming RADIUS messages to [NATS](https://nats.io/)
- The `vxlan` configuration options were removed
- Add the missing `NET_ADMIN` capabilities for [Ping Exporter](https://docs.cennso.com/components/rpr/3.0/installation/configuration.md#ping-exporter-configuration)

## Features

### New configuration format

RADIUS Proxy in version `3.0.0` provides an updated configuration format. The format and structure of some configuration options changed. The new configuration format is not backward compatible with the configuration format of RADIUS Proxy in versions `2.x.x`. To get more information about the new RADIUS Proxy configuration, see the [RADIUS Proxy settings](https://docs.cennso.com/components/rpr/3.0/configuration/proxy-settings.md) document and the [Migration guide](#migration-guide).

### Use DNS resolver with the cache to reduce DNS calls

If a RADIUS Proxy client was given a hostname, it was always resolved to an IP address before sending a request. RADIUS Proxy in version `3.0.0` uses a different DNS resolver that provides caching abilities to reduce the number of DNS requests.

### Add the ability to export the incoming RADIUS messages to NATS

RADIUS Proxy in version `3.0.0` provides an **experimental** feature to export the incoming RADIUS messages into [NATS](https://nats.io/). For more information, see the [Integration with NATS](https://docs.cennso.com/components/rpr/3.0/configuration/nats.md) document.

### The `vxlan` configuration options were removed

As mentioned in the [RADIUS Proxy 2.2.0 release notes](https://docs.cennso.com/components/rpr/3.0/releases/2.2.0.md), the support for the `vxlan` configuration options was deprecated. RADIUS Proxy in version `3.0.0` does not provide `vxlan` configuration options anymore.

## Fixes

### Add the missing `NET_ADMIN` capabilities for Ping Exporter

The `NET_ADMIN` capability was missing in the [security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) of the [Ping Exporter](https://docs.cennso.com/components/rpr/3.0/installation/configuration.md#ping-exporter-configuration) container. RADIUS Proxy in version `3.0.0` provides a fix for that.

## Migration guide

### `2.2.0` -> `3.0.0`

Since the configuration format is not backward compatible with RADIUS Proxy in version `< 3.0.0`, you should carefully read the [RADIUS Proxy settings](https://docs.cennso.com/components/rpr/3.0/configuration/proxy-settings.md) document for detailed information on how to configure RADIUS Proxy. The following sections describe what was changed in RADIUS Proxy `3.0.0`.

#### Common RADIUS configuration

The **radius.histogram_buckets** is now an array of buckets instead of a string.

In RADIUS Proxy `< 3.0.0`:

```yaml
radius:
  histogram_buckets: "10, 50, 100, 1000, 5000, 15000"
```

In RADIUS Proxy `3.0.0` and higher:

```yaml
radius:
  histogram_buckets: [10, 50, 100, 1000, 5000, 15000]
```

The following configuration options must be integer numbers and not strings:

- **radius.recbuf**
- **radius.sndbuf**
- **radius.client_ports**
- **radius.resend_timeout**
- **radius.unreachable_timeout**

The **radius.unreachable_timeout** unit was changed. In the previous versions it was seconds. In the new version of RPR it is milliseconds.

#### RADIUS Authentication and Accounting proxy servers configuration

The listener address and port of both Authentication and Accounting RADIUS Proxy servers are split into two separate configuration options. In RADIUS Proxy version `< 3.0.0` it was:

```yaml
auth:
  proxy_auth_1:
    listen: 0.0.0.0:1812
```

In RADIUS Proxy version `3.0.0` and higher:

```yaml
auth:
  proxy_auth_1:
    listen: 0.0.0.0
    ports:
      - 1812
      - 1813
      - 3799
```

The list of RADIUS sources from which RADIUS Proxy accepts the incoming RADIUS requests was the string in the RADIUS Proxy `< 3.0.0` version:

```yaml
auth:
  proxy_auth_1:
    source: tt:secret@192.0.2.0/24
```

In RADIUS Proxy version `3.0.0` and higher it is the list:

```yaml
auth:
  proxy_auth_1:
    sources:
      - secret: "secret"
        source: 192.0.2.0/24
        nas_id: tt
```

The list of RADIUS relays where RADIUS Proxy forwards the incoming RADIUS requests was represented as a string in the RADIUS Proxy `< 3.0.0` version:

```yaml
auth:
  proxy_auth_1:
    relay: secret@198.51.100.1:1812, realm1:secret@198.51.100.2:1812
```

In RADIUS Proxy version `3.0.0` and higher it is the list:

```yaml
auth:
  proxy_auth_1:
    relays:
      - address: 198.51.100.1:1812
        secret: "secret"
        timeout: 3000
        retries: 1
      - address: 198.51.100.2:1812
        secret: "secret"
        realm: "realm1"
        timeout: 5000
        retries: 3
```

The number of retries to repeat a RADIUS request if no response was delivered was previously configured in the **server_pools**. The timeout for a RADIUS request was specified for all types of requests for all relays using the **radius.client_timeout** configuration option.

In RADIUS Proxy version `3.0.0` and higher, you can specify both configuration options for each relay and a secondary RADIUS server as in the example above.

#### Secondary RADIUS servers configuration

The secondary RADIUS server pools were defined in the `relays` configuration in the RADIUS Proxy `< 3.0.0` version:

```yaml
auth:
  proxy_auth_1:
    relays: secret@198.51.100.1:1812, realm:auth_server_pool
  server_pools:
    auth_server_pool:
      servers: secret@198.51.100.2:1812, secret@198.51.100.3:1812
      retries:
        1: 3
```

In RADIUS Proxy version `3.0.0` and higher, the list of secondary RADIUS server pools is only referenced in the `relays` configuration but defined in the separate configuration option:

```yaml
auth:
  proxy_auth_1:
    relays:
      - address: 198.51.100.1:1812
        secret: "secret"
        retries: 1
        timeout: 5000
      - address: 198.51.100.2:1812
        secret: "secret"
        realm: "realm"
        failover_server_pool: auth_server_pool
        
pool:
  auth_server_pool:
    - address: 198.51.100.3
      port: 1812
      secret: "secret"
      retries: 3
      timeout: 5000
```

#### RADIUS CoA/Disconnect servers configuration

The CoA/Disconnect RADIUS Proxy server listener address and port are split into two separate configuration options. In RADIUS Proxy version `< 3.0.0` it was:

```yaml
coa:
  listen: 0.0.0.0:3799
```

In RADIUS Proxy version `3.0.0`, these configuration options are:

```yaml
coa:
  listen: 0.0.0.0
  port: 3799
```

The **coa.remove_attributes** was renamed to **remove_attrs**.

The list of RADIUS sources from which the RADIUS Proxy accepts the incoming CoA and Disconnect RADIUS requests, and `relays` where messages are forwarded, are now the lists of options, the same as for [Authentication and Accounting](#radius-authentication-and-accounting-proxy-servers-configuration) proxy servers.
