How to use Cloudflare
Q: I can use a Cloudflare proxy in front of my rport server?
Last updated
Was this helpful?
Q: I can use a Cloudflare proxy in front of my rport server?
Last updated
Was this helpful?
To use RPort with Cloudflare, you must set up two DNS records.
One, let's say rport.example.com
for the API and the UI/dashboard
And one for accessing the tunnels, let's say tunnels.rport.example.com
The first will point to the Cloudflare Proxy, and Cloudflare handles the certificate. Set up your firewall properly so access without Cloudflare is denied. Otherwise, you wouldn't benefit from the Cloudflare DOS protection.
The second record, tunnels.rport.exmaple.com
points directly to your rport server.
With the above DNS setup, you can generate a Let's encrypt certificate on the rport server.
You might need to stop rportd during the certificate request because certbot needs to bind to port 80 for the verification process.
Use the created .
Make sure tunnels . By default, tunnels, and the API/UI use the same FQDN.