mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
ddns-scripts: Update to Version 2.0.1-1
Squashed commit of the following: commit fc1d42f069ff930180c5f067c2eb88c9e9df7003 Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 18:01:43 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 commit 731f9b4df00a8f29df2c17f102356c4d6980918a Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:59:25 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 personal helper script to create hashes for CA-Certificates for Wget and cURL using https protocol without errors. Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit df8f6c9d5d31fde24fe1d673949d272d887505e1 Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:56:05 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 rewritten Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit 50cdf5acb9caecfd9b65ab79696c40fb2bc7037b Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:54:40 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 rewritten Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit b1d650a345fb06402c1eac01138cbafcca123a8c Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:52:52 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 not needed in this version Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit 9532114b03d428a3162b16e06706d3aa50e601bb Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:51:39 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 same function as existing services file but used for IPv6 Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit a636bc25c62e23694c009886c13253c9cecc548c Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:46:56 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 New file explaining availible parameters. Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit 52332354fc245861e17c898aa6b806f6c174e9a5 Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:44:45 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
This commit is contained in:
@@ -1,97 +1,29 @@
|
||||
#################################################################
|
||||
# In order to enable dynamic dns you need at least one section,
|
||||
# and in that seciton the "enabled" option must be set to one
|
||||
#
|
||||
# Each section represents an update to a different service
|
||||
#
|
||||
# You specify your domain name, your username and your password
|
||||
# with the optins "domain", "username" and "password" respectively
|
||||
# Please read ddns.sample
|
||||
#
|
||||
# Next you need to specify the name of the service you are
|
||||
# connecting to "eg. dyndns.org". The format of the update
|
||||
# urls for several different dynamic dns services is specified
|
||||
# in the /usr/lib/ddns/services file. This list is hardly complete
|
||||
# as there are many, many different dynamic dns services. If your
|
||||
# service is on the list you can merely specify it with the
|
||||
# "service_name" option. Otherwise you will need to determine
|
||||
# the format of the url to update with. You can either add an
|
||||
# entry to the /usr/lib/ddns/services file or specify this with
|
||||
# the "update_url" option.
|
||||
#
|
||||
# We also need to specify the source of the ip address to associate with
|
||||
# your domain. The "ip_source" option can be "network", "interface"
|
||||
# or "web", with "network" as the default.
|
||||
#
|
||||
# If "ip_source" is "network" you specify a network section in your
|
||||
# /etc/network config file (e.g. "wan", which is the default) with
|
||||
# the "ip_network" option. If you specify "wan", you will update
|
||||
# with whatever the ip for your wan is.
|
||||
#
|
||||
# If "ip_source" is "interface" you specify a hardware interface
|
||||
# (e.g. "eth1") and whatever the current ip of this interface is
|
||||
# will be associated with the domain when an update is performed.
|
||||
#
|
||||
# If "ip_source" is "script" you specify a script to obtain ip address.
|
||||
# The "ip_script" option should contain path to your script.
|
||||
#
|
||||
# The last possibility is that "ip_source" is "web", which means
|
||||
# that in order to obtain our ip address we will connect to a
|
||||
# website, and the first valid ip address listed on that page
|
||||
# will be assumed to be ours. If you are behind another firewall
|
||||
# this is the best option since none of the local networks or
|
||||
# interfaces will have the external ip. The website to connect
|
||||
# to is specified by the "ip_url" option. You may specify multiple
|
||||
# urls in the option, separated by whitespace.
|
||||
#
|
||||
# Finally we need to specify how often to check whether we need
|
||||
# to check whether the ip address has changed (and if so update
|
||||
# it) and how often we need to force an update ( many services
|
||||
# will expire your domain if you don't connect and do an update
|
||||
# every so often). Use the "check_interval" to specify how
|
||||
# often to check whether an update is necessary, the "retry_interval"
|
||||
# to specify how often to retry in case the update has failed, and
|
||||
# the "force_interval" option to specify how often to force an
|
||||
# update. Specify the units for these values with the "check_unit",
|
||||
# the "retry_init" and the "force_unit" options. Units can be
|
||||
# "days", "hours", "minutes" or "seconds". The default force_unit
|
||||
# is hours, the default retry_unit is seconds and the default
|
||||
# check_unit is seconds. The default check_interval is 600 seconds,
|
||||
# or ten minutes. The default retry_interval is 60 seconds, or one
|
||||
# minute. The default force_interval is 72 hours or 3 days.
|
||||
#
|
||||
#
|
||||
#########################################################
|
||||
config ddns "global"
|
||||
option date_format "%F %R"
|
||||
# option run_dir "/var/run/ddns"
|
||||
# option log_dir "/var/log/ddns"
|
||||
option log_lines "250"
|
||||
|
||||
config service "myddns"
|
||||
option enabled "0"
|
||||
option interface "wan"
|
||||
option use_syslog "1"
|
||||
|
||||
config service "myddns_ipv4"
|
||||
option service_name "dyndns.org"
|
||||
option domain "mypersonaldomain.dyndns.org"
|
||||
option username "myusername"
|
||||
option password "mypassword"
|
||||
option use_https "0"
|
||||
|
||||
option force_interval "72"
|
||||
option force_unit "hours"
|
||||
option check_interval "10"
|
||||
option check_unit "minutes"
|
||||
option retry_interval "60"
|
||||
option retry_unit "seconds"
|
||||
|
||||
#option ip_source "network"
|
||||
#option ip_network "wan"
|
||||
|
||||
#option ip_source "interface"
|
||||
#option ip_interface "eth0.1"
|
||||
|
||||
#option ip_source "script"
|
||||
#option ip_script "path to your scrip"
|
||||
|
||||
option ip_source "web"
|
||||
option ip_url "http://checkip.dyndns.com/"
|
||||
|
||||
#option update_url "http://[USERNAME]:[PASSWORD]@members.dyndns.org/nic/update?hostname=[DOMAIN]&myip=[IP]"
|
||||
|
||||
option domain "yourhost.dyndns.org"
|
||||
option username "your_username"
|
||||
option password "your_password"
|
||||
option interface "wan"
|
||||
option ip_source "network"
|
||||
option ip_network "wan"
|
||||
|
||||
config service "myddns_ipv6"
|
||||
option update_url "http://[USERNAME]:[PASSWORD]@your.provider.net/nic/update?hostname=[DOMAIN]&myip=[IP]"
|
||||
option domain "yourhost.dyndns.org"
|
||||
option username "your_username"
|
||||
option password "your_password"
|
||||
option use_ipv6 "1"
|
||||
option interface "wan6"
|
||||
option ip_source "network"
|
||||
option ip_network "wan6"
|
||||
|
||||
|
||||
@@ -0,0 +1,272 @@
|
||||
#
|
||||
#
|
||||
# Here you find a description on every parameter supported
|
||||
# and used by ddns-scripts and corresponding LuCI application
|
||||
#
|
||||
# Inside your ddns configuration file (/etc/config/ddns)
|
||||
# you might not find some of below described options.
|
||||
# This is because you don't need to define options
|
||||
# if using there defaults. The LuCI application will delete
|
||||
# options that configured to there default values.
|
||||
#
|
||||
# If you have a working ddns configuration from old ddns-scripts (Version 1.x)
|
||||
# everything will function the same with new scripts
|
||||
# without any changes to the configuration.
|
||||
#
|
||||
# If you like to use this file for your configuration then
|
||||
# use a copy, because the used software to modify the
|
||||
# configuration files will throw away all empty lines
|
||||
# and those starting with # (comments).
|
||||
#
|
||||
|
||||
#####################################################################
|
||||
# Global application settings
|
||||
#
|
||||
config ddns "global"
|
||||
|
||||
###########
|
||||
# set date format to use for display date in logfiles
|
||||
# and LuCI web application.
|
||||
# For codes see man pages of date command.
|
||||
# default: "%F %R" (ISO 8601 format)
|
||||
# option date_format "%F %R"
|
||||
|
||||
###########
|
||||
# set run directory to use for .pid and .update files
|
||||
# there will be a separate file for every running service section
|
||||
# default: "/var/run/ddns"
|
||||
# option run_dir "/var/run/ddns"
|
||||
|
||||
###########
|
||||
# set log directory to use for .log files
|
||||
# there will be a separate file for every running service section
|
||||
# default: "/var/log/ddns"
|
||||
# option log_dir "/var/log/ddns"
|
||||
|
||||
###########
|
||||
# set number of lines stored in .log file before auto truncated
|
||||
# default: "250" lines
|
||||
# option log_lines "250"
|
||||
|
||||
|
||||
#####################################################################
|
||||
# DDNS service settings
|
||||
#
|
||||
# for each service you want to serve you need a separate configuration
|
||||
# if you need IPv4 and IPv6 you need to setup 2 separate configurations
|
||||
# with different names. (i.e. "myddns_ipv4" and "myddns_ipv6")
|
||||
# do not use white-spaces or dashes "-" or "@" ":" "!" or
|
||||
# other special characters inside name.
|
||||
config service "myddns"
|
||||
|
||||
########### Basic settings ########################
|
||||
|
||||
###########
|
||||
# enable/disable this service section
|
||||
# default: "0" disabled
|
||||
option enabled "0"
|
||||
|
||||
###########
|
||||
# detecting/sending IPv4 or IPv6 address to the DDNS provider
|
||||
# set to "1" if you want to use IPv6
|
||||
# default: "0" use IPv4
|
||||
option use_ipv6 "0"
|
||||
|
||||
###########
|
||||
# defines the network as defined in /etc/config/network
|
||||
# to be monitored for up/down events to start via hotplug
|
||||
default: "wan" for IPv4
|
||||
default: "wan6" for IPv6
|
||||
option interface "wan"
|
||||
|
||||
###########
|
||||
# Next you need to specify the name of the service you are
|
||||
# connecting to "eg. dyndns.org". The format of the update
|
||||
# urls for several different dynamic dns services is specified
|
||||
# in the "/usr/lib/ddns/services" file for IPv4 and in
|
||||
# "/usr/lib/ddns/service_ipv6" file. This list is hardly complete
|
||||
# as there are many, many different dynamic dns services.
|
||||
# If your service is on the list you can merely specify it with the
|
||||
# "service_name" option. Otherwise you will need to determine
|
||||
# the format of the url to update with. You can either add an
|
||||
# entry to the "/usr/lib/ddns/services" or "services_ipv6" file
|
||||
# or specify this with the "update_url" option.
|
||||
# default: none
|
||||
option service_name "dyndns.org"
|
||||
|
||||
# sample:
|
||||
# "http://[USERNAME]:[PASSWORD]@members.dyndns.org/nic/update?hostname=[DOMAIN]&myip=[IP]"
|
||||
# option update_url ""
|
||||
|
||||
###########
|
||||
# You must specify your domain/host name, your username and your password
|
||||
# as you get from you DDNS provider. Keep an eye on providers help pages.
|
||||
#
|
||||
# Your DNS name / replace [DOMAIN] in update_url
|
||||
# default: none
|
||||
option domain ""
|
||||
|
||||
# Username of your DDNS service account / replace [USERNAME] in update_url
|
||||
# default: none
|
||||
option username ""
|
||||
|
||||
# Password of your DDNS service account / replace [PASSWORD] in update_url
|
||||
# default: none
|
||||
option password ""
|
||||
|
||||
###########
|
||||
# use HTTPS for secure communication with you DDNS provider
|
||||
# personally found some providers having problems when not sending
|
||||
# updates via HTTPS. Yyou must not specify "https://" in update_url.
|
||||
# It's modified by the scripts themselves
|
||||
# Needs GNU Wget (with SSL support) or cURL to be installed.
|
||||
# default: "0" do not use HTTPS
|
||||
option use_https "0"
|
||||
|
||||
# if using HTTPS (see above) the transfer program tries to verify
|
||||
# the providers server certificate. For verification there needs to be
|
||||
# the counterpart on this machine. Specify the path or path/file where
|
||||
# the transfer program can find them. (might need package CA-certificates)
|
||||
# if you don't want to verify servers certificate (insecure) you should
|
||||
# this parameter to "IGNORE" (in capital letters)
|
||||
# default: "/etc/cacert" path where CA-certificate package is installed
|
||||
option cacert "/etc/cacert"
|
||||
|
||||
###########
|
||||
# for logging and control if everything work fine you can get information inside
|
||||
# system log . Critical Errors are always send to system log.
|
||||
# You can define which information you like to log
|
||||
# 1 == info, notice, warning, errors
|
||||
# 2 == notice, warning, errors
|
||||
# 3 == warning, errors
|
||||
# 4 == errors
|
||||
# default: "0" off
|
||||
option use_syslog "0"
|
||||
|
||||
###########
|
||||
# for logging and control if everything work fine you can get information inside
|
||||
# log file. You find the file per default in /var/log/ddns/[sectionname].log
|
||||
# The path can be modified for all log files in ddns.global section (see above)
|
||||
# default: "1" on
|
||||
option use_logfile "1"
|
||||
|
||||
########### Advanced settings #####################
|
||||
|
||||
###########
|
||||
# you need to specify how ddns-scripts should detect you current local ip.
|
||||
# the ip_source could be set to "network", "web", "interface" or "script"
|
||||
# the parameters below specifying the additional information needed for
|
||||
# the corresponding ip_spource configuration
|
||||
# default: "network"
|
||||
|
||||
# ip_source "network" additional uses option ip_network and detects the
|
||||
# current local ip on network as defined in /etc/config/network
|
||||
# default: "wan" using IPv4
|
||||
# default: "wan6" using IPv6
|
||||
option ip_source "network"
|
||||
option ip_network "wan"
|
||||
|
||||
# ip_source "web" additional uses option ip_url and detects the current
|
||||
# local ip from special web sides that response with the ip address of
|
||||
# calling host. If you are behind a firewall/NAT this is the best option
|
||||
# since none of the local networks or interfaces will have the external ip.
|
||||
# default: "http://checkip.dyndns.com" using IPv4
|
||||
# default: "http://checkipv6.dyndns.com" using IPv6
|
||||
# option ip_source "web"
|
||||
# option ip_url "http://checkip.dyndns.com"
|
||||
|
||||
# ip_source "interface" additional uses option ip_interface
|
||||
# ip_source "interface" uses one of the locally installed physical interfaces
|
||||
# to detect independent from network they configured to.
|
||||
# default: none
|
||||
# option ip_source "interface"
|
||||
# option ip_interface "eth1"
|
||||
|
||||
# ip_source "script" additional uses option ip_script
|
||||
# it's useful if you want to write your own script to detect the
|
||||
# current local ip. put full path into ip_script option.
|
||||
# The script must be executable.
|
||||
# default: none
|
||||
# option ip_source "script"
|
||||
# option ip_script ""
|
||||
|
||||
###########
|
||||
# force_ipversion option will set the "-4" respectively "-6" parameter
|
||||
# on command line of transfer and DNS lookup program.
|
||||
# So the whole communication uses the selected IP version between both ends.
|
||||
# needs GNU Wget or cURL installed for transfer and
|
||||
# BIND's host for DNS lookup.
|
||||
# default: "0" disabled
|
||||
option force_ipversion "0"
|
||||
|
||||
###########
|
||||
# normally the current (in the internet) registered ip is detected using the
|
||||
# local defined name lookup policies (i.e. /etc/resolve.conf etc.)
|
||||
# Specify here a DNS server to use instead of the defaults.
|
||||
# you can use hostname or ip address
|
||||
# IPv6 address must be in squared brackets "[...]"
|
||||
# i.e. "google-public-dns-a.google.com"
|
||||
# default: none
|
||||
# option dns_server "google-public-dns-a.google.com"
|
||||
|
||||
# By default every DNS call is made via UDP protocol
|
||||
# Some internet provider offer modems that cache UDP DNS requests.
|
||||
# They also redirect calls to external servers to local.
|
||||
# To force the usage of TCP for DNS requests enable this option
|
||||
# Needs BIND's host program be installed
|
||||
# default: "0" disabled
|
||||
# option force_dnstcp "0"
|
||||
|
||||
###########
|
||||
# If a Proxy is need to access HTTP/HTTPS pages on the WEB
|
||||
# it can be configured here also for sending updates to the
|
||||
# DDNS provider. If you configured use_https='1' above, you
|
||||
# need to setup your HTTPS proxy here, otherwise your
|
||||
# HTTP proxy. !!! You should not detect your current IP
|
||||
# ip_source='web' (see above) because this request is also
|
||||
# send via the configured proxy !!!
|
||||
# Syntax: [user:password@]proxy:port !port is required !
|
||||
# default: none
|
||||
# option proxy ''
|
||||
|
||||
########### Timer settings ########################
|
||||
|
||||
###########
|
||||
# defines the time interval to check if local IP has changed
|
||||
# After the first start and first update send, the system will
|
||||
# wait this time before verify if update was successful send.
|
||||
# !!! checks below 5 minutes make no sense because the Internet
|
||||
# needs about 5-10 minutes to sync an IP-change to all DNS servers !!!
|
||||
# accepted unit entry’s: 'seconds' 'minutes' 'hours' 'days'
|
||||
# minimum 5 minutes == 300 seconds
|
||||
# default 10 minutes
|
||||
option check_interval '10'
|
||||
option check_unit 'minutes'
|
||||
|
||||
###########
|
||||
# force to send an update to service provider, if no change was detected.
|
||||
# consult DDNS providers documentation if your DDNS entry might timeout.
|
||||
# accepted unit entry’s: 'seconds' 'minutes' 'hours' 'days'
|
||||
# minimum needs to be greater or equal check interval (see above)
|
||||
# A special setting of '0' is allowed, which forces the script to run once.
|
||||
# It sends an update, verify if update was accepted by DNS
|
||||
# (retry if not) and finish. Useful if you want to start by your own (i.e. cron)
|
||||
# default 3 days == 72 hours
|
||||
option force_interval '72'
|
||||
option force_unit 'hours'
|
||||
|
||||
###########
|
||||
# if error happen on detecting, sending or updating the
|
||||
# script will retry the relevant action for retry_count times
|
||||
# before stopping script execution.
|
||||
# default: 5
|
||||
option retry_count '5'
|
||||
|
||||
###########
|
||||
# if error happen on detecting, sending or updating the
|
||||
# script will retry the relevant action.
|
||||
# here you define the time to wait before retry is started
|
||||
# accepted unit entry’s: 'seconds' 'minutes' 'hours' 'days'
|
||||
# default: 60 seconds
|
||||
option retry_interval '60'
|
||||
option retry_unit 'seconds'
|
||||
Reference in New Issue
Block a user