Skip to content

Security by default: disable web UI access from WAN on new installations #1920

Description

@cotosso

Description

On a fresh installation, the web UI (ports 9090 and 443) is reachable from the WAN. This exposes the management interface to the Internet before the administrator has secured the unit. In many cases the default password is still in place at that point.

The WAN is open by default mainly to support VPS deployments, where the WAN is often the only reachable interface.

Other vendors restrict this by default. For example, WatchGuard allows Web UI access only from trusted and optional networks on physical Fireboxes. On cloud instances (Firebox Cloud on AWS), the Web UI is reachable from external networks, but the initial password is the unique instance ID and must be changed in the setup wizard.

Proposed solution

  1. Closed by default. On new installations, web UI access (9090/443) is allowed only from LAN. The existing WAN rules that allow web UI access are not removed: they are shipped disabled, so they can be easily re-enabled.
  2. Opt-in from the console. The existing console setup gets an option to enable web UI access from WAN, used mainly for VPS deployments. This option re-enables the existing rules:
    1. If the root password is still the default one, the user must change it before WAN access can be enabled.
    2. The user can optionally restrict access to a single source network (CIDR). One network is enough: once logged in from WAN, the admin can refine the rule from the web UI.

Expected impact

  • Physical appliances: units are usually prepared on the LAN side, so the change should be transparent. Configuring a unit through the WAN (for example, with a local DHCP server assigning the WAN address) is believed to be uncommon.
  • VPS: one extra step from the console, with a hardened result (no default password, optionally restricted source).

Warning

Key assumption: every VPS provider offers a usable console. If a provider has no console, or the deployment is automated (API, cloud-init) and nobody opens the console, the instance becomes unreachable after installation. Recovery would require support. This must be verified before going ahead.

Alternative solutions

  1. Unique password on first boot. Generate a random password at first boot, show it on the console or pass it through cloud-init, and require a change at first login. The web UI stays reachable from WAN, but not with a known credential. This is the same model WatchGuard uses for Firebox Cloud on AWS.
  2. Hybrid. Close WAN access on physical appliances (proposed solution) and use a unique first-boot password on VPS images (alternative 1). This removes the dependency on the VPS console while keeping physical units fully closed.

Open points

  • VPS console availability: check the providers our partners use (see the warning above).
  • Partner feedback: collect quick feedback from a few partners that deploy NethSecurity on VPS: which providers they use, how they perform the first access (provider console, WAN, cloud-init), and whether they have ever deployed without a console.
  • Upgrades: existing installations should keep their current rules. The change applies only to new images.
  • Documentation: VPS installation guides need to be updated.

Activity

  1. added theissue type on Oct 6, 2026
  2. added this to the 8.9.0 milestone on Oct 8, 2026
  3. modified the milestones: 8.9.1, 8.9.0 on Nov 20, 2026
  4. moved this from ToDo 🕐 to In Progress 🛠 in NethSecurityon Nov 20, 2026
  5. m-dilorenzi commented on Nov 20, 2026

    @m-dilorenzi
    Collaborator

    QA

    Image:

    New installation

    1. Install the new image without opening the UI. From the WAN client, open https://<wan_ip>:9090 and https://<wan_ip>: both must be unreachable.
    2. From a LAN client, open https://<lan_ip>:9090 and https://<lan_ip>: both must show the login page.
    3. Log in from the LAN and check the setup wizard defaults:
      • SSH: root login with password enabled, and the description says it is enabled by default;
      • port 9090: WAN access disabled, and the description says access is enabled from the LAN and disabled from the WAN;
      • port 443: web interface service enabled, WAN access disabled, and the description says WAN access is disabled by default.
    4. Complete the wizard with the default values (change only the root password). Verify that:
      • in the input rules (Firewall > Rules > Input Rules), Allow-UI-from-WAN and Allow-HTTPS-from-WAN are disabled;
      • the UI is still reachable from the LAN on 9090 and 443 and unreachable from the WAN on both;
      • SSH login with password from the LAN works.
    5. Reinstall the image and click "Skip wizard". Verify that the result is the same as step 4: same rules, same UI reachability, SSH login with password from the LAN works with the default password.

    Wizard options

    1. Install the new image and connect to the unit UI with a LAN client, run the wizard and set WAN access on port 9090 to "Enabled". From a WAN client, the UI must be reachable on 9090 and unreachable on 443.
    2. Install the new image and connect to the unit UI with a LAN client, run the wizard and set WAN access on port 9090 to "Limited" with the IP of the WAN client. Verify that:
      • the Allow-UI-from-WAN rule has that IP as source;
      • the WAN client can reach the UI on 9090;
      • another WAN client cannot.
    3. Install the new image and connect to the unit UI with a LAN client, run the wizard and enable WAN access on port 443. From the WAN client, the UI must be reachable on 443.
    4. Install the new image and connect to the unit UI with a LAN client from https://<lan_ip>, run the wizard and disable the web interface service on port 443. Verify that:
      • at the end of the wizard, the browser is redirected to https://<lan_ip>:9090;
      • the UI is no longer reachable on 443 from the LAN.

    Console setup

    1. Install the new image, log in to the console as root and run setup. Check that the menu shows "Toggle access to port 9090 from WAN: closed".
    2. Select the toggle. Verify that:
      • a "Success" dialog says remote access is now open;
      • the menu shows open;
      • from the WAN client the UI is reachable on 9090 and still unreachable on 443;
      • in the UI, the Allow-UI-from-WAN rule is enabled.
    3. Select the toggle again. Verify that:
      • the menu shows closed;
      • the UI is unreachable from the WAN on 9090;
      • the Allow-UI-from-WAN rule is disabled.
    4. In setup, select "Change root password" and set a new password. Verify that:
      • a "Success" dialog confirms the change;
      • the new password works for the UI login.
    5. Repeat the password change with two passwords that do not match. Verify that an "Error" dialog is shown and the password is not changed.

    Reverse proxy

    1. On a new installation, open the reverse proxy page. It must show the warning that port 443 is closed, with the button to the firewall rules.
    2. Add a reverse proxy rule and verify that it works from the LAN.
    3. Enable Allow-HTTPS-from-WAN. Verify that:
      • the warning disappears;
      • the reverse proxy rule works from the WAN.

    Upgrade

    1. Install the 8.8.1 release with the default configuration and complete the wizard leaving WAN access open. From the WAN client, check that the UI is reachable on 9090 and 443.
    2. Install the new image and verify that:
      • Allow-UI-from-WAN and Allow-HTTPS-from-WAN are still enabled;
      • the UI is still reachable from the WAN on 9090 and 443;
      • the wizard is not shown again.

    9090 controller tunnel

    1. Install the new image and register the unit to the controller. Verify that:
      • the unit shows as connected;
      • its UI can be opened from the controller, even though 9090 is closed from the WAN by default.
  6. added
    testing
    on Nov 20, 2026
  7. moved this from In Progress 🛠 to Testing in NethSecurityon Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testing

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions