inadyn

Configuration wizards, scanners, remote desktop, etc.
Post Reply
Message
Author
scsijon
Posts: 1596
Joined: Thu 24 May 2007, 03:59
Location: the australian mallee
Contact:

inadyn

#1 Post by scsijon »

Not sure how many are using this package, but very interesting, only needs libConfuse and openssl (or equiv) to work.

https://github.com/troglobit/inadyn
Inadyn is a small and simple Dynamic DNS, DDNS, client with HTTPS support. Commonly available in many GNU/Linux distributions, used in off the shelf routers and Internet gateways to automate the task of keeping your Internet name in sync with your public¹ IP address. It can also be used in installations with redundant (backup) connections to the Internet.

Most people are unaware they share a pool of Internet addresses with other users of the same Internet Service Provider (ISP). Protocols like DHCP, PPPoE, or PPPoA are used to give you an address and a way to connect to the Internet, but usually not a way for others to connect to you. If you want to run an Internet server on such a connection you risk losing your IP address every time you reconnect, or as in the case of DHCP even when the lease is renegotiated.

By using a DDNS client like inadyn you can register an Internet name with a DDNS provider, like FreeDNS. The DDNS client updates your DNS record periodically and/or on demand when your IP address changes. Inadyn can maintain multiple host records with the same IP address, use a combination of a script, the address from an Internet-facing interface, or default to using the IP address change detector of the DDNS provider.

__
¹ Public IP address is the default, private addresses can also be used.

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#2 Post by OscarTalks »

Compiled this and tested it.
Working in Dpup Wheezy
Thanks for posting about it.
Oscar in England
Image

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#3 Post by rufwoof »

Can't get it to compile for me under EasyOS (1.0) (my compile skills are very limited/basic).

Pulled down libconfuse and that compiled ok, but after autogen.sh, running configure results in a complaint about libconfuse not being >3.0 despite libconfuse seemingly being at something like version 3.2.
[size=75]( ͡° ͜ʖ ͡°) :wq[/size]
[url=http://murga-linux.com/puppy/viewtopic.php?p=1028256#1028256][size=75]Fatdog multi-session usb[/url][/size]
[size=75][url=https://hashbang.sh]echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh[/url][/size]

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#4 Post by OscarTalks »

In the libconfuse github page you can download a checkout of "Master" which is named "libconfuse" or you can download a release tarball which is just named "confuse" version 3.2.2

In Wheezy the master checkout complained that gettext was too old so I used the release which worked OK

In Stretch which is newer I could use either. Sometimes you do have to poke around a bit and look for options. Sometimes you can edit a Makefile or some header or something to work around certain issues

Not sure why something is picking up the wrong version information from somewhere. I have only compiled it in those 2 Puppies which are both 32bit and in both cases I was able to succeed.

You can build only the static libconfuse by the way. Then inadyn links statically to it and you don't need to include the shared libconfuse library.
Oscar in England
Image

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#5 Post by rufwoof »

Thanks. I'll give that a try (tomorrow, or rather later today).
[size=75]( ͡° ͜ʖ ͡°) :wq[/size]
[url=http://murga-linux.com/puppy/viewtopic.php?p=1028256#1028256][size=75]Fatdog multi-session usb[/url][/size]
[size=75][url=https://hashbang.sh]echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh[/url][/size]

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#6 Post by rockedge »

this inadyn-2.3.1 is compiled on Bionic32-v8. I also have a version compiled in Tahr somewhere.

REMOVE the false ".gz" extension!
Attachments
inadyn-2.3.1-i686.pet.gz
(66.54 KiB) Downloaded 264 times

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#7 Post by rufwoof »

EasyOS is 64 bit. Tried a range of things to compile (mostly in the dark given my limited compilation abilities). Gave up and restored back to clean (no devx, session as before). Thanks anyway.
[size=75]( ͡° ͜ʖ ͡°) :wq[/size]
[url=http://murga-linux.com/puppy/viewtopic.php?p=1028256#1028256][size=75]Fatdog multi-session usb[/url][/size]
[size=75][url=https://hashbang.sh]echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh[/url][/size]

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#8 Post by OscarTalks »

It compiles OK in Xenial 64bit Puppy using master of both libconfuse and inadyn.

However, if compiling with view to running it in EasyOS it would be handy to know if EasyOS has GnuTLS or OpenSSL and the version number in each case. These are configure options in inadyn with GnuTLS being the default, but in my Puppies I configured for OpenSSL. In either case the runtime libraries will need to have matching version numbers.
Oscar in England
Image

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#9 Post by rufwoof »

In my EasyOS 1.0 installation ...

Code: Select all

# uname -a
Linux EASYPC11428 4.14.91 #1 SMP Tue Jan 1 19:31:34 AWST 2019 x86_64 x86_64 x86_64 GNU/Linux
# openssl version
OpenSSL 1.0.2k  26 Jan 2017
# 
[size=75]( ͡° ͜ʖ ͡°) :wq[/size]
[url=http://murga-linux.com/puppy/viewtopic.php?p=1028256#1028256][size=75]Fatdog multi-session usb[/url][/size]
[size=75][url=https://hashbang.sh]echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh[/url][/size]

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#10 Post by OscarTalks »

You can give this one a try.
Compiled in Xenial 64bit Pup
Configured with --enable-openssl
Contains statically linked libconfuse

Remember that configuration needs to be set up in /etc/inadyn.conf
Example configs are in /usr/share/doc/inadyn/examples
Attachments
inadyn-2.5.1-x86_64.pet
Compiled in Xenial64 - For testing only
(66.16 KiB) Downloaded 280 times
Oscar in England
Image

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#11 Post by rockedge »

OscarTalks

the pet works great so far on Bionic64-v8....nice.

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#12 Post by rufwoof »

Faults in EasyOS 1.0 ... ??? due to using OpenSSL version 1.0.2k ???

Code: Select all

# inadyn
inadyn: /usr/lib/libcrypto.so.1.0.0: version `OPENSSL_1.0.0' not found (required by inadyn)
inadyn: /usr/lib/libssl.so.1.0.0: version `OPENSSL_1.0.0' not found (required by inadyn)
# openssl version
OpenSSL 1.0.2k  26 Jan 2017
# ls -l /usr/lib/libcrypto*
lrwxrwxrwx 1 root root      18 Mar  5 20:59 /usr/lib/libcrypto.so.0 -> libcrypto.so.1.0.2
lrwxrwxrwx 1 root root      18 Mar  5 20:59 /usr/lib/libcrypto.so.0.9.7 -> libcrypto.so.1.0.2
lrwxrwxrwx 1 root root      18 Mar  5 20:59 /usr/lib/libcrypto.so.0.9.8 -> libcrypto.so.1.0.2
lrwxrwxrwx 1 root root      18 Mar  5 20:59 /usr/lib/libcrypto.so.1 -> libcrypto.so.1.0.2
lrwxrwxrwx 1 root root      18 Mar  5 20:59 /usr/lib/libcrypto.so.1.0.0 -> libcrypto.so.1.0.2
-rwxr-xr-x 1 root root 2324456 Jan 20 01:35 /usr/lib/libcrypto.so.1.0.2
# ls -l /usr/lib/libssl*
-rwxr-xr-x 1 root root 311864 Jan 20 01:34 /usr/lib/libssl3.so
lrwxrwxrwx 1 root root     15 Mar  5 21:00 /usr/lib/libssl.so.0 -> libssl.so.1.0.2
lrwxrwxrwx 1 root root     15 Mar  5 21:00 /usr/lib/libssl.so.0.9.7 -> libssl.so.1.0.2
lrwxrwxrwx 1 root root     15 Mar  5 21:00 /usr/lib/libssl.so.0.9.8 -> libssl.so.1.0.2
lrwxrwxrwx 1 root root     15 Mar  5 21:00 /usr/lib/libssl.so.1 -> libssl.so.1.0.2
lrwxrwxrwx 1 root root     15 Mar  5 21:00 /usr/lib/libssl.so.1.0.0 -> libssl.so.1.0.2
-rwxr-xr-x 1 root root 425208 Jan 20 01:35 /usr/lib/libssl.so.1.0.2
# 
[size=75]( ͡° ͜ʖ ͡°) :wq[/size]
[url=http://murga-linux.com/puppy/viewtopic.php?p=1028256#1028256][size=75]Fatdog multi-session usb[/url][/size]
[size=75][url=https://hashbang.sh]echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh[/url][/size]

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#13 Post by OscarTalks »

OpenSSL is quite an important core library and in the case of programs that need to be compiled against it you have to make sure the library version number matches up. In the case of Ubuntu and Debian they also compile in the version information (as a symbol in OpenSSL) so compiled programs look for this and complain if they can't read the information or if it doesn't match up.

There are possible workarounds but they involve lots of fiddling about and trial and error. Really the best way is to compile in the same environment as the one in which you intend it to run (Easy OS).

In case you want to try that again, for libconfuse-master try:-
./autogen.sh
./configure --prefix=/usr --enable-static --disable-shared --disable-nls --disable-examples
make
make install

If libconfuse-master does not build, you can try the confuse-3.2.2 release source package instead with the same configure options.
./autogen.sh is not needed in this case

Make sure the libs are in a location where they can be found (not sure about /usr/lib and /usr/lib64 in Easy OS).

Then try the inadyn-master source checkout:-
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-openssl
make
make install

If this does not build you can try the inadyn-2.5 release source package, again in this case the ./autogen.sh step is not needed.

Might be worth having another go and post any error messages you get when compiling.
Oscar in England
Image

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#14 Post by rufwoof »

That worked perfectly thanks Oscar ... EasyPak for EasyOS 1.0 (sfs + .specs file in a gzip'd tar)
https://drive.google.com/file/d/18FNSWq ... sp=sharing
[size=75]( ͡° ͜ʖ ͡°) :wq[/size]
[url=http://murga-linux.com/puppy/viewtopic.php?p=1028256#1028256][size=75]Fatdog multi-session usb[/url][/size]
[size=75][url=https://hashbang.sh]echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh[/url][/size]

Post Reply