Let’s take a closer look at Cloudflare Dynamic DNS in OPNsense. At Bobcares, with our Server Management Services, we can handle your Cloudflare issues.
Cloudflare Dynamic DNS OPNsense
OPNsense is a firewall and routing software that is open source and based on FreeBSD. It supports wireguard and dynamic DNS, among other features. Recently, OPNsense switch from dyndns (os-dyndns) to DDclient (os-ddclient). So users are having trouble transitioning from the old DNS to the new DNS.
In this article, we will discuss the configuration steps of dynamic DNS in OPNsense with Cloudflare.
How to set up Cloudflare Dynamic DNS in OPNsense?
The two main steps to set up the dynamic DNS in OPNsense with Cloudflare are as follows:
- Installing DDNS plugin in OPNsense.
- Configuring DDNS.
Install DDNS Plugin In OPNsense
In order to install ddclient dynamic DNS plugin:
- Firstly, open the OPNsense Admin panel.
- Then, navigate to System >> Firmware >> Plugins.
- Lastly, select os-ddclient. Never use os-dyndns as it is already outdated.
After the successful installation, we can find the “Dynamic DNS” under services.
Configure Cloudflare DDNS
In order to configure the Cloudflare dynamic DNS, visit Cloudflare and add the DNS entry that ddclient should be set by ddclient. As an example, I’ll add an A record for dyn.bobcares.com
with the following settings: IP 0.0.0.0, disabled proxy, and TTL of 5 minutes.
Now go to “Services > Dynamic DNS > Settings” in OPNsense, add a new dynamic DNS configuration, and fill in the appropriate values:
- Enabled: true
- Service: Cloudflare
- Username: E-Mail address of the account
- Password: Global API key for the account. To access it, open Cloudflare >> My Account >> API Tokens >> Global API Key >> View
- Zone: The .domain (For e.g., bobcares.com)
- Hostname: full domain name we want to update (e.g. dyn.bobcares.com)
- Check IP method: Interface
- Force SSL: true
- Interface to monitor: WAN
Every 5 minutes, the DNS entry will refresh. Go to “General Settings” and adjust the interval if we want to change it. Once it finishes, we can see the modified DNS record in Cloudflare.
[Need assistance with another issue? We’re here to help.]
Conclusion
To summarize, we have included the steps from our Tech team to configure Cloudflare Dynamic DNS in OPNsense.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
var google_conversion_label = "owonCMyG5nEQ0aD71QM";
0 Comments