How to set up smartphones and PCs. Informational portal
  • home
  • Interesting
  • How to Configure DDNS Remote Access on TP-Link Router - Static IP Address From Dynamic.

How to Configure DDNS Remote Access on TP-Link Router - Static IP Address From Dynamic.

Sometimes you need to have access to your own machine, or the client's machine, which has a dynamic IP address. For these purposes, there are a lot of services, but free ones are becoming less and less. This is what this article is for. If you have a server at hand (VDS, VPS or Dedicated Server) from which you can make a DNS server, then with the help of this article you can make such a service for yourself and use it as you like and as much as you want. During the creation of the service, many pages on the Internet were searched, often contradicting each other. Therefore, links to sources will not be indicated. This article is like a compilation of all the information dug up on the net.

Beginning of work

To start working on creating a service, it is assumed that you have BIND configured on the server, the package is installed dnsutils and the Curl program. If it suddenly turns out that you do not have it, read what is written in this article. For simplicity, we will immediately agree that we will operate with a domain dyndns.my and a subdomain with dynamic IP dhost... The full address will turn out dhost.dyndns.my... The domain must have an A ns record from the IP of your server. Or not ns, here as you like, but in this example, this is the case. Well, for complete clarity, both the server and the client are computers with Ubuntu. The version is no longer of fundamental importance.

He said let's go!

Configuring the client side

The section goes ahead of the server configuration because the authorization keys must be generated on the client.

Let's create a separate directory in / etc.

sudo mkdir / etc / ddns /

Let's go into it.

cd / etc / ddns /

We generate a pair of keys for the exchange of information between the client and the server.

sudo dnssec-keygen -b 512 -a HMAC-MD5 -v 2 -n HOST dyndns.my

As a result of this operation, two files appear in the directory - Kdyndns.my. + 157 + 48025.key and Kdyndns.my. + 157 + 48025.private... From the first file, we will only need the set of characters after "157". It is after the space that the key body begins. Create a script for updating domain zones.

sudo nano ddns.sh

Paste the text there.

#! / bin / bash TTL = 3600 SERVER = ns.dyndns.my HOSTNAME = dhost.dyndns.my ZONE = dyndns.my KEYFILE = Kdyndns.my. +157 +48025 .private new_ip_address = `curl http: // dyndns. my / ip.php` # This file will be created later on the server! cd / etc / ddns nsupdate -v -k $ KEYFILE << EOF server $SERVER zone $ZONE update delete $HOSTNAME A update add $HOSTNAME $TTL A $new_ip_address send EOF

We save. Then we grant execution rights.

sudo chmod + x ddns.sh sudo ln -s / etc / ddns / ddns.sh / usr / sbin / ddns_update

Server side setup

Setting up a name server consists in registering a domain and setting permission to update records A domain names with dynamic IP. Go to the bind directory.

cd / etc / bind / sudo nano dnskeys.conf

We insert there the text and the body of the key, which was mentioned in the previous section.

Key "dyndns.my" (algorithm hmac-md5; secret "key body here";);

Add to file /etc/bind/named.conf a line indicating the file where the key is defined.

Include "/etc/bind/dnskeys.conf";

The next step is to file /etc/bind/named.conf.local register the domain zone with which we operate.

Zone "dyndns.my" (type master; allow-update (key dyndns.my;); file "/etc/bind/pri.dyndns.my";);

You will also need to create a /etc/bind/pri.dyndns.my file with different entries for the domain. It is normal, with the minimum required set of records for the domain to function, so there is no need to consider it in this article. Restart the name server to complete and apply the settings.

sudo service bind9 restart

Now we place a very simple php script in the directory intended for web pages.

sudo nano / var / www / ip.php

We paste the code there.

If you access this file via the web, for example, http://dyndns.my/ip.php, you will not see anything other than your IP address. Which is what we needed. The client, using curl, receives it and updates the information on the server.

That's all the gestures for setting up the server side.

Final setting

We finish the client.

sudo nano / etc / crontab

Add a line.

* / 15 * * * * root / usr / sbin / ddns_update

This means that the script will run every 15 minutes. This completes the configuration of the client side. You can wait 15 minutes and make sure that our host is pinging from a third-party server. Or you can execute the command.

sudo ddns_update

For what, in fact, we made a symlink in / usr / sbin. If you have not received an exhaust with the word REFUSED, then you did everything right and you can be happy.

conclusions

As a result, we got a completely working dynamic name service. There is, of course, a significant drawback. The key used is suitable for changing any of the registered subdomains. That is, it is one for everyone. This opens up scope for hooliganism if someone breaks the key. Since the service was made for itself, this will not cause any special problems. For you have to be not completely healthy mentally in order to bully yourself at home. Perhaps there is a solution that allows each subdomain to be authorized by its own key, but this was not the goal of this article, because Google was not tormented much.

The big request, when reprinting this article, indicate the source, in particular, this resource.

What is DNS?

DNS stands forDomain Name System or Domain Name Service. You specified a name, and DNS substitutes the ip address of the resource that hosts the site. The name in this case is exactly the hostname or IP address. Without DNS, you would have to remember the IP address of every site you want to visit. There are more than 300 million websites on the Internet today, it is completely impossible to remember the IP address of the required website.

What is dynamic IP?

How to make a static ip address from a dynamic one?

There is no need to buy a static IP. Use our free Dynamic DNS to match a dynamic address or long URL to your resource to easily remember your hostname. Remote monitoring of your home via a webcam on any port or launching your own server at your home with a dynamic IP address - all this is available with the serviceDnsIP ... Once a provider has allocated a dynamic IP, a service such as Dynamic DNS becomes necessary.

When registering on our service, you will receive a domain name. A special client that needs to be downloaded is installed on the user's computer. This client periodically sends information to the DNS server, reporting its IP address. The DynDNS server saves the last IP of the user and, when accessing the custom domain name obtained during registration, redirects the request to this IP.

Private network.

Regular services only offer third-level domain names. This can be awkward. In the presence of an external dynamic IP address, our innovative project allows you to get a domain name of not only the third, but also the first level. By installing a special application on computers, a private network will become available to you, in which you will be able to access services or programs using any protocol or port. In this case, no traffic will pass through our server. All information will be transferred between computers directly.

Remote computer and remote desktop.

Via DynDNS Secure service DnsIP allows you to organize a connection to a remote computer through any remote access program using any port. In this case, you directly contact the remote computer, and our service only informs your programs of the required IP address.

Network monitoring.

Using our service, network monitoring will become available to you. All connected users (their computer names) will be monitored only by you. You will be informed which computer is online and which one is offline.

If any application on the remote computer does not respond and there is a need to safely reboot the remote machine, you can do this by pressing a button without using the command line and special firewall settings, and even if the remote network does not have an external IP address. You only need to have an Internet connection.

Auto-pressing the button for free access when using Yota.

If you use free Internet access from the "Yota" provider, the connection is blocked once a day, and a window appears in the browser with a proposal to continue at a slow speed. This is extremely inconvenient when using remote access to this computer. In this case, it is enough to install ourfree programand it will restore internet access within minutes. This option is available without registering a user on our website. In this case, the program only needs to be installed, no settings need to be made.

You can find out the IP address of your resource at any time.

At your service is the page http://dns-free.com/dns2ip.php?dns=xxxxxxx, where xxxxxxx is the domain name in the DnsIP system. Use it to organize links to your resource using the dynamic dns system. Or add to favorites, and with one click find out the current ip of your resource. Or enter manually in the form on the same

From the local network of a home router - you can provide access not only to the Internet, but also to the resources of the router itself.

We can talk about an FTP server where a USB drive is used as a disk, etc. At the same time, it is possible to make all these resources available from the "external" network. For which, the "dynamic DNS" service is usually used. We will take a look at how to set up DDNS on a router.

Local and "external" network

First, let's try to explain how DDNS is used. From the local network, the router itself is available at the same address (for example, 192.168.10.1). On the "external" network, a specific IP address is assigned to the WAN port, which in most cases is variable. Memorizing it is useless, since the value can change at any minute. But it is possible to get access to the router without using the IP "explicitly". It is enough to register once in the corresponding service and configure the DDNS option in the router.

After setting up DDNS, access to the router is carried out by the domain name (which, in addition, the user can come up with). This is convenient, provided that everything is set up correctly.

How to register for DDNS service?

Paid and free services

Here is a list of addresses of sites that provide DDNS service:

  • no-ip.com
  • 3322.org
  • dyndns.org
  • dhs.org
  • update.ods.org
  • dyns.cx

The most famous of these is Dyndns. As a rule, all examples of customization are given "for him". But this service has recently become paid. So, you need to look for a free service (from those that are supported in the router).

It is important to know that a router of a certain model can only support some of the DDNS services.

Let's consider an example for TP-Link devices:

Dynamic DNS Tab

As you can see, in routers of this brand - you can use 1 of 3 different services (but no more). Their list is available on the DDNS settings tab. Which is true for routers of different models.

Registration in the service

Before configuring the router, you need to register with the DDNS service. You need to get a domain name (the service will check it for uniqueness), and only then this name will need to be specified in the settings.

An e-mail is required to complete the registration. New user card - usually contains information: name, surname, region, e-mail. If a zip code is required, you can leave this field blank.

As a result, the user will have a unique domain name at his disposal. For example, this: "1234router.no-ip.biz". Also, an account is created to manage the account card (you need to remember the login and password to it).

How do I set up DDNS on my router?

DDNS Settings Tab

It is the DDNS option in most routers that is the easiest to configure. The web interface should contain a tab containing all the required parameters: domain name, login with password, list of services.

Tuning Algorithm:

  1. Go to the required tab (usually, "DDNS" or "Dynamic DNS" in the "Advanced settings" section)
  2. Choose a service (the one in which you registered)
  3. Fill in all empty fields
  4. If there is a check mark "Enable" - set it, and be sure to save the settings:

Configuring DDNS in TP-Link Routers

Connect the router to the DDNS service - the user must open the interface and click the "Login" button (on the above tab). The connection will remain in effect until the router is rebooted.

DDNS Example and Known Issues

Let's say everything was done correctly, and in addition, the ftp server is enabled on the router. Then, from anywhere in the world - this server becomes available at the following address: ftp://1234router.no-ip.biz:80. The example is of course correct if the domain name "1234router.no-ip.biz" was received.

Sometimes it happens that by domain name - a router, nevertheless, becomes unavailable. In this case, just go to the service website, open an account (or specify a domain name) - and the router's IP will appear in the window on the page. The problem is that after a while this IP may change.

But, in principle, this method is also relevant: instead of "1234router ..." the IP address is indicated (which is actually assigned to the WAN port). The ability to see the IP value is provided by any of the services, moreover, without any problems.

Additionally, we note the main difference between DDNS and 2IP.ru and the like: you can find out the IP router using DDNS from any device connected to the Internet (from anywhere in the world). Further, this IP is used to access the router.

An example of configuring a D-Link router for DynDSN

For many users of computer systems, the concept of a dynamic DNS server is somewhat abstract. Most users have no idea what a dynamic DNS is and what this type of server is used for. Meanwhile, there is nothing particularly complicated in understanding this term and in setting up a service. Further, theoretical information and practical solutions are offered for consideration, which can be easily mastered by any person, even not familiar with these services.

Dynamic DNS: what is it and what is it for?

The very technology of using DNS servers initially assumes that they act as a kind of interpreters that allow you to access Internet resources without entering a digital combination of a site address corresponding to its IP address.

Everyone knows that for a resource, only the name of a specific page, consisting of letters, numbers or special characters, is written in the browser's address bar, and the DNS server, by the name of the resource, redirects to the corresponding IP.

Dynamic DNS works in a slightly different way, allowing you to assign domain names to any device (individual terminal, etc.) that is set to use dynamic IP. In this case, completely different IP addresses can also be used, for example, obtained via DHCP or IPCP. But the main difference from static technology is that the information on the server can be updated completely automatically. When connecting to the resource from other machines, their users will not even know that at certain times the IP address changes.

Dynamic IP issues

One of the fundamental principles of dynamic DNS servers is that the client machine has a dynamic IP address. In the case of using a static address, you may need to pay a considerable amount of money for its use. That is why you don't need to buy a static address when setting up DDNS.

Special software clients installed on user terminals can perform this conversion without user intervention.

Benefits of using DDNS

But what, then, is a dynamic DNS server used for? As the simplest example, we can consider video surveillance, organized by installing a recorder and IP cameras.

It seems that the instructions say that this model supports connection through a router with the ability to control what is happening via the Internet, but in fact it turns out to be impossible to connect without a DDNS server.

When using DDNS technology, users receive undeniable advantages, among which the following can be singled out separately:

  • the ability to use in private networks when accessing services and services of completely different protocols and ports;
  • no need to purchase a static IP with a binding to a specific device;
  • simplified capability through RDP clients;
  • network monitoring (tracking computers that are online or disconnected from the network);
  • remote control and restart of computers when problems are detected, even if the network does not have an external IP (a regular Internet connection is enough);
  • constant tracking of your dynamic address to organize links to your own resource;
  • the ability to use sitemap generators without restrictions on the number of pages and mandatory registration;
  • tracking broken links;
  • exchange of information between computers directly, bypassing its storage on an intermediate server.

Dynamic (general principles)

As for the setting issues, which seem to many to be something from the realm of fantasy, there is nothing particularly complicated here. In order not to deal with the procedures for setting up a router, port forwarding and many more complex actions, the easiest way is to immediately turn to specialized applications and services that are specially created to simplify work.

Basically, the setup boils down to installing a special client application and adding your own resource name, for which three third-level domain names will be provided. This is not always convenient, so some programs have added the ability to get a name, even the first level.

Most popular platforms and clients

Dynamic DNS is widely used today. For example, Microsoft uses Kerberos authentication for Active Directory without the need for manual key distribution.

One of the most popular platforms for UNIX systems is BIND, which even allows compatibility with Windows NT. Many hosting companies also provide dynamic DNS for free, allowing users to modify content content through a standard web interface.

If we talk about client applications and services, the most popular among them are the following:

  • ASUS DDNS;
  • No-IP;
  • HE Free;
  • DNS-O-Matic;
  • Zone Edit;
  • DynDNS.

Let's look at the DDNS setup for each client as an example.

ASUS DDNS

Those users who have a dynamic DNS router from ASUS are more fortunate than others. To use DDNS, just go to the settings section and activate the service itself.

After that, you should come up with and register an arbitrary name, after which the user will receive a domain name in the form "Name.asuscomm.com". In addition, the dynamic DNS-list includes many more additional services and services, and today it is almost the largest.

No-IP

Dynamic DNS in the form of No-IP service assumes no less simple configuration. For it, you need to follow a few simple steps.

First, you need to register on the noip.com resource and add the desired host from the account created during registration (Add Host function). After that, three domain names will become available for free registration, for which you will need to come up with your own name.

HE Free DNS Service

This service may seem no less interesting to many. In principle, the setting is very symbolic (as in the previous cases).

However, it is this service that attracts users with a rather impressive list of additional features, to which quick links are immediately presented (certification, tunnel broker, network map, IPv6 protocol management, DNS and telnet servers).

DNS-O-Matic

Before us is another very interesting and perfect client, the functioning of which differs from all previous services. Its main task is that the user can change his dynamic IP at once on all services in which there is a registration, with almost one click.

As usual, you first need to register, and then add a service through the Add Service function (for example, from those listed above). Further. you must enter the data used for registration in these services (User ID - email address, Password - password, Host / Identifier - the name of the third-level domain that was generated by the service. icon in the form of a green hand with a raised thumb in front of the account of the specified service.

ZoneEdit

All of the above services are free. Now pay attention to this service.

Its use is paid in the form of special "credits", the cost of which is equal to one US dollar. That is, for a year, the payment will be twelve cu. e. The registration and setup procedure is almost exactly the same as in the first examples, so it makes no sense to dwell on it in detail.

DynDNS

We have before us, perhaps, the most popular service, although not free. The cost of using it starts at twenty-five dollars a year.

By the way, even if DDNS is activated on the router, if such a function is provided, the user in most cases will be prompted to register with this particular service. Despite the paid use, DynDNS is, according to the vast majority of experts, the most reliable service. Another point is related to the fact that almost all modern models of routers support this service, and some devices with outdated firmware are focused only on it.

What is DNS?

DNS stands forDomain Name System or Domain Name Service. You specified a name, and DNS substitutes the ip address of the resource that hosts the site. The name in this case is exactly the hostname or IP address. Without DNS, you would have to remember the IP address of every site you want to visit. There are more than 300 million websites on the Internet today, it is completely impossible to remember the IP address of the required website.

What is dynamic IP?

How to make a static ip address from a dynamic one?

There is no need to buy a static IP. Use our free Dynamic DNS to match a dynamic address or long URL to your resource to easily remember your hostname. Remote monitoring of your home via a webcam on any port or launching your own server at your home with a dynamic IP address - all this is available with the serviceDnsIP ... Once a provider has allocated a dynamic IP, a service such as Dynamic DNS becomes necessary.

When registering on our service, you will receive a domain name. A special client that needs to be downloaded is installed on the user's computer. This client periodically sends information to the DNS server, reporting its IP address. The DynDNS server saves the last IP of the user and, when accessing the custom domain name obtained during registration, redirects the request to this IP.

Private network.

Regular services only offer third-level domain names. This can be awkward. In the presence of an external dynamic IP address, our innovative project allows you to get a domain name of not only the third, but also the first level. By installing a special application on computers, a private network will become available to you, in which you will be able to access services or programs using any protocol or port. In this case, no traffic will pass through our server. All information will be transferred between computers directly.

Remote computer and remote desktop.

Via DynDNS Secure service DnsIP allows you to organize a connection to a remote computer through any remote access program using any port. In this case, you directly contact the remote computer, and our service only informs your programs of the required IP address.

Network monitoring.

Using our service, network monitoring will become available to you. All connected users (their computer names) will be monitored only by you. You will be informed which computer is online and which one is offline.

If any application on the remote computer does not respond and there is a need to safely reboot the remote machine, you can do this by pressing a button without using the command line and special firewall settings, and even if the remote network does not have an external IP address. You only need to have an Internet connection.

Auto-pressing the button for free access when using Yota.

If you use free Internet access from the "Yota" provider, the connection is blocked once a day, and a window appears in the browser with a proposal to continue at a slow speed. This is extremely inconvenient when using remote access to this computer. In this case, it is enough to install ourfree programand it will restore internet access within minutes. This option is available without registering a user on our website. In this case, the program only needs to be installed, no settings need to be made.

You can find out the IP address of your resource at any time.

At your service is the page http://dns-free.com/dns2ip.php?dns=xxxxxxx, where xxxxxxx is the domain name in the DnsIP system. Use it to organize links to your resource using the dynamic dns system. Or add to favorites, and with one click find out the current ip of your resource. Or enter manually in the form on the same

Top related articles