Noip IPv6 DDNS Configuration: Difference between revisions

From Teltonika Networks Wiki
(Created page with "==Summary== This article will guide you through configuring an '''IPv6 DDNS''' AAAA record on noip.com and creating an instance on RUT routers. ==Prerequisite== To use the...")
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Summary==
==Summary==


This article will guide you through configuring an '''IPv6 DDNS''' AAAA record on noip.com and creating an instance on RUT routers.
This article will guide you through configuring an '''IPv6 DDNS''' AAAA record at '''[https://www.noip.com www.noip.com]''' and activating an IPv6 DDNS service on RUT routers.


==Prerequisite==
==Prerequisite==


To use the IPv6 DDNS service, you must have a '''Static or DynamicIPv6 Global Unicast Address (GUA)''' configured in your router WAN interface. Otherwise, it will not work. You can click on the following link to get more information about '''[[IPv6_addressing|IPv6 Addressing]]'''.
To use the IPv6 DDNS service, you must have a '''Static or Dynamic IPv6 Global Unicast Address (GUA)''' configured in your router WAN interface. Otherwise, your router will not be able to update the IPv6 DDNS record. Also, you need to have IPv6 connectivity from your laptop to reach your router IPv6 address hostname. You can click on the following link to get more information about '''[[IPv6_addressing|IPv6 Addressing]]''' and '''[https://test-ipv6.com/ here]'''
to test your ipv6 connectivity from your laptop.


{| class="wikitable"
{| class="wikitable"
|+
|+
<big>IPv6 Global Unicast Address</big>
<big>IPv6 Global Unicast Addresses</big>
<br> </br>
!Prefix
!Prefix
!Range
!Designation and explanation
!Designation and explanation
|-
|-
!'''2000::/3'''
!'''2000::/3'''
!'''2000::/64 - 3FFF:FFFF:FFFF:FFFF/64'''
|They are globally routable and reachable IPv6 addresses on the Internet. Therefore, in the IPv6 network environment, they are considered the equivalent of public IPv4 addresses.
|They are globally routable and reachable IPv6 addresses in the Internet. They are equivalent to public IPv4 addresses ant the operators of networks using these addresses can be found using the Whois servers of the RIRs listed in the registry at: https://www.iana.org/assignments/ipv6-unicast-address-assignments/ipv6-unicast-address-assignments.xhtml
|}
|}


==Step 1: noip.com configuration==
==Step 1: noip.com Configuration==


First, access the website by entering '''[https://www.noip.com/login www.noip.com/login]''' in your internet web browser's URL bar.
First, access the website by entering '''[https://www.noip.com/login www.noip.com/login]''' in your internet web browser's URL bar.


===Login screen===
===Login Screen===
----
----
Login into noip.com system using your credentials. If you don't have a registered account, then you need to create one. You can do that by clicking '''Register'''.
Sign in to the noip.com platform by using your credentials. If you don't have a registered account, you need to create one. You can do that by clicking on the '''Register''' button.
 
<br> </br>
[[File:NOIPLoginScreen.png|1200px|center]]
[[File:NOIPLoginScreen.png|1200px|center]]


===Create host===
===Create a Hostname===
----
----
After successfully logging into your account, in the control panel dashboard go to the "quick add" section and select '''More Records'''
After successfully logging into your account, in the control panel dashboard go to the "quick add" section and select '''More Records'''
<br> </br>
[[File:MoreRecordsNoip.png|1200px|center]]
<br> </br>
A new window will prompt on your web browser; fill out the information according to your hostname and domain of preference, select '''AAAA''' as type of register, introduce the '''loopback address''' for each Internet protocol accordingly, and finally click on '''create hostname'''.
<br> </br>
[[File:CreateAAAARecord.png|800px|center]]
===Hostname Verification===
----
Check the record you just have created shows an '''Active''' button below the hostname. Don't worry about the warning signal displayed in the Last Update field; it's just to inform is not detecting any dynamic updates yet.
<br> </br>
[[File:AAAAverification.png|1200px|center]]
'''Note:''' For further verifications, check the DNS records of your given domain name by introducing at your laptop command prompt or shell terminal the '''nslookup''' command as shown below:
<br> </br>
[[File:Nslookup2.png|500px|center]]
==Step 2: Router configuration==
===CLI Configuration===
----
You will need to configure a script to get your current WAN IPv6 address and send it to noip.com servers. To accomplish this task, login into your router Command-line interface, create a directory to store your scripts, and add the following script to your router configuration:
{| class="wikitable"
<big> '''Script: getwanip.sh''' </big>
|-   
|<td>
<p> #!/bin/sh </p>
<p> . /lib/functions/network.sh </p>
<p> network_flush_cache </p>
<p> network_find_wan6 NET_IF6 </p>
<p> network_get_ipaddr6 NET_ADDR6 "${NET_IF6}" </p>
<p> echo "${NET_ADDR6}" </p>
</td>
|}
Suggested PATH: '''/root/scripts/getwanip.sh'''
<br> </br>
Give execution privileges to the script by executing at the Command-line interface: '''chmod +x /root/scripts/getwanip.sh'''
===WebUI Configuration===
-----
Now open your RUT homepage and download the DDNS package if it hasn't been installed yet. Next, open the DDNS configuration panel by clicking '''Services → Dynamic DNS'''
<br> </br>
[[File:DDNSWebUI.png|1200px|center]]
====DDNS Configuration Name====
----
Edit the instance named '''MYDDNS''' by selecting the pencil icon or create a new DDNS instance by typing in a new '''DDNS NAME''' and clicking on the '''ADD''' button. For the simplicity purposes of this guide, we are going to edit the current instance named '''MYDDNS'''.
====Configuration Settings====
----
A new window will prompt on your WebUI; fill out the fields according to the information below:
* Switch the '''Enable''' toggle to the on position.
* Switch the '''Use HTTP Secure''' toggle to the on position. '''(Optional)'''.
* At  '''Lookup Hostname''' and '''Domain''' introduce the noip.com '''Hostname''' previously created. '''(All of them must match)'''.
* Choose '''no-ip.com''' as '''DDNS Service Provider'''.
* Type in the credentials used to create your noip.com account.
* Select '''Script''' as the '''Ip address Source'''.
* At '''Event Network''', select the interface where the ipv6 address is enabled.
* Introduce your Script PATH.
* Choose the update interval of your preference, and click on '''SAVE & APPLY''' to save and load your configuration.
<br>
[[File:Ddnsconfig.png|600px|center]]


[[File:MoreRecordsNoip.png|1200px|center]]
==Step 3: Try Your DDNS Service==
 
===Status===
----
 
Wait up to '''5''' minutes from the time you saved the changes. In the Status column, you can see when the last time it sent an update. After updating, it should display the '''127.0.0.1''' loopback IPv4 address.
 
[[File:DDNSstatus.png|1200px|center]]
 
By doing a DNS lookup, check if the ipv6 address of your hostname record was updated.
<br> </br>
[[File:NslookupDDNSrunning.png|600px|center]]
 
 
Also, you can check your no-ip.com hostname's current ipv6 address by clicking on the cogwheel that appears at the right of your hostname record.
[[File:CogwheelNo-IP.png|1200px|center]]


A new window will prompt in your web browser; fill out the information according to your hostname and domain of preference, select the AAAA record, enter the default address for each Internet protocol accordingly and click on '''create hostname'''.


[[File:HostnameStepsNoip.png|800px|center]]
A new window will prompt on your web browser; it will display the updated IPv6 address.
[[File:DDNSRunningNo-IP.png|600px|center]]


===List of hosts===
===Connect To Your Host===
----
----
You can preview the list of hosts you have created by clicking the button '''Active'''
Recall you need to have IPv6 connectivity on your laptop to reach your router login page. You can test your IPv6 connectivity by clicking '''[https://test-ipv6.com/ here]'''. Also, verify your router allows '''[[Remote_WebUI_Access#WAN_Interface |Remote HTTP(S) Access]]''' connections.
 
Try to access the host by entering your hostname in your internet browser's URL bar. You should get an output like the image below:
 
[[File:Teltonikademologinpage.png|1200px|center]]
 
'''Note''': If you have a VPN service enabled on your laptop, you may not reach your router WebUI by just typing the domain name on your web browser; instead, you should enter the full ipv6 address between brackets e.g.: https://[2001:AAAA:BBBB:CCCC::0001].
 
[[File:Teltonikademoiplogin.png|1200px|center]]
 
==Logs Verification==
After following the steps above, the DDNS service should be up and running. However, for debugging purposes, you can verify the DDNS generated logs by executing in the Command-Line interface the command: '''cat /tmp/logs/ddns/{yourddnsinstance.log}''' .This command will show you the current ddns configuration and the messages between noip.com servers and your router every time it sends its updates. In the picture below, you will find a log message response from the noip.com server at the moment of successfully updating the new IPv6 address:
 
 
[[File:Logs2DDNS.png|900px|center]]
 
==See Also==
* [[Dynamic DNS]] - general information on the DDNS service.
* [[DDNS Configuration Examples]] - additional examples for different DDNS providers.
 
==External links==
* https://www.noip.com
* https://test-ipv6.com
* https://openwrt.org/docs/guide-user/services/ddns/client

Revision as of 10:21, 14 December 2023

Summary

This article will guide you through configuring an IPv6 DDNS AAAA record at www.noip.com and activating an IPv6 DDNS service on RUT routers.

Prerequisite

To use the IPv6 DDNS service, you must have a Static or Dynamic IPv6 Global Unicast Address (GUA) configured in your router WAN interface. Otherwise, your router will not be able to update the IPv6 DDNS record. Also, you need to have IPv6 connectivity from your laptop to reach your router IPv6 address hostname. You can click on the following link to get more information about IPv6 Addressing and here to test your ipv6 connectivity from your laptop.

IPv6 Global Unicast Addresses

Prefix Designation and explanation
2000::/3 They are globally routable and reachable IPv6 addresses on the Internet. Therefore, in the IPv6 network environment, they are considered the equivalent of public IPv4 addresses.

Step 1: noip.com Configuration

First, access the website by entering www.noip.com/login in your internet web browser's URL bar.

Login Screen


Sign in to the noip.com platform by using your credentials. If you don't have a registered account, you need to create one. You can do that by clicking on the Register button.

Create a Hostname


After successfully logging into your account, in the control panel dashboard go to the "quick add" section and select More Records



A new window will prompt on your web browser; fill out the information according to your hostname and domain of preference, select AAAA as type of register, introduce the loopback address for each Internet protocol accordingly, and finally click on create hostname.

Hostname Verification


Check the record you just have created shows an Active button below the hostname. Don't worry about the warning signal displayed in the Last Update field; it's just to inform is not detecting any dynamic updates yet.

Note: For further verifications, check the DNS records of your given domain name by introducing at your laptop command prompt or shell terminal the nslookup command as shown below:

Step 2: Router configuration

CLI Configuration


You will need to configure a script to get your current WAN IPv6 address and send it to noip.com servers. To accomplish this task, login into your router Command-line interface, create a directory to store your scripts, and add the following script to your router configuration:

Script: getwanip.sh

#!/bin/sh

. /lib/functions/network.sh

network_flush_cache

network_find_wan6 NET_IF6

network_get_ipaddr6 NET_ADDR6 "${NET_IF6}"

echo "${NET_ADDR6}"

Suggested PATH: /root/scripts/getwanip.sh

Give execution privileges to the script by executing at the Command-line interface: chmod +x /root/scripts/getwanip.sh

WebUI Configuration


Now open your RUT homepage and download the DDNS package if it hasn't been installed yet. Next, open the DDNS configuration panel by clicking Services → Dynamic DNS

DDNS Configuration Name


Edit the instance named MYDDNS by selecting the pencil icon or create a new DDNS instance by typing in a new DDNS NAME and clicking on the ADD button. For the simplicity purposes of this guide, we are going to edit the current instance named MYDDNS.

Configuration Settings


A new window will prompt on your WebUI; fill out the fields according to the information below:

  • Switch the Enable toggle to the on position.
  • Switch the Use HTTP Secure toggle to the on position. (Optional).
  • At Lookup Hostname and Domain introduce the noip.com Hostname previously created. (All of them must match).
  • Choose no-ip.com as DDNS Service Provider.
  • Type in the credentials used to create your noip.com account.
  • Select Script as the Ip address Source.
  • At Event Network, select the interface where the ipv6 address is enabled.
  • Introduce your Script PATH.
  • Choose the update interval of your preference, and click on SAVE & APPLY to save and load your configuration.


Step 3: Try Your DDNS Service

Status


Wait up to 5 minutes from the time you saved the changes. In the Status column, you can see when the last time it sent an update. After updating, it should display the 127.0.0.1 loopback IPv4 address.

By doing a DNS lookup, check if the ipv6 address of your hostname record was updated.


Also, you can check your no-ip.com hostname's current ipv6 address by clicking on the cogwheel that appears at the right of your hostname record.


A new window will prompt on your web browser; it will display the updated IPv6 address.

Connect To Your Host


Recall you need to have IPv6 connectivity on your laptop to reach your router login page. You can test your IPv6 connectivity by clicking here. Also, verify your router allows Remote HTTP(S) Access connections.

Try to access the host by entering your hostname in your internet browser's URL bar. You should get an output like the image below:

Note: If you have a VPN service enabled on your laptop, you may not reach your router WebUI by just typing the domain name on your web browser; instead, you should enter the full ipv6 address between brackets e.g.: https://[2001:AAAA:BBBB:CCCC::0001].

Logs Verification

After following the steps above, the DDNS service should be up and running. However, for debugging purposes, you can verify the DDNS generated logs by executing in the Command-Line interface the command: cat /tmp/logs/ddns/{yourddnsinstance.log} .This command will show you the current ddns configuration and the messages between noip.com servers and your router every time it sends its updates. In the picture below, you will find a log message response from the noip.com server at the moment of successfully updating the new IPv6 address:


See Also

External links