OPNsense Dynamic DNS (DDNS) with Cloudflare

๐Ÿ’ก OPNsense Dynamic DNS (DDNS) with Cloudflare โ€” Executive Summary

Technical architectural analysis, practical configuration manifests, and deployment instructions for OPNsense Dynamic DNS (DDNS) with Cloudflare.

Pre-configuration
Cloudflare pre-configuration
  • Go to My Profile > API Token and press โ€œGenerate Tokenโ€.
  • Edit Zone DNS Click โ€˜Use Templateโ€™

  • Token Generation

  • Token replication

  • Zone ID replication
Install plugin
  • Install os-ddns (Community Plugin)

  • After installation, if there is no Service โ†’ Dynamic DNS category, run it on the dashboard.

  • Normal screen

DDNS configuration
Service settings
Add DDNS
  • Select Cloudflare as service
  • Leave the user name blank and enter the duplicated user token in the password.
  • Enter the domain information you purchased in the field
  • Enter subdomain.domain for the host name
  • Select interface for IP method verification

  • trubole: Cannot set IPv4 to MY_IP No โ€˜Aโ€™ record at Cloudflare

  • I don’t know the cause, but the problem was solved by manually adding the Cloudflare A record and restarting ddns

  • You should check whether the record will be automatically modified when the WAN IP is changed in the future.

Connect
  • trouble
References and Guidelines (NOTE)

A potential DNS Rebind attack has been detected.

Try to access the router by IP address instead of by hostname. You can disable this check if needed under System: Settings: Administration.

  • Settings
    • Enter an alternate host if you plan to access it via DDNS.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *