- Working with pfSense 2.7.0-RELEASE as of 20 August 2023
- Cloudflare proxy protection can also be enabled on DNS record.
IN CLOUDFLARE ACCOUNT
- Select Domain name then select
DNS > Records
Add Record
(Name below can be any preferred subdomain, example is ddns)
Type Name IPv4 address (required) Proxy status (can be enabled)
A ddns {any placeholder IPV4 address example 1.1.1.1} Enabled
- From the Domain
Overview
page copy theZone ID
key (if you don't want to use email as Username in pfSense) - Goto
My Profile
and selectAPI Tokens
- Copy the
Global API Key
I have not tested with custom API keys, this may be a more secure option rather than using the Global API Key.
IN PFSENSE
- Goto
Services > Dynamic DNS
- Fill in details:
Disable [UNTICK] Disable this client
Service Type: CloudFlare
Hostname: ddns yourcloudflaredomainname.com
Cloudflare Proxy: [TICK] Enable Proxy
## IMPORTANT Username or DNS Zone ID is required
Username: {Enter CloudFlare account management email address or DNS Zone ID}
Password: {Paste in Global API Key}
- Click
Save
orSave & Force Update
TROUBLESHOOTING
If you leave the Username blank it will fail and the System Log
will show a message similar to below.
/services_dyndns_edit.php: Response Data: {"success":false,"errors":[{"code":6003,"message":"Invalid request headers","error_chain":[{"code":6111,"message":"Invalid format for Authorization header"}]}],"messages":[],"result":null}