Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
12810d94
Commit
12810d94
authored
May 26, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dynamic dns: add oray and 3322, cluster response parsing from same service backend
parent
93d68f77
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
204 deletions
+72
-204
dyndns.inc
src/etc/inc/plugins.inc.d/dyndns.inc
+5
-3
phpDynDNS.inc
src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc
+60
-198
services.inc
src/etc/inc/services.inc
+7
-3
No files found.
src/etc/inc/plugins.inc.d/dyndns.inc
View file @
12810d94
...
...
@@ -90,6 +90,7 @@ function dyndns_cron()
function
dyndns_list
()
{
return
array
(
'3322'
=>
'3322'
,
'citynetwork'
=>
'City Network'
,
'cloudflare'
=>
'CloudFlare'
,
'custom'
=>
'Custom'
,
...
...
@@ -99,23 +100,24 @@ function dyndns_list()
'dnsomatic'
=>
'DNS-O-Matic'
,
'duckdns'
=>
'Duck DNS'
,
'dyndns'
=>
'DynDNS (dynamic)'
,
'dyndns-static'
=>
'DynDNS (static)'
,
'dyndns-custom'
=>
'DynDNS (custom)'
,
'dyndns-static'
=>
'DynDNS (static)'
,
'dyns'
=>
'DyNS'
,
'easydns'
=>
'easyDNS'
,
'eurodns'
=>
'EuroDNS'
,
'freedns'
=>
'freeDNS'
,
'gratisdns'
=>
'GratisDNS'
,
'googledomains'
=>
'Google Domains'
,
'gratisdns'
=>
'GratisDNS'
,
'he-net'
=>
'HE.net'
,
'he-net-v6'
=>
'HE.net (v6)'
,
'he-net-tunnelbroker'
=>
'HE.net Tunnelbroker'
,
'he-net-v6'
=>
'HE.net (v6)'
,
'loopia'
=>
'Loopia'
,
'namecheap'
=>
'Namecheap'
,
'noip'
=>
'No-IP'
,
'noip-free'
=>
'No-IP (free)'
,
'ods'
=>
'ODS.org'
,
'opendns'
=>
'OpenDNS'
,
'oray'
=>
'Oray'
,
'ovh-dynhost'
=>
'OVH DynHOST'
,
'route53'
=>
'Route 53'
,
'selfhost'
=>
'SelfHost'
,
...
...
src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc
View file @
12810d94
This diff is collapsed.
Click to expand it.
src/etc/inc/services.inc
View file @
12810d94
...
...
@@ -1556,11 +1556,15 @@ function get_dyndns_ip($int, $ipver = 4)
if
(
$ipver
==
6
||
is_private_ip
(
$ip_address
))
{
$gateways_status
=
return_gateways_status
(
true
);
// If the gateway for this interface is down, then the external check cannot work.
// Avoid the long wait for the external check to timeout.
if
(
stristr
(
$gateways_status
[
$config
[
'interfaces'
][
$int
][
'gateway'
]][
'status'
],
"down"
))
{
/*
* If the gateway for this interface is down, then the external
* check cannot work. Avoid the long wait for the external check
* to timeout.
*/
if
(
stristr
(
$gateways_status
[
$config
[
'interfaces'
][
$int
][
'gateway'
]][
'status'
],
'down'
))
{
return
'down'
;
}
/* Chinese alternative is http://ip.3322.net/ */
$hosttocheck
=
$ipver
==
6
?
'http://checkipv6.dyndns.org'
:
'http://checkip.dyndns.org'
;
$ip_ch
=
curl_init
(
$hosttocheck
);
curl_setopt
(
$ip_ch
,
CURLOPT_RETURNTRANSFER
,
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment