Skip to content

Wireguard public IP check: Fail silently if IP cannot be resolved #1443

@Tbaile

Description

@Tbaile

Steps to reproduce

  • Configure NethSecurity wihtout DNSs.
  • Attempt to install or configure a new Wireguard instance.

Expected behavior

  • If NethSecurity cannot determine its public IP during Wireguard configuration (e.g., due to DNS resolution failure), it should fail silently or provide a non-blocking warning. The process should not show an error or block installation.

Actual behavior

  • When the firewall cannot resolve resolver1.opendns.com to determine its public IP, an error is shown, even if the rest of the configuration is valid and DNS settings eventually work after editing resolv.conf.
  • This may occur even when public DNS like 8.8.8.8 is correctly set, causing confusion during setup.
  • The process should be more robust: if unable to detect the public IP via DNS, it should continue and only log a warning or fail gracefully.

Components

  • ns-api <= 3.4.0

See also

https://community.nethserver.org/t/wireguard-error-on-nethsecurity-8-7-1/26641/12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    ToDo 🕐

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions