> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/smc/latest/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/smc/latest/guides/wildcard-apn.md).

# Wildcard APN

By default, Session Management Controller (SMC) accepts traffic only for the single Access Point Name (APN) configured in **apn.name**. To accept any APN that the access network sends without enumerating each name, configure a wildcard APN with the value `*`. SMC then matches every APN that no other entry handles.

## When to use a wildcard APN

Configure a wildcard APN when:

- the operator does not control the list of APN names that the access network sends,
- the deployment should accept all APN names without per-APN configuration, or
- SMC acts as a fallback for any APN that no other Packet Gateway (PGW) instance handles.

SMC supports only one wildcard APN per deployment. A wildcard APN replaces the per-APN value in **apn.name**; it cannot coexist with a named APN in the same deployment.

## Set the APN name

Set **apn.name** to `"*"`.

```yaml
apn:
  name: "*"
  mcc: "001"
  mnc: "001"
  ue_ip_pools:
    - name: sgi
      ranges:
        - from: 10.32.0.2
          to: 10.32.255.254
          type: IPv4
```

> [!IMPORTANT]
> Always quote `*` in the values file. YAML parses an unquoted `*` as an alias indicator and produces a parse error.

## Configure node selection

A wildcard APN deployment typically handles many APN names whose mapping to User Plane Functions (UPFs) evolves over time. To keep the UPF set changeable without redeploying the chart, configure DNS-based node selection. The chart's default `nodeSelection.type: static` works for small or fixed deployments but requires a Helm upgrade for every UPF change.

### Recommended: DNS-based node selection

Set `nodeSelection.type` to `dns` and point the chart at a DNS server that publishes the NAPTR zone for your network:

```yaml
nodeSelection:
  type: dns
  server: 192.0.2.53
  port: 53
```

In the DNS zone, publish a Naming Authority Pointer (NAPTR) wildcard record at `*.apn.epc.mnc{MNC}.mcc{MCC}.3gppnetwork.org`. The DNS wildcard returns NAPTR records for every APN that has no explicit entry, and SMC selects a UPF from the returned candidates. UPF set changes take effect as soon as the DNS records change.

DNS-based node selection also aligns with the ETSI TS 129.303 procedure for PGW selection. For the NAPTR record format and capability extensions, see [DNS records for PGW/UPF node selection](https://docs.cennso.com/components/smc/latest/guides/dns-records.md).

### Alternative: Static node selection

For deployments without a 3GPP-compliant DNS server, keep `nodeSelection.type: static`. The chart emits the wildcard NAPTR record inline, pointing at the UPFs listed in `upg.instances`. Each change to the UPF set requires a Helm upgrade.

## How the chart renders the wildcard

The chart emits the wildcard in two parts of the SMC configuration:

- In the `apns` entry, as the quoted scalar `'*'`. SMC matches this to any incoming APN that no other entry handles.
- In static node selection only, as a catch-all NAPTR entry that SMC matches locally without a DNS lookup. DNS node selection does not need this entry; the catch-all comes from a NAPTR wildcard in the DNS zone.

For details on how SMC selects a User Plane Function (UPF) for a session through NAPTR records, see [DNS records for PGW/UPF node selection](https://docs.cennso.com/components/smc/latest/guides/dns-records.md).

## Verify the wildcard APN

Render the chart and confirm that the generated configuration contains the wildcard APN:

```bash
helm template charts/smc -f {VALUES_FILE} \
  --show-only templates/configmap.yaml | yq e '.data."ergw-config.yaml"' -
```

The `apns` list must contain the wildcard scalar `'*'`:

```yaml
apns:
- apn: '*'
```

At runtime, confirm that SMC accepts a session for an APN that has no explicit entry: send a request with an arbitrary APN name and check that SMC establishes the session rather than rejecting it.
