Skip to main content

Configuring STUN (UDP-based connection request)

Overview

STUN (Session Traversal Utilities for NAT) is a TR-069 connection-request helper protocol that enables the ACS (Auto Configuration Server) to reach CPE (Customer Premises Equipment) devices that cannot be accessed via direct HTTP requests. STUN is typically required when the CPE is located behind a firewall or a NAT (Network Address Translation) process.

STUN-diagram.png

Configuration Requirements

To enable STUN functionality, both the CONTROL ACS platform and the CPE must be properly configured.

CPE Configuration

Configuring STUN on the CPE is straightforward and requires only two parameters:

Development Environment Settings

For testing and development purposes, use the following configuration:

STUN Server: control-stun-dev.zequenze.com
Port: 3478

CONTROL ACS Configuration

On the CONTROL ACS platform, STUN-related variables must be added to the Device Profile. A typical configuration example:

STUN-config.png

How STUN Connection Requests Work

Once STUN is configured on both the ACS and CPE:

  1. The CPE establishes a UDP binding with the STUN server
  2. The CPE reports this UDP binding address to the ACS using the TR-181 parameter: Device.ManagementServer.UDPConnectionRequestAddress
  3. The ACS uses this reported address for all subsequent connection-request procedures

This mechanism allows the ACS to communicate with CPE devices even when they are not directly accessible via traditional HTTP connection requests.