From 825f751caa16a09592abe9848a2b1e6acea49210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Dragi=C4=87?= Date: Fri, 4 Jan 2019 14:17:38 +0100 Subject: [PATCH] dns/dyndns: update HE.net TunnelBroker URL (#1119) * dns/dyndns: update HE.net Tunnelbroker URL * dns/dyndns: update HE.net dns service - Don't force IPv4 only host resolving for the dynamic dns update service, - Enable HTTPS cert verification for HE.net dns, it seems they now use Let's Encrypt, instead of a self-signed certificate. * dns/dyndns: bump version for HE.net dns and tunnelbroker updates --- dns/dyndns/Makefile | 2 +- dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dns/dyndns/Makefile b/dns/dyndns/Makefile index 928e6c172..f453b98f7 100644 --- a/dns/dyndns/Makefile +++ b/dns/dyndns/Makefile @@ -1,5 +1,5 @@ PLUGIN_NAME= dyndns -PLUGIN_VERSION= 1.11 +PLUGIN_VERSION= 1.12 PLUGIN_COMMENT= Dynamic DNS Support PLUGIN_MAINTAINER= franco@opnsense.org diff --git a/dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc b/dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc index 556fe2166..4cb8e87db 100644 --- a/dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc +++ b/dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc @@ -597,15 +597,14 @@ class updatedns case 'he-net': case 'he-net-v6': $server = "https://dyn.dns.he.net/nic/update?"; - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch, CURLOPT_URL, $server . 'hostname=' . $this->_dnsHost . '&password=' . $this->_dnsPass . '&myip=' . $this->_dnsIP); break; case 'he-net-tunnelbroker': - $server = "https://ipv4.tunnelbroker.net/ipv4_end.php?"; + $server = "https://ipv4.tunnelbroker.net/nic/update?"; curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch, CURLOPT_USERPWD, $this->_dnsUser . ':' . $this->_dnsPass); - curl_setopt($ch, CURLOPT_URL, $server . 'tid=' . $this->_dnsHost); + curl_setopt($ch, CURLOPT_URL, $server . 'hostname=' . $this->_dnsHost); break; case 'selfhost': if (isset($this->_dnsWildcard) && $this->_dnsWildcard != "OFF") {