Question about Wireguard and Cloudflare

What is the name of the domain?

pipocaonetuga.xyz

What is the issue you’re encountering

Can´t get it to work

What steps have you taken to resolve the issue?

My question in short form: I would like to setup Wireguard on a VPN without exposing any IP address, but instead use a Cloudflare-managed proxied domain name. How do I do that?

In more details:

Situation: I’m in country A, I have a VPS in country B. I have a domain name wireguard.pipocatuga.xyz that, via Cloudflare tunnel, ultimately leads to my VPS.

Goal: route my traffic through the Wireguard server on my VPS so that from the point of view of some website, it comes out of a cloudflare IP. Essentially, having Cloudflare tunnel to proxy the connection.

To do this: I would like to setup Wireguard on my VPS so that I can connect to it without “knowing” the IP address (so in the configuration file, the peer is at wireguard.pipocatuga.xyz instead of the public IP address of the VPS).

How can I do that?

Side question: Is this even a good idea?

Hi there,

Instead of WireGuard, simply use a Cloudflare tunnel in zero trust.
Install cloudflared on your VPS and create “wireguard.pipocatuga.xyz” as a public hostname pointing to the origin ip and port or any other hostnames you’d like:

Start by going to “Zero Trust” > “Networks” > “Tunnels” > “+ Create a tunnel” > “Select Cloudflared” and go from there.

Take care.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.