Skip to content

bradsec/pfsensenotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

pfSense Configuration Notes

Dynamic DNS with Cloudflare Managed Domain

  • 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

  1. Select Domain name then select DNS > Records
  2. 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
  1. From the Domain Overview page copy the Zone ID key (if you don't want to use email as Username in pfSense)
  2. Goto My Profile and select API Tokens
  3. 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

  1. Goto Services > Dynamic DNS
  2. 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} 
  1. Click Save or Save & 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}

About

pfSense Guides and Configuration Notes

Topics

Resources

Stars

Watchers

Forks