You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

272 lines
10 KiB

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>
10 years ago
  1. #
  2. #
  3. # Here you find a description on every parameter supported
  4. # and used by ddns-scripts and corresponding LuCI application
  5. #
  6. # Inside your ddns configuration file (/etc/config/ddns)
  7. # you might not find some of below described options.
  8. # This is because you don't need to define options
  9. # if using there defaults. The LuCI application will delete
  10. # options that configured to there default values.
  11. #
  12. # If you have a working ddns configuration from old ddns-scripts (Version 1.x)
  13. # everything will function the same with new scripts
  14. # without any changes to the configuration.
  15. #
  16. # If you like to use this file for your configuration then
  17. # use a copy, because the used software to modify the
  18. # configuration files will throw away all empty lines
  19. # and those starting with # (comments).
  20. #
  21. #####################################################################
  22. # Global application settings
  23. #
  24. config ddns "global"
  25. ###########
  26. # set date format to use for display date in logfiles
  27. # and LuCI web application.
  28. # For codes see man pages of date command.
  29. # default: "%F %R" (ISO 8601 format)
  30. # option date_format "%F %R"
  31. ###########
  32. # set run directory to use for .pid and .update files
  33. # there will be a separate file for every running service section
  34. # default: "/var/run/ddns"
  35. # option run_dir "/var/run/ddns"
  36. ###########
  37. # set log directory to use for .log files
  38. # there will be a separate file for every running service section
  39. # default: "/var/log/ddns"
  40. # option log_dir "/var/log/ddns"
  41. ###########
  42. # set number of lines stored in .log file before auto truncated
  43. # default: "250" lines
  44. # option log_lines "250"
  45. #####################################################################
  46. # DDNS service settings
  47. #
  48. # for each service you want to serve you need a separate configuration
  49. # if you need IPv4 and IPv6 you need to setup 2 separate configurations
  50. # with different names. (i.e. "myddns_ipv4" and "myddns_ipv6")
  51. # do not use white-spaces or dashes "-" or "@" ":" "!" or
  52. # other special characters inside name.
  53. config service "myddns"
  54. ########### Basic settings ########################
  55. ###########
  56. # enable/disable this service section
  57. # default: "0" disabled
  58. option enabled "0"
  59. ###########
  60. # detecting/sending IPv4 or IPv6 address to the DDNS provider
  61. # set to "1" if you want to use IPv6
  62. # default: "0" use IPv4
  63. option use_ipv6 "0"
  64. ###########
  65. # defines the network as defined in /etc/config/network
  66. # to be monitored for up/down events to start via hotplug
  67. default: "wan" for IPv4
  68. default: "wan6" for IPv6
  69. option interface "wan"
  70. ###########
  71. # Next you need to specify the name of the service you are
  72. # connecting to "eg. dyndns.org". The format of the update
  73. # urls for several different dynamic dns services is specified
  74. # in the "/usr/lib/ddns/services" file for IPv4 and in
  75. # "/usr/lib/ddns/service_ipv6" file. This list is hardly complete
  76. # as there are many, many different dynamic dns services.
  77. # If your service is on the list you can merely specify it with the
  78. # "service_name" option. Otherwise you will need to determine
  79. # the format of the url to update with. You can either add an
  80. # entry to the "/usr/lib/ddns/services" or "services_ipv6" file
  81. # or specify this with the "update_url" option.
  82. # default: none
  83. option service_name "dyndns.org"
  84. # sample:
  85. # "http://[USERNAME]:[PASSWORD]@members.dyndns.org/nic/update?hostname=[DOMAIN]&myip=[IP]"
  86. # option update_url ""
  87. ###########
  88. # You must specify your domain/host name, your username and your password
  89. # as you get from you DDNS provider. Keep an eye on providers help pages.
  90. #
  91. # Your DNS name / replace [DOMAIN] in update_url
  92. # default: none
  93. option domain ""
  94. # Username of your DDNS service account / replace [USERNAME] in update_url
  95. # default: none
  96. option username ""
  97. # Password of your DDNS service account / replace [PASSWORD] in update_url
  98. # default: none
  99. option password ""
  100. ###########
  101. # use HTTPS for secure communication with you DDNS provider
  102. # personally found some providers having problems when not sending
  103. # updates via HTTPS. Yyou must not specify "https://" in update_url.
  104. # It's modified by the scripts themselves
  105. # Needs GNU Wget (with SSL support) or cURL to be installed.
  106. # default: "0" do not use HTTPS
  107. option use_https "0"
  108. # if using HTTPS (see above) the transfer program tries to verify
  109. # the providers server certificate. For verification there needs to be
  110. # the counterpart on this machine. Specify the path or path/file where
  111. # the transfer program can find them. (might need package CA-certificates)
  112. # if you don't want to verify servers certificate (insecure) you should
  113. # this parameter to "IGNORE" (in capital letters)
  114. # default: "/etc/cacert" path where CA-certificate package is installed
  115. option cacert "/etc/cacert"
  116. ###########
  117. # for logging and control if everything work fine you can get information inside
  118. # system log . Critical Errors are always send to system log.
  119. # You can define which information you like to log
  120. # 1 == info, notice, warning, errors
  121. # 2 == notice, warning, errors
  122. # 3 == warning, errors
  123. # 4 == errors
  124. # default: "0" off
  125. option use_syslog "0"
  126. ###########
  127. # for logging and control if everything work fine you can get information inside
  128. # log file. You find the file per default in /var/log/ddns/[sectionname].log
  129. # The path can be modified for all log files in ddns.global section (see above)
  130. # default: "1" on
  131. option use_logfile "1"
  132. ########### Advanced settings #####################
  133. ###########
  134. # you need to specify how ddns-scripts should detect you current local ip.
  135. # the ip_source could be set to "network", "web", "interface" or "script"
  136. # the parameters below specifying the additional information needed for
  137. # the corresponding ip_spource configuration
  138. # default: "network"
  139. # ip_source "network" additional uses option ip_network and detects the
  140. # current local ip on network as defined in /etc/config/network
  141. # default: "wan" using IPv4
  142. # default: "wan6" using IPv6
  143. option ip_source "network"
  144. option ip_network "wan"
  145. # ip_source "web" additional uses option ip_url and detects the current
  146. # local ip from special web sides that response with the ip address of
  147. # calling host. If you are behind a firewall/NAT this is the best option
  148. # since none of the local networks or interfaces will have the external ip.
  149. # default: "http://checkip.dyndns.com" using IPv4
  150. # default: "http://checkipv6.dyndns.com" using IPv6
  151. # option ip_source "web"
  152. # option ip_url "http://checkip.dyndns.com"
  153. # ip_source "interface" additional uses option ip_interface
  154. # ip_source "interface" uses one of the locally installed physical interfaces
  155. # to detect independent from network they configured to.
  156. # default: none
  157. # option ip_source "interface"
  158. # option ip_interface "eth1"
  159. # ip_source "script" additional uses option ip_script
  160. # it's useful if you want to write your own script to detect the
  161. # current local ip. put full path into ip_script option.
  162. # The script must be executable.
  163. # default: none
  164. # option ip_source "script"
  165. # option ip_script ""
  166. ###########
  167. # force_ipversion option will set the "-4" respectively "-6" parameter
  168. # on command line of transfer and DNS lookup program.
  169. # So the whole communication uses the selected IP version between both ends.
  170. # needs GNU Wget or cURL installed for transfer and
  171. # BIND's host for DNS lookup.
  172. # default: "0" disabled
  173. option force_ipversion "0"
  174. ###########
  175. # normally the current (in the internet) registered ip is detected using the
  176. # local defined name lookup policies (i.e. /etc/resolve.conf etc.)
  177. # Specify here a DNS server to use instead of the defaults.
  178. # you can use hostname or ip address
  179. # IPv6 address must be in squared brackets "[...]"
  180. # i.e. "google-public-dns-a.google.com"
  181. # default: none
  182. # option dns_server "google-public-dns-a.google.com"
  183. # By default every DNS call is made via UDP protocol
  184. # Some internet provider offer modems that cache UDP DNS requests.
  185. # They also redirect calls to external servers to local.
  186. # To force the usage of TCP for DNS requests enable this option
  187. # Needs BIND's host program be installed
  188. # default: "0" disabled
  189. # option force_dnstcp "0"
  190. ###########
  191. # If a Proxy is need to access HTTP/HTTPS pages on the WEB
  192. # it can be configured here also for sending updates to the
  193. # DDNS provider. If you configured use_https='1' above, you
  194. # need to setup your HTTPS proxy here, otherwise your
  195. # HTTP proxy. !!! You should not detect your current IP
  196. # ip_source='web' (see above) because this request is also
  197. # send via the configured proxy !!!
  198. # Syntax: [user:password@]proxy:port !port is required !
  199. # default: none
  200. # option proxy ''
  201. ########### Timer settings ########################
  202. ###########
  203. # defines the time interval to check if local IP has changed
  204. # After the first start and first update send, the system will
  205. # wait this time before verify if update was successful send.
  206. # !!! checks below 5 minutes make no sense because the Internet
  207. # needs about 5-10 minutes to sync an IP-change to all DNS servers !!!
  208. # accepted unit entry’s: 'seconds' 'minutes' 'hours' 'days'
  209. # minimum 5 minutes == 300 seconds
  210. # default 10 minutes
  211. option check_interval '10'
  212. option check_unit 'minutes'
  213. ###########
  214. # force to send an update to service provider, if no change was detected.
  215. # consult DDNS providers documentation if your DDNS entry might timeout.
  216. # accepted unit entry’s: 'seconds' 'minutes' 'hours' 'days'
  217. # minimum needs to be greater or equal check interval (see above)
  218. # A special setting of '0' is allowed, which forces the script to run once.
  219. # It sends an update, verify if update was accepted by DNS
  220. # (retry if not) and finish. Useful if you want to start by your own (i.e. cron)
  221. # default 3 days == 72 hours
  222. option force_interval '72'
  223. option force_unit 'hours'
  224. ###########
  225. # if error happen on detecting, sending or updating the
  226. # script will retry the relevant action for retry_count times
  227. # before stopping script execution.
  228. # default: 5
  229. option retry_count '5'
  230. ###########
  231. # if error happen on detecting, sending or updating the
  232. # script will retry the relevant action.
  233. # here you define the time to wait before retry is started
  234. # accepted unit entry’s: 'seconds' 'minutes' 'hours' 'days'
  235. # default: 60 seconds
  236. option retry_interval '60'
  237. option retry_unit 'seconds'