We have recently discussed in details the benefits of using dynamic dns for an environment where the IP address changes frequently as with the use of dsl modems, and the likes.
This guide, discusses how to configure dynamic dns on pfsense router, another popular open source unified threat management gateway solution.
In this guide, ”Dynamic DNS Configuration On IPFire Firewall”, we will not go into discussing the benefits and use of dynamic dns, but we will simply implement it in IPFire and test it out with a practical use case.
While I am not affiliated to No-IP in any way, I love to make use of their dynamic dns feature because it is easy to setup and use-very intuitive I mean. Trust me, I have used other dns providers and I feel you will enjoy no-ip better. There are other good and paid alternative though that I will encourage you to use, such as easydns that cost around 20 dollars for 1 year.
So back to our guide Dynamic DNS Configuration On IPFire Firewall.
Dynamic DNS Configuration On IPFire Firewall.
To begin configuring, make sure that your ipfire is up and running and that you can access the web interface of your ipfire. To correctly install ipfire,
Now click on Services=>Dynamic DNS. In the Dynamic DNS page, select or tick “the classical red ip used by ipfire during connection”, if your ipfire machine is connected directly to the internet source.
However, if you installed ipfire on a virtual machine using a virtualization software such as virtual box or vmware, then you will have to choose or tick the second option which is “guess the real public ip with help of an external server”. It is this second option that we are going to use.
After ticking it, click on save to enable that setting on ipfire.
Next, select the service and enter in your dynamic dns provider information in the box provided as shown below. Remember, that we registered a free hostname on no-ip. It is this hostname that we will use.
For details on what is required by different dynamic dns providers, follow this ipfire document https://wiki.ipfire.org/configuration/services/dyndns_providers .
If all went well, you should see your hostname listed in green in the hostname field, as seen in the image above. If you entered your hostname as e.g chealth instead of the fully qualified hostname, e.g chealth.hxxxx.xxxx, then , your hostname information will be listed in black colors to show that there is still and error.
If you disable a dynamic dns entry, then it will be listed in blue. If it is listed in red, then there is an error, probably due to reachability issues to other issues, or that your dynamic dns hostname needs to be updated by you at the other end(no-ip). No-ip automatically deletes hostnames that have not been updated every 30days.
This is about what you need to do to enable dynamic dns on ipfire. Soon, I will implement a use case, like connecting to a web server on the internal network using our dynamic dns configuration.
Many Thanks for reading!