1
0

ddns.config_sample 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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 ddns_dateformat "%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 ddns_rundir "/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 ddns_logdir "/var/log/ddns"
  41. ###########
  42. # set number of lines stored in .log file before auto truncated
  43. # default: "250" lines
  44. # option ddns_loglines "250"
  45. ###########
  46. # Whether to allow to send Private/Special IP's to the DDNS provider
  47. # IPv4: 0.x, 10.x, 127.x, 172.16.x-172.31.x, 192.168.x
  48. # IPv6: ::, Fxxx:
  49. # default: "0" disabled
  50. # option upd_privateip "0"
  51. #####################################################################
  52. # DDNS service settings
  53. #
  54. # for each service you want to serve you need a separate configuration
  55. # if you need IPv4 and IPv6 you need to setup 2 separate configurations
  56. # with different names. (i.e. "myddns_ipv4" and "myddns_ipv6")
  57. # do not use white-spaces or dashes "-" or "@" ":" "!" or
  58. # other special characters inside name.
  59. config service "myddns"
  60. ########### Basic settings ########################
  61. ###########
  62. # enable/disable this service section
  63. # default: "0" disabled
  64. option enabled "0"
  65. ###########
  66. # detecting/sending IPv4 or IPv6 address to the DDNS provider
  67. # set to "1" if you want to use IPv6
  68. # default: "0" use IPv4
  69. option use_ipv6 "0"
  70. ###########
  71. # defines the network as defined in /etc/config/network
  72. # to be monitored for up/down events to start via hotplug
  73. default: "wan" for IPv4
  74. default: "wan6" for IPv6
  75. option interface "wan"
  76. ###########
  77. # Next you need to specify the name of the service you are
  78. # connecting to "eg. dyndns.org". The format of the update
  79. # urls for several different dynamic dns services is specified
  80. # in the "/usr/lib/ddns/services" file for IPv4 and in
  81. # "/usr/lib/ddns/service_ipv6" file. This list is hardly complete
  82. # as there are many, many different dynamic dns services.
  83. # If your service is on the list you can merely specify it with the
  84. # "service_name" option. Otherwise you will need to determine
  85. # the format of the url to update with. You can either add an
  86. # entry to the "/usr/lib/ddns/services" or "services_ipv6" file
  87. # or specify this with the "update_url" option.
  88. # If your ddns provider doesn't work with ddns-scripts because
  89. # there are additional parameters or other special thinks to be done,
  90. # then you could write your own script to send updates to your ddns provider.
  91. # Have a look into /usr/lib/ddns/update_sample.sh
  92. # The script is specified in "update_script"
  93. # Either set "service_name" or one of "update_url" and "update_script"
  94. # default: none
  95. option service_name "dyndns.org"
  96. # sample:
  97. # "http://[USERNAME]:[PASSWORD]@members.dyndns.org/nic/update?hostname=[DOMAIN]&myip=[IP]"
  98. # option update_url ""
  99. # sample:
  100. # "/usr/lib/ddns/update_sample.sh"
  101. # option update_script ""
  102. ###########
  103. # Keep an eye on providers help pages.
  104. #
  105. # FQDN of ONE of your defined host at DDNS provider
  106. # REQUIRED to verify what the current IP at DNS using nslookup/host command
  107. # default: none
  108. option lookup_host ""
  109. # Your DNS name / replace [DOMAIN] in update_url
  110. # default: none
  111. option domain ""
  112. # Username of your DDNS service account / replace [USERNAME] in update_url
  113. # default: none
  114. option username ""
  115. # Password of your DDNS service account / replace [PASSWORD] in update url
  116. # default: none
  117. option password ""
  118. ###########
  119. # Optional parameters for use inside update_url
  120. #
  121. # parameter that will be urlencoded before replacement of [PARAMENC] inside update url
  122. # default: none
  123. option param_enc ""
  124. # parameter that repace [PARAMOPT] inside update url
  125. # default: none
  126. option param_opt ""
  127. ###########
  128. # use HTTPS for secure communication with you DDNS provider
  129. # personally found some providers having problems when not sending
  130. # updates via HTTPS. You must not specify "https://" in update_url.
  131. # It's modified by the scripts themselves
  132. # Needs GNU Wget (with SSL support) or cURL to be installed.
  133. # default: "0" do not use HTTPS
  134. option use_https "0"
  135. # if using HTTPS (see above) the transfer program tries to verify
  136. # the providers server certificate. For verification there needs to be
  137. # the counterpart on this machine. Specify the path or path/file where
  138. # the transfer program can find them. (might need package CA-certificates)
  139. # if you don't want to verify servers certificate (insecure) you should
  140. # this parameter to "IGNORE" (in capital letters)
  141. # default: (none) path where CA-certificate package is installed
  142. option cacert "/etc/ssl/certs"
  143. ###########
  144. # for logging and control if everything work fine you can get information inside
  145. # system log . Critical Errors are always send to system log.
  146. # You can define which information you like to log
  147. # 1 == info, notice, warning, errors
  148. # 2 == notice, warning, errors
  149. # 3 == warning, errors
  150. # 4 == errors
  151. # default: "0" off
  152. option use_syslog "0"
  153. ###########
  154. # for logging and control if everything work fine you can get information inside
  155. # log file. You find the file per default in /var/log/ddns/[sectionname].log
  156. # The path can be modified for all log files in ddns.global section (see above)
  157. # default: "1" on
  158. option use_logfile "1"
  159. ########### Advanced settings #####################
  160. ###########
  161. # you need to specify how ddns-scripts should detect you current local ip.
  162. # the ip_source could be set to "network", "web", "interface" or "script"
  163. # the parameters below specifying the additional information needed for
  164. # the corresponding ip_spource configuration
  165. # default: "network"
  166. # ip_source "network" additional uses option ip_network and detects the
  167. # current local ip on network as defined in /etc/config/network
  168. # default: "wan" using IPv4
  169. # default: "wan6" using IPv6
  170. option ip_source "network"
  171. option ip_network "wan"
  172. # ip_source "web" additional uses option ip_url and detects the current
  173. # local ip from special web sides that response with the ip address of
  174. # calling host. If you are behind a firewall/NAT this is the best option
  175. # since none of the local networks or interfaces will have the external ip.
  176. # default: "http://checkip.dyndns.com" using IPv4
  177. # default: "http://checkipv6.dyndns.com" using IPv6
  178. # option ip_source "web"
  179. # option ip_url "http://checkip.dyndns.com"
  180. # ip_source "interface" additional uses option ip_interface
  181. # ip_source "interface" uses one of the locally installed physical interfaces
  182. # to detect independent from network they configured to.
  183. # default: none
  184. # option ip_source "interface"
  185. # option ip_interface "eth1"
  186. # ip_source "script" additional uses option ip_script
  187. # it's useful if you want to write your own script to detect the
  188. # current local ip. put full path into ip_script option.
  189. # The script must be executable.
  190. # default: none
  191. # option ip_source "script"
  192. # option ip_script ""
  193. ###########
  194. # force_ipversion option will set the "-4" respectively "-6" parameter
  195. # on command line of transfer and DNS lookup program.
  196. # So the whole communication uses the selected IP version between both ends.
  197. # needs GNU Wget or cURL installed for transfer and
  198. # BIND's host for DNS lookup.
  199. # default: "0" disabled
  200. option force_ipversion "0"
  201. ###########
  202. # Normally the current (in the internet) registered ip is detected using the
  203. # local defined name lookup policies (i.e. /etc/resolve.conf etc.)
  204. # Specify here a DNS server to use instead of the defaults.
  205. # you can use hostname or ip address
  206. # i.e. "google-public-dns-a.google.com"
  207. # default: none
  208. # option dns_server "google-public-dns-a.google.com"
  209. # By default every DNS call is made via UDP protocol
  210. # Some internet provider offer modems that cache UDP DNS requests.
  211. # They also redirect calls to external servers to local.
  212. # To force the usage of TCP for DNS requests enable this option
  213. # Needs BIND's host program be installed
  214. # default: "0" disabled
  215. # option force_dnstcp "0"
  216. ###########
  217. # If a Proxy is need to access HTTP/HTTPS pages on the WEB
  218. # it can be configured here also for sending updates to the
  219. # DDNS provider. If you configured use_https='1' above, you
  220. # need to setup your HTTPS proxy here, otherwise your
  221. # HTTP proxy. !!! You should not detect your current IP
  222. # ip_source='web' (see above) because this request is also
  223. # send via the configured proxy !!!
  224. # Syntax: [user:password@]proxy:port !port is required !
  225. # IPv6 address must be in squared brackets "[...]"
  226. # default: none
  227. # option proxy ''
  228. ###########
  229. # In some very special configurations i.e. Multi WAN environment
  230. # in a NAT cascade it might be necessary to define
  231. # a network to use for communication.
  232. # should use option ip_source "web" (see above)
  233. # Needs GNU Wget (with SSL support) or cURL to be installed.
  234. # GNU Wget will use IP address and cURL the physical device
  235. # of the given network
  236. # default: none
  237. # option bind_network "wan7"
  238. ########### Timer settings ########################
  239. ###########
  240. # defines the time interval to check if local IP has changed
  241. # After the first start and first update send, the system will
  242. # wait this time before verify if update was successful send.
  243. # !!! checks below 5 minutes make no sense because the Internet
  244. # needs about 5-10 minutes to sync an IP-change to all DNS servers !!!
  245. # accepted unit entry’s: 'seconds' 'minutes' 'hours'
  246. # minimum 5 minutes == 300 seconds
  247. # default 10 minutes
  248. option check_interval '10'
  249. option check_unit 'minutes'
  250. ###########
  251. # force to send an update to service provider, if no change was detected.
  252. # consult DDNS providers documentation if your DDNS entry might timeout.
  253. # accepted unit entry’s: 'minutes' 'hours' 'days'
  254. # minimum needs to be greater or equal check interval (see above)
  255. # A special setting of '0' is allowed, which forces the script to run once.
  256. # It sends an update, verify if update was accepted by DNS
  257. # (retry if not) and finish. Useful if you want to start by your own (i.e. cron)
  258. # default 3 days == 72 hours
  259. option force_interval '72'
  260. option force_unit 'hours'
  261. ###########
  262. # if error happen on detecting, sending or updating the
  263. # script will retry the relevant action for retry_count times
  264. # before stopping script execution.
  265. # default: 5
  266. option retry_count '5'
  267. ###########
  268. # if error happen on detecting, sending or updating the
  269. # script will retry the relevant action.
  270. # here you define the time to wait before retry is started
  271. # accepted unit entry’s: 'seconds' 'minutes'
  272. # default: 60 seconds
  273. option retry_interval '60'
  274. option retry_unit 'seconds'