Commit graph

134 commits

Author SHA1 Message Date
Jeffery To
b8ce0e9599 ddns-scripts: Increment PKG_RELEASE and internal version number
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-08 15:47:24 +08:00
Zheng Luo
9437c31c86 ddns-scripts: cloudflare.com-v4: Fix grep patterns.
Related commit: 0080bb4b

Use `\s*` instead of ` \?` to match 0 or multiple spaces.

Signed-off-by: Zheng Luo <cherrotluo@gmail.com>
(cherry picked from commit 88b03577c4)
2020-05-08 15:43:55 +08:00
Michael Gray
b7958778ab ddns-scripts: cloudflare.com-v4: Fix success check for new response format
JSON response now has spaces between parameters. Accept this new format and the old one.

Signed-off-by: Michael Gray <michael.gray@lantisproject.com>
(cherry picked from commit 0080bb4bba)
2020-05-08 15:38:17 +08:00
Rosen Penev
98f12a896a ddns-scripts: fix logging bug
Fixes issue #11282, this patch was provided by PaulFertser on the #openwrt
IRC.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit bf68826897)
2020-05-08 15:37:09 +08:00
Rosen Penev
a6a2c8d139 ddns-scripts: use HTTP for IPv6 dyndns URL
Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit da57ac0f39)
2020-05-08 15:36:45 +08:00
Rosen Penev
d040b2471c ddns-scripts: remove HTTPS from dyndns URL
HTTPS support is not provided by default.

Also fixed a mistakenly added ].

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit fdfe5a7607)
2020-05-08 15:36:36 +08:00
Rosen Penev
ab7dfd76b6 ddns-scripts: use new DDNS URL for dyndns.org
https://github.com/openwrt/packages/issues/8360

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit a0fa14360c)
2020-05-08 15:36:23 +08:00
Rosen Penev
c2943b13f9 ddns-scripts: update ddnss.de response
https://github.com/openwrt/packages/issues/8013

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit 4128151843)
2020-05-08 15:35:14 +08:00
Paul Tobias
4d050bac76 ddns-scripts: Use https for domains.google.com
Without https the update fails with:

```
 132954       : #> /usr/bin/curl -RsS -o /var/run/ddns/myddns_ipv4.dat --stderr /var/run/ddns/myddns_ipv4.err --noproxy '*' 'http://CENSORED:***PW***@domains.google.com/nic/update?hostname=CENSORED&myip=CENSORED'
 132954       : DDNS Provider answered:
<HTML>
<HEAD>
<TITLE>Moved Temporarily</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Moved Temporarily</H1>
The document has moved <A HREF="https://domains.google.com/nic/update?hostname=CENSORED&amp;myip=CENSORED">here</A>.
</BODY>
</HTML>
 132954 ERROR : IP update not accepted by DDNS Provider
```

Signed-off-by: Paul Tobias <tobias.pal@gmail.com>
(cherry picked from commit 21f5cdd2fa)
2020-05-08 15:33:29 +08:00
Leong Hui Wong
18e9050e3a treewide: update wiki links
Signed-off-by: Leong Hui Wong <wong.leonghui@gmail.com>
2019-12-14 15:36:57 +08:00
Dirk Brenken
3415e6738b
ddns-scripts: various fixes
* use '$ddns_rundir' in 'get_service_data' for pipe creation, fix #8971
* add missing local variables in 'get_service_data'
* change DNS server verification with drill in 'verify_host_port',
fix/supersed #8935
* remove needless cat calls in 'verify_host_port'
* set cloudfare TTL to min. 120 seconds, fix #7745
* bump/align package version number

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 2e06c4ec93)
2019-07-20 08:38:16 +02:00
James Qian
f1d6464537
ddns-scripts: modify deSEC update url
the latest update url format for deSEC is
http(s)://update.dedyn.io/update?username=[USERNAME]&password=[PWD]

Signed-off-by: James Qian <sotux82@gmail.com>
(cherry picked from commit e4951651e2)
2019-07-20 08:37:50 +02:00
Florian Keller
87731d00e0
ddns-scripts: Add INWX service
Signed-off-by: Florian Keller <github@floriankeller.de>
2019-06-05 10:22:07 +02:00
Keve Mueller
c9188f5014 ddns-scripts: Bumped PKG_RELEASE
Signed-off-by: Keve Mueller <keve@keve.hu>
2019-04-11 13:27:50 +02:00
Keve Mueller
3cce724dbe ddns-scripts: Working example to use local_script to derive a SLAAC IPv6 address
Signed-off-by: Keve Mueller <keve@keve.hu>
2019-04-11 13:15:45 +02:00
Jan Pavlinec
f145eb642b
ddns-scripts: add hsts-file parameter to wget call
Note: this should prevent wget to writing to /root/.wget-hsts
 which can lead to flash memory degradation.

Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-03-25 13:34:28 +01:00
Martin Konrad
c845b17928 ddns-scripts: submit one change at a time to route53
This prevents updates from failing if multiple instances of the
script are running in parallel. This fixes #7492.

Signed-off-by: Martin Konrad <info@martin-konrad.net>
2018-11-23 13:56:38 -05:00
Dirk Brenken
e2f73cbd58 ddns-scripts: multiple fixes
* replace shell based urlencoder with an awk variant
* fix write_log function/syslog output in case of an error
* protect answer string with double quotes in update_route53
* remove bogus set/IFS options in update_route53
* clean-up update_route53 a little bit

This patchset finally fix #6977

Many thanks to @mark0n & @a-bali for testing & debugging

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-09-28 07:41:52 +02:00
Jacek Politowski
dee7740968 ddns-scripts: Respect config option 'ip_source'
Option 'ip_source' was silently ignored during public IP discovery.

Discovery (in spite of chosen 'ip_source') was based only on
'ip_network', 'ip_interface', 'ip_script' or 'ip_url' options (in this
order) if they were set. This could lead to misleading log entries
"Detect local IP on '$ip_source'" pointing to source that wasn't really
used.

Now only option relevant to configured 'ip_source' is taken into
account.

Signed-off-by: Jacek Politowski <dev@jpol.net.pl>
2018-08-27 19:47:41 +02:00
Dirk Brenken
2e13d92b4f ddns-scripts: revert latest noglob/subshell changes
* partly revert 9e79e1b to fix #6861
* simplify CURL_SSL detection
* bump package version in Makefile & script library

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-08-26 07:15:46 +02:00
Dirk Brenken
31a3852044
Merge pull request #6747 from mark0n/fix-curl-variable
ddns-scripts: Fix problems detecting if curl is SSL capable
2018-08-20 18:04:16 +02:00
Martin Konrad
c9b5b02200 ddns-scripts_route53-v1: Fix problems detecting curl
Ensure cURL is installed and has SSL support. This fixes
issue 6744.

Signed-off-by: Martin Konrad <info@martin-konrad.net>
2018-08-20 11:30:37 -04:00
Jo-Philipp Wich
65d9b3f92b
Merge pull request #6562 from KarlVogel/host_sanitize
ddns-scripts: sanitize host charset and shell escape characters
2018-08-16 15:44:28 +02:00
Christian Schoenebeck
a6551b2cbc ddns-scripts: bump to version 2.7.8-1
- remove Cloudflare v1 protocol support #6084 #6519
- fix goip.de update url #6448 #6519
- change Cloudflare v4 to read "Proxied" from current setting at Cloudflare Dashboard #5097 #6364 #6505
- fix replace of password inside logfile #6568
- remove myself as PKG_MAINTAINER

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2018-08-01 09:36:33 +02:00
Karl Vogel
9e79e1b668 ddns-scripts: sanitize host charset and shell escape characters
Since certain characters are dangerous to pass as-is to a sub shell,
sanitize the character set and only allow characters that are considered
valid for DNS hosts and filter shell escape characters on generic parameters.

Disable pathname expansion on RUNPROG evals to disable the shell expanding *,
? and [ in the arguments.

Signed-off-by: Karl Vogel <karl.vogel@gmail.com>
2018-07-25 08:18:46 +02:00
Michal Lipka
269b4ce218 ddns-scripts: New ddns script for polish service FreeDNS.42.pl
new ddns script for polish service FreeDNS.42.pl where you can
host your own domains for free

Signed-off-by: Michal Lipka <michal@sysadmin.care>

(commits from PR #6150 squashed together)
2018-06-09 13:37:54 +03:00
Ansuel Smith
8bb49eb5ed
ddns-scripts: fix unefficent sh script
Currently this 3 variable are used only 1 time in the sh script and cause 10s of delay for them to load... move them to load only if it's required by the command. This also fix luci-app-ddns delay problem derived by calling dns_lucihelper (that use tdns_functions to load data) for the version.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-06-02 18:04:16 +02:00
Emil Muratov
19415a4c47 ddns-scripts: "now-dns.com" service fix
- Add valid responses "good|nochg" so that ddns-script could recognize "badauth"
   error that comes with http 200 code
 - Switch url to https scheme. "now-dns.com" always returns 302 redirect
   to https:// for all plain-text http requests. Since working via default
   plain-text http is not possible anyway, forcing url to https prevents
   curl sending unencrypted plain-text credentials via basic auth

Signed-off-by: Emil Muratov <gpm@hotplug.ru>
2018-05-11 18:35:49 +03:00
Christian Schoenebeck
6d8f45f759 ddns-scripts: fixes "sed: no previous regexp"
Rewritten Pull for #5885

When ran from the command line, the script prints
error messages like below. They are caused by supplying
empty "$password" and "$URL_PASS" for some log messages
like "130822       : Detect local IP on 'interface'".
The fix is to check if the values are not empty before running
through sed.

/etc/init.d/ddns start
sed: no previous regexp

Reported by Marc Benoit <marcb62185@gmail.com>

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2018-04-21 12:11:46 +02:00
Danny Scott
d5ae2850b8
ddns-scripts: Add OK to valid easydns resonse.
Signed-off-by: Danny Scott <doscott@gmail.com>'
2018-04-16 09:46:17 -03:00
Christian Schoenebeck
74eac1f595 ddns-scripts: fix incompatibility with luci-app-ddns <= V.2.4.8-2
fix incompatibility with luci-app-ddns versions <= 2.4.8-2 (#5430)

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2018-01-14 20:27:59 +01:00
Christian Schoenebeck
8cb6b1dc4d ddns-scripts: multiple fixes
Write *.ip file with current registered IP, whenever "get_registered_IP" is called (used by next luci-app-ddns version)
Changed detection of cURL proxy support #3876
Reread data from ubus if "get_local_ip" from "ip_network" #5004 #3338
Fix godaddy_com_v1 #5285
Implement "param_opt" for "cloudflare_com_v4" #5097
Inside logfile "*password*" printed in stead of real password #5281 and others
Add ipv4 service "dnsever.com" #5178
Add ipv4 service "myip.co.ua" #5199

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2018-01-13 11:58:17 +01:00
Max Berger
0eda1007bb ddns-scripts: Support Amazon AWS Route53 as a ddns provider
Based on a sh-only route53 update script by Yuval Adam
https://github.com/yuvadm/route53-ddns/blob/master/route53.sh

Signed-off-by: Max Berger <max@berger.name>
2018-01-09 22:08:51 +01:00
Alexander Couzens
2b3b72522d
ddns-scripts: remove gzip timestamp
gzip create a header by default containing the filename
and the timestamp of the file.
This timestamp will break reproducible builds [0].

[0] https://reproducible-builds.org/docs/timestamps/

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
2017-12-03 06:24:21 +01:00
Wendy Wu
8e62bc6b6c ddns-script: fix update_url incorrect for duckdns.org service
Maintainer: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Compile tested: arch:arm, OpenWRT/LEDE version:for-15.05
Run tested: arch:arm, OpenWRT/LEDE version:for-15.05, tests done

Description:
<ddns-script>: fix update_url incorrect for duckdns.org service
Signed-off-by: Wendy Wu <wendy2001011@163.com>
2017-10-30 14:07:16 +08:00
Ernest Moshkov
6943f44550 ddns-scripts: fix dynv6.com "unchanged" response
Maintainer: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Run tested: LEDE Reboot 17.01.3 r3533-d0bf257c46

Description:

user.err ddns-scripts: IP update not accepted by DDNS Provider

dynv6.com response "unchanged" is OK

Signed-off-by: Ernest Moshkov <e.moshkov@gmail.com>
2017-10-22 17:08:38 +03:00
Qian Zheng
f626cd6334 net/ddns-scripts: Fix deSEC update URL
deSEC update API doesn't support http://[USERNAME]:[PASSWORD]@update.dedyn.io/update authorization.

So we need to pass username & password as get parameters.

API ref: https://desec.io/#!/en/docs/update-api-details

Signed-off-by: Qian Zheng <sotux82@gmail.com>
2017-09-25 08:56:46 +08:00
Phil John
9d7f3d5f63 ddns-scripts: update PKG_RELEASE in Makefile
As requested, bumping the PKG_RELEASE

Signed-off-by: Phil John <philjohn@gmail.com>
2017-08-16 20:55:22 +01:00
Phil John
b55730e7eb ddns-scripts: add support for dynu.com IPv6 update
Dynu.com already support IPV6 updates using the parameter myipv6, adding to services_ipv6 to enable support in OpenWRT/LEDE

Signed-off-by: Phil John <philjohn@gmail.com>
2017-08-14 21:29:18 +01:00
Thomas Guyot-Sionnest
251e5c9cb1 ddns-scripts: Add afraid.org version 2 API
afraid.org has a new update API with better IPV6 support. It needs to be
specifically enabled for each domain, so the original v1 api has been

Signed-off-by: Thomas Guyot-Sionnest <dermoth@aei.ca>
2017-07-15 16:36:44 -04:00
Alvaro [Andor]
f721a27b15 Fix http/https, increase PKG_RELEASE 2017-06-27 23:48:53 +02:00
Alvaro [Andor]
c55885e9c5 Fix dnsmadeeasy ddns url
Dnsmadeeasy dyndns service url was wrong, fixed both the address, the parameters, and the ssl connection.
2017-06-15 22:05:50 +02:00
Xavier Douville
2a2ea67586 ddns-scripts: remove answer checking for dnsexit
remove answer checking for dnsexit as their API allows for too many return codes to handle them all.

Signed-off-by: Xavier Douville <zorxd@users.noreply.github.com>
2017-03-13 12:15:27 -04:00
Xavier Douville
0eab032f99 ddns-scripts: increment PKG_RELEASE
Signed-off-by: Xavier Douville <zorxd@users.noreply.github.com>
2017-03-12 13:02:04 -04:00
Xavier Douville
96e526bad3 ddns-scripts: update dnsexit.com update URL+response. Reference http://downloads.dnsexit.com/ipUpdateDev.doc
Signed-off-by: Xavier Douville <zorxd@users.noreply.github.com>
2017-03-12 11:00:25 -04:00
Stijn Tintel
f82287cf5c treewide: use name in define and eval lines
For consistency, use full name instead of $(PKG_NAME) in define and eval
lines for all packages.

I've seen reviews that asked to do this before, and I am asking the same
during reviews now. To avoid this in the future, fix this treewide so
when people use existing packages as example, we will not have to
request this change anymore.

This makes all packages consistent with both LEDE and OpenWrt base
repositories.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2017-03-08 21:15:20 +01:00
Christian Schoenebeck
1ed6afb980 ddns-scripts: New update url for service duiadns.net
- new update url for service "duiadns.net"
- updated public_suffix_list.dat

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2017-02-09 21:41:40 +01:00
Christian Schoenebeck
04d808ec43 ddns-scripts: 2nd fix detecting local ip from ip command
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2017-01-16 21:08:33 +01:00
Christian Schoenebeck
d093904bc1 ddns-scripts: fix detecting local ip from ip command
fix detecting local ip from ip command #3834

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2017-01-15 10:30:38 +01:00
Christian Schoenebeck
71b50a7acc ddns-scripts: fixes for nslookup and khost
- fix ip extraction if knot host is used together with glue records
- fix ip extraction from nslookup if reverse dns record has ip with dot reported at http://forum.lede-project.org/t/ddns-scripts-error/909

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2017-01-11 22:08:42 +01:00