Skip to content

NethVoice: remove the public /webrest path of the legacy NethCTI server #8358

In progress

Description

@edospadoni

The legacy NethCTI server API is still published on the /webrest and /socket.io paths. Every NethVoice client already uses the NethCTI middleware on /api, which forwards requests to the legacy server, so these paths are no longer needed.

Remove the public /webrest and /socket.io paths, so that the legacy NethCTI server is reachable only through the middleware.

What to do

  • Remove the /webrest and /socket.io routes, also from existing installations on update.
  • Move the remaining /webrest calls of the FreePBX wizard to /api.
  • Remove what is left of Nethifier, which is no longer supported: its public port and the notification popup templates.
  • Make the legacy NethCTI server listen only on the local address.

Release notes

  • Announce the change in advance to partners and customers that call /webrest from their own integrations or scripts: they must move to the middleware API on /api.
  • State the minimum NethLink and Phone Island versions required.

Activity

  1. added this to the NethVoice 1.9 milestone on Nov 23, 2026
  2. added
    nethvoice
    on Nov 23, 2026
  3. added theissue type on Nov 23, 2026
  4. self-assigned this
    on Nov 23, 2026
  5. moved this from Todo to In Progress in NethVoiceon Nov 23, 2026
  6. stephdl commented on Nov 25, 2026

    @stephdl

    QA of NethServer/ns8-crowdsec#257 must verify the module version on ghcr.io/nethserver/crowdsec:1.5.1-dev.1

    see the bug is not more reproducible

  7. moved this from In Progress to Testing in NethVoiceon Nov 25, 2026
  8. moved this from Testing to In Progress in NethVoiceon Nov 25, 2026
  9. edospadoni commented on Nov 25, 2026

    @edospadoni
    MemberAuthor

    Tested ghcr.io/nethserver/crowdsec:1.5.1-dev.1 (NethServer/ns8-crowdsec#257) on a NethVoice instance without the /webrest routes:

    • 30 real 404s on different /webrest/* paths (GET and POST, CTI and voice hosts) from the same IP were all whitelisted: no alert, no ban.
    • A 404 on any other path still feeds crowdsecurity/http-probing.
    • nethvoice-middleware-bf counts 401 on /login, /2fa/verify, /2fa/recovery, /2fa/disable and 400 on /2fa/verify-otp, not 429. A real failed login was counted.

    All good for me.

  10. stephdl commented on Nov 25, 2026

    @stephdl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

nethvoice

Type

Projects

  • Status
    In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions