> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/upg/2.16/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/upg/2.16/features/nwi-strict-routing.md).

# NWI strict routing tables separation

User Plane Gateway (UPG) uses routing tables attached to the NWI for traffic matching (`Rx` direction) and forwarding (`Tx` direction). The Rx table is used for matching traffic and is populated with the IP addresses of active sessions. By default, the same routing tables are used for both `Rx` and `Tx` traffic, but this can cause issues. For example, using the same table for both matching and forwarding may forward UE-to-UE traffic before it reaches the UPG plugin, which skips necessary accounting procedures.

To avoid this, you can use separate `Rx` and `Tx` routing tables. The `Rx` table will only contain session IP addresses, while the `Tx` table will hold the required routes for forwarding.

To enable strict routing table separation, set the following Helm value for each NWI: `instances.{NAME}.networking.{INTERFACE}.ipv{4|6}.strictRouting`. See the example:

```yaml
instances:
  inst01:
    networking:
      (...)
      sgi:
        interface: inet
        type: memif
        vni: 2130
        ipv4:
          strictRouting: true
          addresses:
          - 192.0.2.2/24
        ipv6:
          strictRouting: true
          addresses:
          - 2001:db8::1/32
```
