os-ddclient

Started by dirtyfreebooter, January 20, 2022, 10:39:42 PM

Previous topic - Next topic
I really can't believe what's wrong here.
Everyone against new behaviours with innovations, that all manners are lost?
All those may stay on older versions or do whatever they believe is right. It's said a couple of times that you can use old os-dyndns as long as you want. It should go without saying that opensource can be tributed by everyone who has the ability to do. Unfortunately I don't have the ability to do this productively, and for the time being I'm not happy with os-ddclient for my purposes. But that doesn't make me want to flame against everything.
Contribute, give purposeful hints or shut up.
i am not an expert... just trying to help...

I've upgraded to 22.1 today and migrated my simple Dynamic DNS requirements over to ddclient without too much trouble.

root@opnsense:~ # cat /usr/local/etc/ddclient.conf
daemon=300
syslog=yes                  # log update msgs to syslog
pid=/var/run/ddclient.pid   # record PID in file.
ssl=yes

#
# setup how we expect to retrieve an IP address
#
use=web, web=http://checkip.dyndns.org/, web-skip="Current IP Address:"

use=if, if=pppoe0, \
protocol=cloudflare, \
zone=domain.tld, \
login=my.email@gmail.com, \
password=mycloudflare API key \
domain.tld


Logs
2022-02-20T09:05:56 Notice ddclient[17589] 64046 - [meta sequenceId="1"] SUCCESS:  domain.tld -- Updated Successfully to xxx.xx.xxx.xxx

Webui


For me the only thing that is lacking with the new DynamicDNS plugin is the lovely widget from the old one.


Quote from: franco on February 17, 2022, 12:29:45 PM
@Stephen maybe you want to upgrade to 22.1.1 first and try again.

@Mastah ... basically you do something like this...

# opnsense-core plugins
# cd /usr/plugins/dns/ddclient
(make your modifications to src/ directory files)
# make upgrade
(install new code to test your changes in the system)

@mueller let me get back on the issue of the log file


Cheers,
Franco


Try
# opnsense-code plugins


it works better. ;)
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Huh, that's a new one for me. Autocorrect must be learning all the wrong things. ;)


Cheers,
Franco

Quote from: chbmb on February 20, 2022, 10:30:42 AM
For me the only thing that is lacking with the new DynamicDNS plugin is the lovely widget from the old one.

Agree, would be nice to have the widget back!

Quote from: tracerrx on February 20, 2022, 08:06:37 PM
Quote from: chbmb on February 20, 2022, 10:30:42 AM
For me the only thing that is lacking with the new DynamicDNS plugin is the lovely widget from the old one.

Agree, would be nice to have the widget back!

Glad I'm not the only one.  I found the code here but I don't know anywhere near enough php to tackle a migration to os-ddclient.

As i am migrating pfSense to OPNsense i decided to directly use the new version. Tried with my lab (internal IP) and DuckDNS. It works when entering the Account (still the "password" bug but i just enter some bogus stuff to avoid this check).

But the part that gets me puzzled. In the account screen i can enter the correct "WAN" interface ("Use interface IP"). This seems enough to make it work.

But, on the "General settings" page i can enable the "cronjob" now. This page ALSO has the option to select "Interface" with option "WAN". What is the difference between those two?

Reading through most of the discussion I did not spot someone raising/answering my point so I would like to bring it up. In my setup with dnsmadeeasy I had to do the entire update and authentication via the update URL field. I found no easy way to recreate this with ddclient. Looking at the project rules on github also makes me wonder if they would accept this enhancement request since dnsmadeeasy is a commercial provider... Am I out of luck having this implemented on OPNsense in 6 months?

I just created a pull request for DNS Made Easy, but I'm not able to test, because I do not use the service.

https://github.com/opnsense/plugins/pull/2859

If you want to test before the new version will be released, please adjust the two files.

I'm confused how to set up for Loopia. The odd thing is that Loopia is available to choose in general settings as check ip method but NOT available when setting up an account?

Loopia support has an open PR https://github.com/opnsense/plugins/pull/2858

I'm sure we will be adding a widget, but first let's get everyone up and running :)


Cheers,
Franco

Quote from: franco on February 23, 2022, 02:06:04 PM
Loopia support has an open PR https://github.com/opnsense/plugins/pull/2858

I'm sure we will be adding a widget, but first let's get everyone up and running :)


Cheers,
Franco

:D :D :D

Just made the switch and didn't have any issues with Google Domains or Namecheap.

Looking forward to having the widget back.

February 24, 2022, 08:12:20 AM #163 Last Edit: February 24, 2022, 10:52:14 PM by chbmb
Quote from: franco on February 23, 2022, 02:06:04 PM
I'm sure we will be adding a widget, but first let's get everyone up and running :)

Cheers,
Franco

Thanks Franco and an entirely understandable plan.

Appreciate all the work you do.

Best wishes

Hi,

is it possible with the os-ddclient plugin to work like with Dynamic DNS (legacy) with a custom call with a URL that then sets host, username, password and IP?

If not, it would be possible to add this as a custom (URL)?

Thanks,
Oliver