fix: update cloudflared steps to ensure its persistent between reboots

This commit is contained in:
horsepill 2024-05-05 13:25:35 -05:00
parent 7166803a1d
commit 5ac48ba0ef
1 changed files with 21 additions and 6 deletions

View File

@ -38,22 +38,37 @@
# chmod +x /usr/local/bin/cloudflared
# cloudflared version
```
2. Install the Cloudflare tunnel service to Cloudflared:
2. Update /etc/systemd/resolved.conf and set cloudflare nameservers.
```
# sudo vim /etc/systemd/resolved.conf
# Uncomment DNS line and set 'DNS=1.1.1.1 1.0.0.1'
# systemctl restart systemd-resolved
```
3. Install the Cloudflare tunnel service to Cloudflared.
```
# sudo cloudflared service install SERVICE_TOKEN_HERE
```
3. Open a web browser and attempt to connect
4. Ensure cloudflared service is enabled so it starts on boot.
4. Drop back in to read only mode
```
# sudo systemctl enable cloudflared
```
5. Open a web browser and attempt to connect to your tunnel.
6. Drop back in to read only mode
```
# ro
```
7. Reboot pikvm and ensure your tunnel comes back up. This may take a few minutes.
## Updating Cloudflared
Use these commands to update Cloudflared: