It all started when I got the operator Hi a Technicolor TD5136v2 modem/router Wi-Fi, Very bad! Bought so the router Asus RT-N56U to see if it improved the Wi-fi signal, minimizing data loss.
To facilitate my life, My Network cascateei, putting the Asus router connected right to the router Technicolor. IE, my home network was with 2 routers. Has worked so well, but I had to configure the NAT (port forwarding/services) on both routers to do my IP camera work outside (Internet). See the example of how it looks:
INTERNET > MODEM/Hi > ROUTER/ASUS > COMPUTER/CAMERA 188.8.131.52 > 192.168.1.1 > 192.168.0.1 > 192.168.0.N
The problem with this “gambi” was in the DDNS. I believe that you know what is a DDNS, that's why I came here. Otherwise, Please do a little research and continue reading.
Note that, with this cascade I did, the modem/Hi is who had to interface with the Internet and picked up a valid IP, have the router/Asus received only the cold coming from the IP modem/Hi. It really was a problem, because when I tried to configure DDNS/Asus router, He gave the following error:
"The wireless router currently uses a private WAN IP address (192.168.x.x, 10,x,x,x, or 172.16. x.x).. This router may be in the multiple-NAT environment and DDNS service cannot work in this environment"
The website of the ASUS alerted to this problem:
Note: If wireless is using a private WAN IP address (192.168.x.x, 10.x.x.x, or 172.16.x.x), This router find-If-a multi network-layer NAT. The DDNS service may not work in this type of environment
The solution was to make the modem/Hi work in “mode bridge” (Bridge mode), IE, the modem/Hi just became your role as modulator and demodulator (and no more of router), relaying all data flow straight to the router/Asus. In this scenario, It's as if the router itself/Asus to have your Internet facing interface, obtaining valid IP WAN and being responsible for making the PPPoE authentication. Look there:
INTERNET > MODEM/Hi > ROUTER/ASUS > COMPUTER/CAMERA 184.108.40.206 > BRIDGE/BRIDGE > 192.168.0.1 > 192.168.0.N
Connecting the modem and the router (Bridge mode)
In This Post, Although refer to the modem of Hi and Asus router, the configuration can be similar in any modem or router.
Step 1 – Put the modem in bridge mode (Bridge mode)
Go to the control panel of the modem/Hi. This is typically done by opening your browser and typing http://192.168.0.1 (or another IP as 192.168.1.1, 10.0.0.1, etc). The default username and password is “Admin” for both. Search and change the following configuration:
SETUP > Internet Setup > Internet Settings > Internet Connection Type > Bridge Mode (instead of PPPoE)
Step 2 – Connect the network cable between the modem and the router
Take a common network cable (UTP – RJ/45) and connect between devices: one end goes in one of the 4 modem/Hi ports and the other goes in the WAN/Internet port of the router/Asus.
Step 3 – Configure the router to operate with DHCP enabled
Access the router control panel/Asus. This is typically done by opening your browser and typing http://192.168.1.1 (or another IP as 192.168.0.1, 192.168.2.1, 10.0.0.1, etc). The default username and password is “Admin” for both. Search and change the following configuration:
Advanced Settings > LAN > Basic Config > Enable the DHCP Server > Yes
Step 4 – Configure the router to do PPPoE authentication
Access the router control panel/Asus. Try and make the following setting:
#1 Advanced Settings > WAN > Basic Config > WAN Connection Type > PPPoE #2 Advanced Settings > WAN > Account Settings > PPP Username > Hi@Hi #3 Advanced Settings > WAN > Account Settings > Password > oi123
This PPPoE username and password is Hi standard. Obviously you should use another user and password if a different operator. If you do not know, just call your operator and ask for the login data for authenticating PPPoE. Hi phone is 10631.
Done that, It's for your Internet to be working through the Wi-Fi router/Asus. Sometimes it can take a while to authenticate and establish the connection, have patience. I say this, because it happened to me; I thought it wasn't working and it was just wait a little longer it worked. Tests there!
Creating and configuring a DDNS
In fact this is the best part of the Post, because I accidentally met an interesting service called Dns-O-Matic. Easy, I explain!
The big problem of routers is to support few DDNS servers, generally limited to No-IP and DynDNS. But forget the No-IP and DynDNS! These services are not fully free or when they are, have limitations, like having to renew every 30 days and it sucks!
I personally prefer to use the Afraid (FreeDNS), It works and it really is free. But how do if the router does not support the Afraid? This is where DNS-O-Matic. Luckily the Asus router supports DNS-O-Matic, that allows you to associate my own DNS-O-Matic to my subdomain created in Afraid, keeping my WAN IP always updated. Don't understand? We will by then, but remember that this will only be useful if your router has support for DNS-O-Matic.
Step 1 – Create a (Sub)domain in Afraid
1. Visit http://freedns.afraid.org
2. Click "Dynamic DNS" and create an account through the menu "Setup an account here".
3. Login, Click the "Subdomains" and "add"
4. Note in the combobox "Domain" that, at the end, has an option "Many many more available ...", Click there!
5. On the next screen, Click on the link "Shared Domain Registry" and choose one of the thousands of domains available.
Step 2 – Getting the key (Me?) in afrai.org
(You will need this key forward!)
1. Visit http://freedns.afraid.org
2. Click the Dynamic DNS,
3. At the end of the page, Click on the link “Direct URL” for the subdomain you created in step 1
4. The key (Me?) is the part of the URL immediately after “update.php?”.
Ex: iXU5V6yRRjBGa * GTWG8yR0lBS7TRjlmOjEzMDY5NIDf
Direct URL: http://freedns.afraid.org/dynamic/update.php?iXU5V6yRRjBGa * GTWG8yR0lBS7TRjlmOjEzMDY5NIDf Key (Me?): iXU5V6yRRjBGa*GTWG8yR0lBS7TRjlmOjEzMDY5NIDf
Step 3 – Create an account in DNS-O-Matic and add a service (Afraid)
1. Visit https://www.dnsomatic.com/
2. Click on "create a free DNS-O-Matic account" and create an account
3. Login, Click on the button "Add a service"
4. In combo “–Select a service–“, choice “afraid.org”
5. In the Key field(?) Paste the key for the subdomain created in step 1.
See how to get the key in step 2: “Getting the key (Me?) in afrai.org”
6. Click on the button “pdate account info”
Step 4 – Configuring DNS-O-Matic on the router
Try and make the following setting:
Advanced Settings > WAN > DDNS > Server > WWW.DNSOMATIC.With
1. In “Server”, Choose WWW.DNSOMATIC.COM
2. In “Host Name”, place “all.dnsomatic.com” (or leave blank)
3. In “User Name or E-mail Address”, inform your user created in DNS-O-Matic
4. In “Password or DDNS Key”, notify your DNS account password-O-Matic
5. Finally, Click on the button “Apply”
Doing this, DDNS/Asus router, through the DNS-O-Matic, automatically will update the WAN IP by the Afraid.
That's it, Now you have a free domain with always updated IP! Never No-ip, never DyDNS.