Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    DynamicDns + CloudFlare + Openvpn +msrdp

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 1 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sandman06
      last edited by

      Hi All,

      I have recently found out about cloudflare as I wanted to use it for my website that I host on my own server at home.
      I have a dynamic ip address therefore i use the pfsense dynamicdns service along with freedns.afraid.org.

      Cloudflare requires to change the nameservers to theirs in order to function. so i removed freedns.afraid.org and used cloudflares nameservers in replacement on my domain host and recreated all my records.
      everything worked fine however my dynamicdns would need to changed as cloudflare would be serving the dynamicdns. so i done this but i found that the cloudflare option in pfsense is broken and not working. so I used dns-o-matic instead and adding the cloudflare settings in dns-o-matic

      everything in respect to cloudflare is working and so is dynamicdns. with the working around I mentioned above

      however my real problem is i can no longer resolve my Real IP address for my openvpn or msrdp.
      It seems that cloudflare masks my ip with theirs instead. even when I dig/ping my host/domain name it comes up with clouflare ip instead of mine.
      therefore it seems to have broken the function of my openvpn and msrdp. the only way i can access these services is it i input my real ip whereas before i just put in my domain name which resolved to my ip

      can anyone with experience with above shed some light.

      many thanks

      1 Reply Last reply Reply Quote 0
      • S
        sandman06
        last edited by

        I have managed to solve it.

        On the cloudflare panel set the DNS A record to grey cloud, which bypasses cloudflare

        and on the cname of subdomain for example www (you need to set that to orange which routes all traffic through cloudflare and masks ip)

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.