Skip to content

NethVoice Proxy: settings fail to save when DHCP adds extra routes #8388

In progress

Description

@edospadoni

When NethVoice Proxy is configured behind NAT (with a public address), saving the settings fails on servers whose DHCP server adds extra routes from the proxy's own address, such as many cloud servers.

Steps to reproduce

  1. Install NethVoice Proxy on a node that gets its address from DHCP and has a route like the one to the cloud metadata service, for example: 169.254.169.254 via 192.168.120.100 dev eth0 proto dhcp src 192.168.120.119 metric 100
  2. In the proxy settings, set the private address 192.168.120.119 and a public address, then save.

Expected behavior

The settings are saved and the local network 192.168.120.0/24 is detected.

Actual behavior

The task fails. Both routes from the proxy's address are taken as one local network, and the firewall rejects it:

agent@node[826]: Adding rich-rule: rule family=ipv4 source address=169.254.169.254
agent@node[826]: 192.168.120.0/24 forward-port port=5060 protocol=udp to-port=6060
firewalld[811]: ERROR: INVALID_ADDR: 169.254.169.254192.168.120.0/24

The new settings are not applied.

Workaround

On the node of the proxy, remove the extra route only while saving, then add it back (it also comes back at the next DHCP renewal):

ip route del 169.254.169.254 via 192.168.120.100 dev eth0
# save the proxy settings from the UI
ip route add 169.254.169.254 via 192.168.120.100 dev eth0 proto dhcp src 192.168.120.119 metric 100

Components

  • NethVoice Proxy 1.8.1
  • Reproduced on a cloud server with DHCP

See also

Activity

  1. added
    nethvoice
    on Nov 27, 2026
  2. added theissue type on Nov 27, 2026
  3. added this to the NethVoice 1.8 milestone on Nov 27, 2026
  4. changed the title [-]NethVoice: proxy settings fail to save when DHCP adds extra routes[/-] [+]NethVoice Proxy: settings fail to save when DHCP adds extra routes[/+] on Nov 27, 2026
  5. self-assigned this
    on Nov 27, 2026
  6. moved this from Todo to In Progress in NethVoiceon Nov 27, 2026
  7. edospadoni commented on Nov 27, 2026

    @edospadoni
    MemberAuthor

    Test

    PRs: nethesis/ns8-nethvoice-proxy#256

    Setup: a NethVoice Proxy configured behind NAT (private address plus public address in the settings). Run the commands on the node of the proxy as root.

    Test Case 1 - Extra route from the proxy address

    • Add a route with the private address of the proxy as source: ip route add 169.254.169.254 via <gateway> dev <interface> src <private address>
    • Save the proxy settings from the UI: the task succeeds, with no INVALID_ADDR error in the log
    • api-cli run module/nethvoice-proxyX/get-configuration lists in local_networks only the network of the interface (e.g. 192.168.120.0/24), plus the extra networks set in the UI
    • firewall-cmd --list-rich-rules has the forward-port rules for that network, and none for 169.254.169.254
    • Remove the test route: ip route del 169.254.169.254 via <gateway> dev <interface>

    Test Case 2 - Regression

    • Without extra routes, saving the settings detects the same local network as before the update
    • Extra local networks added from the UI are kept after saving
    • Removing the public address (no NAT) removes the forward-port rules
    • Phones in the local network register through the proxy and calls have audio in both directions

    Testing image: PR build of nethesis/ns8-nethvoice-proxy#256

    ghcr.io/nethesis/nethvoice-proxy:pr-256.275-1.3e1cc73
    
    api-cli run update-module --data '{"module_url":"ghcr.io/nethesis/nethvoice-proxy:pr-256.275-1.3e1cc73","instances":["nethvoice-proxyX"],"force":true}'
    
  8. added
    testing
    on Nov 27, 2026
  9. moved this from In Progress to Testing in NethVoiceon Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

nethvoicetesting

Type

Projects

  • Status
    Testing

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions