You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NethVoice Proxy: settings fail to save when DHCP adds extra routes #8388
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
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
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:
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
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
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
api-cli run update-module --data '{"module_url":"ghcr.io/nethesis/nethvoice-proxy:pr-256.275-1.3e1cc73","instances":["nethvoice-proxyX"],"force":true}'
Activity
fix: detect the local network from the interface
fix: detect the local network from the interface
[-]NethVoice: proxy settings fail to save when DHCP adds extra routes[/-][+]NethVoice Proxy: settings fail to save when DHCP adds extra routes[/+]edospadoni commentedon Nov 27, 2026
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
ip route add 169.254.169.254 via <gateway> dev <interface> src <private address>INVALID_ADDRerror in the logapi-cli run module/nethvoice-proxyX/get-configurationlists inlocal_networksonly the network of the interface (e.g.192.168.120.0/24), plus the extra networks set in the UIfirewall-cmd --list-rich-ruleshas theforward-portrules for that network, and none for169.254.169.254ip route del 169.254.169.254 via <gateway> dev <interface>Test Case 2 - Regression
forward-portrulesTesting image: PR build of nethesis/ns8-nethvoice-proxy#256