From 741690baca90ae043f7128f5bd387a521d7aeeda Mon Sep 17 00:00:00 2001 From: Arne Schauf Date: Sun, 29 Sep 2013 22:07:33 +0200 Subject: [PATCH] how to configure your router --- .../main/templates/main/generate_secret.html | 22 ++++--- .../includes/tabbed_router_configuration.html | 61 +++++++++++++++++++ 2 files changed, 76 insertions(+), 7 deletions(-) create mode 100644 nsupdate/main/templates/main/includes/tabbed_router_configuration.html diff --git a/nsupdate/main/templates/main/generate_secret.html b/nsupdate/main/templates/main/generate_secret.html index 876f272..4d0e65f 100644 --- a/nsupdate/main/templates/main/generate_secret.html +++ b/nsupdate/main/templates/main/generate_secret.html @@ -2,12 +2,20 @@ {% load bootstrap %} {% block content %} - -
-

Host Secret Generated back to overview

-

New secret generated for you. We store it hashed, so save it now, or you have to generate a new one again.

-

secret: {{ update_secret }}

+
+
+
+

Host Secret Generated
+ back to overview

+

New secret generated for you. We store it hashed, so save it now, or you have to generate a new one again. Everytime you visit this page a new secret will be generated and the old one becomes invalid.

+

Secret: {{ update_secret }}

+
- - +
+
+

How to configure your router?

+ {% include "main/includes/tabbed_router_configuration.html" with host=object %} +
+
+
{% endblock %} diff --git a/nsupdate/main/templates/main/includes/tabbed_router_configuration.html b/nsupdate/main/templates/main/includes/tabbed_router_configuration.html new file mode 100644 index 0000000..851072b --- /dev/null +++ b/nsupdate/main/templates/main/includes/tabbed_router_configuration.html @@ -0,0 +1,61 @@ + + +
+
+

Generic configuration hints

+
+ Your router/script needs to call the following url for IPv4-Updates: +
+ http://{{ host.get_fqdn|default:"<your fqdn>" }}:{{ update_secret|default:"<your secret>" }}@nsupdate.info/nic/update +
+ for IPv6-Updates: +
+ http://{{ host.get_fqdn|default:"<your fqdn>" }}:{{ update_secret|default:"<your secret>" }}@ipv6.nsupdate.info/nic/update +
+ The IPs will be determined automatically. +
+ Briefly your router/script has to do the following steps: +
    +
  • visit http://(ipv6.)nsupdate.info/nic/update
  • +
  • Do HTTP BasicAuth with: +
      +
    • Username: {{ host.get_fqdn|default:"<your fqdn>" }}
    • +
    • Password: {{ update_secret|default:"<your secret>" }}
    • +
    +
  • +
  • The response will look like this: +
      +
    • "good <your fqdn>" (new IP accepted)
    • +
    • "nochg <your fqdn>" (IP accepted, but did not change since last update)
    • +
    • redirect (Code 401) (Incorrect or no authentication data)
    • +
    +
+
+
+

Fritz!Box 7390 (and maybe others):

+
+
Go to:
+
+ Internet + Permit Access + Dynamic DNS +
+
Enter the following data
+ + + + + + + +
SettingValue
Dynamic DNS providerCustom
Update-URLhttp://nsupdate.info/nic/update
Domain Name{{ host.get_fqdn|default:"<your fqdn>" }}
User name{{ host.get_fqdn|default:"<your fqdn>" }}
Password{{ update_secret|default:"<your secret>" }}
+
For IPv6
+ Set Update-URL to the following (two links, separated by space) +
+ http://nsupdate.info/nic/update http://ipv6.nsupdate.info/nic/update +
+
+