Cloudflare: Difference between revisions
Jump to navigation
Jump to search
Line 49: | Line 49: | ||
default via 10.19.83.1 dev wlan0 proto dhcp src 10.19.83.68 metric 20600 | default via 10.19.83.1 dev wlan0 proto dhcp src 10.19.83.68 metric 20600 | ||
== | ==Cloudflared== | ||
cloudflared is a lightweight daemon that runs in your infrastructure and lets you securely expose internal resources to the Cloudflare edge. | cloudflared is a lightweight daemon that runs in your infrastructure and lets you securely expose internal resources to the Cloudflare edge. | ||
Line 57: | Line 57: | ||
apt-get autoremove -y | apt-get autoremove -y | ||
EXE | EXE | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== | ===Cloudflared » Ubuntu » AMD=== | ||
---- | ---- | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 70: | Line 67: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== | ===Cloudflared » Ubuntu » ARM=== | ||
---- | ---- | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 76: | Line 73: | ||
sudo apt install ${HOME}/Downloads/cloudflared-linux-arm64.deb; sudo apt install -f | sudo apt install ${HOME}/Downloads/cloudflared-linux-arm64.deb; sudo apt install -f | ||
rm -rf ${HOME}/Downloads/cloudflared-linux-arm64.deb | rm -rf ${HOME}/Downloads/cloudflared-linux-arm64.deb | ||
</syntaxhighlight> | |||
===Cloudflared » Service=== | |||
---- | |||
<syntaxhighlight lang="bash"> | |||
cloudflared --help | |||
cloudflared version | |||
apt info cloudflared | |||
sudo cloudflared service install eyJhIjoiNW… | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 22:36, 26 November 2024
WARP Client
The Cloudflare WARP Client allows individuals or organizations to have a faster, more secure and private experience online.
cat << EXE | sudo bash
apt-get purge -y cloudflare-warp
apt-get autoremove -y
EXE
WARP Client » Ubuntu
curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg \
| sudo tee /etc/apt/keyrings/cloudflare.asc >/dev/null
DISTRIBUTION=$(. /etc/os-release && echo "${VERSION_CODENAME}");\
cat << SRC | sudo tee /etc/apt/sources.list.d/cloudflare.list >/dev/null
deb [arch=$(dpkg --print-architecture)\
signed-by=/etc/apt/keyrings/cloudflare.asc]\
https://pkg.cloudflareclient.com/ ${DISTRIBUTION} main
SRC
cat << EXE | sudo bash
apt-get update;echo
apt list -a --upgradable
apt-get install -y cloudflare-warp
sysctl -w net.ipv4.ip_forward=1
EXE
systemctl status warp-svc.service
warp-cli registration delete
warp-cli connector new eyJhIjoiNW…
warp-cli connect
WARP Client » NAT Route
vim /etc/sysctl.conf
# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1
sudo sysctl -p net.ipv4.ip_forward = 1 ip route | grep default default via 10.19.83.1 dev wlan0 proto dhcp src 10.19.83.68 metric 20600
Cloudflared
cloudflared is a lightweight daemon that runs in your infrastructure and lets you securely expose internal resources to the Cloudflare edge.
cat << EXE | sudo bash
apt-get purge -y cloudflared
apt-get autoremove -y
EXE
Cloudflared » Ubuntu » AMD
wget -cq https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb -P ${HOME}/Downloads
sudo apt install ${HOME}/Downloads/cloudflared-linux-amd64.deb; sudo apt install -f
rm -rf ${HOME}/Downloads/cloudflared-linux-amd64.deb
Cloudflared » Ubuntu » ARM
wget -cq https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm64.deb -P ${HOME}/Downloads
sudo apt install ${HOME}/Downloads/cloudflared-linux-arm64.deb; sudo apt install -f
rm -rf ${HOME}/Downloads/cloudflared-linux-arm64.deb
Cloudflared » Service
cloudflared --help
cloudflared version
apt info cloudflared
sudo cloudflared service install eyJhIjoiNW…
Playground
lxc launch images:ubuntu/noble/desktop --vm cloudflare
lxc rm cloudflare -f
lxc info cloudflare
|
lxc list status=running name=cloudflare --format=json |jq -r '.[].state.network.[].addresses'
lxc list status=running name=cloudflare --format=yaml |yq -r '.[].state.network.[].addresses'
lxc info cloudflare|yq '.Resources.["Network usage"][]["IP addresses"].inet'
| |
| ||
lxc snapshot cloudflare warp:24.04
lxc publish cloudflare/warp:24.04 --alias cloudflare/warp:24.04
|