Like the title says, I want to replace the IP address in a wireguard .conf file to be a domain instead.

I own a domain through cloudflare, so say I wanted to use vpn.example.org

What DNS record and info do I need to put into Cloudflare? (I am aware I’ll need to update it if my ip changes)

  • Eskuero
    link
    fedilink
    English
    11
    edit-2
    1 month ago

    Note that most wireguard clients wont re-resolve when the dns entry changes and they will keep silently a failed tunnel so you would have to do some measure to periodically restart the tunnel.

  • @[email protected]
    link
    fedilink
    English
    31 month ago

    It is that easy, like you said. And with Cloudflare and Caddy you can get TLS for your internal VPN hosts. I love that.

    • @Dust0741OP
      link
      English
      11 month ago

      Yup! This is what I do! Love it so much

    • @[email protected]
      link
      fedilink
      English
      127 days ago

      LetsEncrypt is a good option if you want to set it up yourself. More work than cloudflare though.