Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    There was an error trying to determine the public IP for interface - wan (mvneta0 ). DDNS not working..

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 1 Posters 93 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      cs08
      last edited by

      Yesterday it worked, today it doesnt.

      I use subdomains from(which worked yesterday):
      No-Ip
      All-Inkl.com (freeddns.org)
      freeDNS
      for my DDNS.

      From the logs it seems that the updatedns() cant figure out my public IP.
      I can reach the ipservices myself: http://checkip.dyndns.org

      Sep 12 13:57:29 php-fpm 23807 /services_dyndns_edit.php: Dynamic DNS: updatedns() starting
      Sep 12 13:57:29 php-fpm 23807 /services_dyndns_edit.php: Dynamic DNS (XXXXX.ddns.net) There was an error trying to determine the public IP for interface - wan (mvneta0 ).

      I have also tried:
      http://ip1.dynupdate.no-ip.com
      https://www.brit-hotel-fumel.fr/whatismyip.php (from an old post here)

      This is my system right now:
      25.07.1-RELEASE (arm64)
      built on Wed Aug 20 14:17:00 CEST 2025
      FreeBSD 15.0-CURRENT

      The system is on the latest version.
      Version information updated at Fri Sep 12 14:02:22 CEST 2025

      Firewall rules for wan
      Screenshot from 2025-09-12 14-11-19.png
      Clients
      Screenshot from 2025-09-12 14-12-29.png
      Check IP Services
      Screenshot from 2025-09-12 14-12-38.png
      Logs
      Screenshot from 2025-09-12 14-12-58.png

      Here are some outputs from curling IP Services
      Screenshot from 2025-09-12 14-17-31.png
      Screenshot from 2025-09-12 14-17-49.png

      Any Ideas?

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        cs08 @cs08
        last edited by

        I've solved it with a script and a cron-job in the mean time:

        #!/bin/sh

        Fetch public IP with debugging

        PUBLIC_IP=$(curl -4 ipinfo.io/ip 2>/dev/null)
        if [ -z "$PUBLIC_IP" ]; then
        logger -t ddns "Failed to get public IP from ipinfo.io"
        exit 1
        fi
        logger -t ddns "Public IP: $PUBLIC_IP"

        No-IP update

        NOIP_USER="USERNAME"
        NOIP_PASS="PASSWORD"
        NOIP_HOST="SUBDOMAIN.ddns.net"
        NOIP_RESPONSE=$(curl -s "http://$NOIP_USER:$NOIP_PASS@dynupdate.no-ip.com/nic/update?hostname=$NOIP_HOST&myip=$PUBLIC_IP")
        logger -t ddns "No-IP ($NOIP_HOST): $NOIP_RESPONSE"

        But I still want to figure out the official fix of course!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.