I'm happy to help you with your issue. Based on the information you provided, it seems like you want to expose your Reticulum application to the public internet while protecting your public IP address using Cloudflare. To achieve this, you'll need to set up Cloudflare Tunnel, which allows you to expose your application to the internet without exposing your public IP address.
Here's a step-by-step guide to help you configure Cloudflare Tunnel:
Step 1: Create a Cloudflare Tunnel
- Log in to your Cloudflare account and go to the "Zero Trust" tab.
- Click on "Tunnels" and then click on "Create a Tunnel".
- Choose "Self-hosted" as the tunnel type and select "Linux" as the operating system.
- Download the
cloudflared binary for Linux and follow the installation instructions.
Step 2: Configure Cloudflare Tunnel
- Once you've installed
cloudflared, run the following command to create a new tunnel:
cloudflared tunnel create <tunnel-name>
Replace <tunnel-name> with a name of your choice.
- Follow the prompts to configure the tunnel. You'll need to provide your Cloudflare API credentials and select the domain you want to use for the tunnel.
Step 3: Configure Port Forwarding
- In your UniFi router, go to the "Port Forwarding" settings and create a new rule.
- Set the protocol to TCP and the external port to 4242.
- Set the internal IP address to the IP address of your Ubuntu Linux server.
- Set the internal port to 4242.
Step 4: Configure Cloudflare DNS
- In your Cloudflare account, go to the "DNS" tab.
- Create a new DNS record for your domain with the following settings:
- Type: CNAME
- Name:
<subdomain> (e.g., "reticulum")
- Target:
<tunnel-name>.cfargotunnel.com> (e.g., "my-tunnel.cfargotunnel.com")
- Proxy status: Proxied
Step 5: Start the Cloudflare Tunnel
- Run the following command to start the Cloudflare Tunnel:
cloudflared tunnel run <tunnel-name>
Replace <tunnel-name> with the name of your tunnel.
Step 6: Verify the Configuration
- Use a tool like
nc or telnet to test the connection to your Reticulum application:
nc <your-domain> 4242
Replace <your-domain> with your domain name (e.g., "example.com").
If everything is configured correctly, you should be able to connect to your Reticulum application using the Cloudflare Tunnel.
Please note that this is a general guide, and you may need to adjust the configuration based on your specific setup. If you encounter any issues, you can refer to the Cloudflare documentation for more information.
Source: Cloudflare Tunnel documentation