ddclient (dynamic DNS) install & run script for Firewalla Purple

Comments

12 comments

  • Avatar
    Lynk

    Awesome job on this. Is this strictly for purple or editable for gold as well?

    0
    Comment actions Permalink
  • Avatar
    David Koppenhofer

    I imagine it would work on Gold, Gold+, Purple SE, and maybe even Blue & Blue+ since it's not docker. (Though I'm not sure if the Blues have the necessary scripting support.)

    0
    Comment actions Permalink
  • Avatar
    Tom Schmidt

    I can verify that this works fine with the Gold+. 

    I use it with Zoneedit, and the only change I had to make was to add a server attribute setting so that gets passed into the config file. 

     

    0
    Comment actions Permalink
  • Avatar
    Lynk

    Been using Shane's method for DDNS w/Cloudflare here:

    https://help.firewalla.com/hc/en-us/community/posts/1500001199002-Cloudflare-DDNS-Docker-Setup-on-FWG

    Since this method with ddclient is not docker, any benefits noticed running this on FWG?

    0
    Comment actions Permalink
  • Avatar
    David Koppenhofer

    @lynk

    I figure that spinning up a whole docker container just to send ddns info is overkill. If it works for you, then I see no problem though.
    Since Ubuntu has the ddclient package, I just used that. I already played with docker for home automation, so wanted to try a different method.

    0
    Comment actions Permalink
  • Avatar
    Skylar Ragan

    I noticed my DDNS wasn't getting updated this morning and when I SSH'd into my firewalla I manually ran this script and got the following output:

    ----- ddclient is already installed -----
    ----- configuring /etc/ddclient.conf -----
    ----- configuring /etc/default/ddclient -----
    sed: can't read /etc/default/ddclient: No such file or directory
    ----- enabling and starting ddclient service -----
    ddclient.service is not a native service, redirecting to systemd-sysv-install.
    Executing: /lib/systemd/systemd-sysv-install enable ddclient
    0
    Comment actions Permalink
  • Avatar
    David Koppenhofer

    @skylar

    Do you have a /etc/default/ddclient file? Maybe ddclient isn't installed fully for some reason. Or maybe you're on a different version of Ubuntu which doesn't behave like the version I developed this on.  Though it sounds like this was working for you at one point?

    0
    Comment actions Permalink
  • Avatar
    Skylar Ragan

    @david

    Nope, it doesn't appear that I do have /etc/default/ddclient. Looks like I'm on Ubuntu 18.04.3 LTS. I actually just recently got my Firewalla a few weeks ago and when I added this script initially, my ddns was already pointing at my home IP, so I didn't notice any issues until that IP changed. My previous firewall had DDNS support for Google OOTB, so I don't really have much experience with ddclient and wasn't sure if I was just missing a step or something.

    0
    Comment actions Permalink
  • Avatar
    Skylar Ragan

    I think I figured it out. I tried installing ddclient myself using the apt-get.sh script that firewalla provides instead of installing it with the script in the first place. After removing it and rerunning, everything seems to work properly now.

    0
    Comment actions Permalink
  • Avatar
    David Koppenhofer

    Maybe the difference is that I'm on Ubuntu 20.04.3 LTS, and apt-get works differently?

    At any rate, glad you got it working!

    Best,

    David

    0
    Comment actions Permalink
  • Avatar
    Skylar Ragan

    Well, the past 9 months everything's been running pretty smoothly, but yesterday I had a power outage and when everything came back on, I had a new external IP. That on it's own wouldn't normally be a big deal, but today I realized my DNS entries didn't update. I SSHd into my Firewalla, and it looks like the script is still working right, but when I ran:

    sudo ddclient -query

    I get the following error:

    FATAL:    Error loading the Perl module JSON::Any needed for cloudflare update.

    I realize this likely isn't an issue with the script so much as with either DDClient or maybe the Firewalla OS, but I was curious if anyone else using DDClient on their Firewalla has experienced this recently.

    0
    Comment actions Permalink
  • Avatar
    David Koppenhofer

    Hi @Skyler,

    I haven't had a problem, and have had power outages.

    I'm guessing that my OS has that PERL module installed, or possibly the ddclient code for my DDNS provider doesn't need it.

    0
    Comment actions Permalink

Please sign in to leave a comment.