Cloudflare Tunneling Setup
Overview
Cloudflare Tunnel (formerly Argo Tunnel) securely connects your web server to the Cloudflare network without opening a public inbound port.
Installation and Setup
Step 1: Install Cloudflared
- Command:
wget https://... && sudo dpkg -i ...
Step 2: Authenticate Cloudflared
- Run
cloudflared tunnel loginand follow the instructions.
Step 3: Create a Tunnel
- Command:
cloudflared tunnel create server-main
Step 4: Configure the Tunnel
- Create and edit the configuration file at
/root/.cloudflared/config.yml.
Step 5: Run the Tunnel
- Install as a service:
cloudflared service install - Start the service:
sudo systemctl start cloudflared
How It Works
- Traffic Flow: Explains how traffic flows from the user, through Cloudflare, to your server.
- Security Benefits: Details the security features provided by Cloudflare, such as DDoS protection and TLS encryption.
- Performance Benefits: Describes performance features like CDN caching and optimized routing.
Continuous Operation on Port 443
- Details about how Cloudflare tunneling continuously operates on port 443, handling HTTPS traffic.
Troubleshooting
- Common issues and troubleshooting steps for Cloudflare tunnel setup and operation.
Conclusion
- Summary of the benefits and considerations of using Cloudflare Tunnel for the Jobrain system.