installing_and_configuring_cloudflared_on_an_lxc
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| installing_and_configuring_cloudflared_on_an_lxc [2024/08/26 12:20] – created oso | installing_and_configuring_cloudflared_on_an_lxc [2024/10/17 21:42] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ==== 1. Download and Install Cloudflared ==== | ==== 1. Download and Install Cloudflared ==== | ||
| - | | + | |
| < | < | ||
| wget https:// | wget https:// | ||
| </ | </ | ||
| - | | + | |
| < | < | ||
| sudo dpkg -i cloudflared-linux-amd64.deb | sudo dpkg -i cloudflared-linux-amd64.deb | ||
| </ | </ | ||
| - | | + | |
| < | < | ||
| cloudflared --version | cloudflared --version | ||
| Line 18: | Line 18: | ||
| ==== 2. Authenticate Cloudflared with Cloudflare ==== | ==== 2. Authenticate Cloudflared with Cloudflare ==== | ||
| - | | + | |
| < | < | ||
| cloudflared tunnel login | cloudflared tunnel login | ||
| </ | </ | ||
| - | | + | |
| ==== 3. Create a New Tunnel ==== | ==== 3. Create a New Tunnel ==== | ||
| - | | + | |
| < | < | ||
| cloudflared tunnel create my-tunnel | cloudflared tunnel create my-tunnel | ||
| </ | </ | ||
| - | | + | |
| ==== 4. Configure the Tunnel to Route Traffic ==== | ==== 4. Configure the Tunnel to Route Traffic ==== | ||
| - | | + | |
| < | < | ||
| sudo nano / | sudo nano / | ||
| </ | </ | ||
| - | | + | |
| < | < | ||
| - | tunnel: 72a29ddd-7ef4-46e3-97ef-cc4d8e3fc2ba | + | tunnel: 72a29ddd==== TUNNEL ====cc4d8e3fc2ba |
| credentials-file: | credentials-file: | ||
| Line 49: | Line 49: | ||
| ==== 5. Run the Tunnel ==== | ==== 5. Run the Tunnel ==== | ||
| - | | + | |
| < | < | ||
| sudo cloudflared tunnel run my-tunnel | sudo cloudflared tunnel run my-tunnel | ||
| </ | </ | ||
| - | | + | |
| ==== 6. Configure NGINX on Raspberry Pi ==== | ==== 6. Configure NGINX on Raspberry Pi ==== | ||
| - | | + | |
| ==== 7. Set Up Cloudflared as a Systemd Service ==== | ==== 7. Set Up Cloudflared as a Systemd Service ==== | ||
| - | | + | |
| < | < | ||
| sudo nano / | sudo nano / | ||
| </ | </ | ||
| - | | + | |
| < | < | ||
| [Unit] | [Unit] | ||
| Line 80: | Line 80: | ||
| </ | </ | ||
| - | | + | |
| < | < | ||
| sudo systemctl daemon-reload | sudo systemctl daemon-reload | ||
| Line 86: | Line 86: | ||
| sudo systemctl start cloudflared | sudo systemctl start cloudflared | ||
| </ | </ | ||
| - | | + | |
| < | < | ||
| sudo systemctl status cloudflared | sudo systemctl status cloudflared | ||
| Line 92: | Line 92: | ||
| ==== 8. Verify Tunnel Operation ==== | ==== 8. Verify Tunnel Operation ==== | ||
| - | | + | |
| ===== Conclusion ===== | ===== Conclusion ===== | ||
| Following these steps will ensure that your `cloudflared` tunnel is correctly set up on your LXC and that it integrates smoothly with your existing reverse proxy setup on your Raspberry Pi. | Following these steps will ensure that your `cloudflared` tunnel is correctly set up on your LXC and that it integrates smoothly with your existing reverse proxy setup on your Raspberry Pi. | ||
installing_and_configuring_cloudflared_on_an_lxc.1724674839.txt.gz · Last modified: 2024/10/17 21:42 (external edit)
