Cloudflare: Difference between revisions
Jump to navigation
Jump to search
(21 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==WARP Client== | |||
===WARP Client » Ubuntu=== | |||
---- | |||
<syntaxhighlight lang="bash"> | |||
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 | |||
</syntaxhighlight> | |||
===WARP Client » NAT Route=== | |||
---- | |||
vim /etc/sysctl.conf | |||
<syntaxhighlight lang="ini" line start="27" highlight="2"> | |||
# Uncomment the next line to enable packet forwarding for IPv4 | |||
net.ipv4.ip_forward=1 | |||
</syntaxhighlight> | |||
---- | |||
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 | |||
==Playground== | |||
{| | |||
| valign="top" | | |||
<syntaxhighlight lang="bash"> | |||
lxc launch images:ubuntu/noble/desktop --vm cloudflare | |||
lxc rm cloudflare -f | |||
lxc info cloudflare | |||
</syntaxhighlight> | |||
| colspan="2" | | |||
<syntaxhighlight lang="bash"> | |||
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' | |||
</syntaxhighlight> | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| colspan="2" | | |||
<syntaxhighlight lang="bash"> | |||
lxc snapshot cloudflare warp:24.04 | |||
lxc publish cloudflare/warp:24.04 --alias cloudflare/warp:24.04 | |||
</syntaxhighlight> | |||
| valign="top" | | |||
|} | |||
== References== | == References== | ||
{| | {| | ||
Line 6: | Line 78: | ||
* [https://developers.cloudflare.com/email-routing/setup/ Cloudflare » Email Routing » Setup] | * [https://developers.cloudflare.com/email-routing/setup/ Cloudflare » Email Routing » Setup] | ||
* [https://www.cloudflare.com/learning/dns/dns-records/dns-aaaa-record/ Cloudflare » DNS » Record » AAAA] | * [https://www.cloudflare.com/learning/dns/dns-records/dns-aaaa-record/ Cloudflare » DNS » Record » AAAA] | ||
* [https://pkg.cloudflareclient.com/ Cloudflare » WARP » Packages] | |||
* [https://developers.cloudflare.com/dns/dnssec/ Cloudflare » DNS » DNSSEC] | * [https://developers.cloudflare.com/dns/dnssec/ Cloudflare » DNS » DNSSEC] | ||
* [https://developers.cloudflare.com/email-routing/ Cloudflare » Email Routing] | * [https://developers.cloudflare.com/email-routing/ Cloudflare » Email Routing] | ||
* [https://developers.cloudflare.com/support/account-management-billing/billing-cloudflare-plans/ Cloudflare » Billing Plans] | * [https://developers.cloudflare.com/support/account-management-billing/billing-cloudflare-plans/ Cloudflare » Billing Plans] | ||
* [https://www.cloudflare.com/learning/access-management/what-is-ssh/ Cloudflare » SSH] | |||
* [https://www.cloudflare.com/ Cloudflare] | * [https://www.cloudflare.com/ Cloudflare] | ||
|valign="top"| | |valign="top"| | ||
* [https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/agentless/ Cloudflare » Zero Trust » Devices » Agentless] | |||
* [https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/ Cloudflare » Zero Trust » Devices » WARP] | |||
* [https://developers.cloudflare.com/support/troubleshooting/restoring-visitor-ips/restoring-original-visitor-ips/ Cloudflare » Restoring Original Visitor IPs] | |||
* [https://developers.cloudflare.com/cloudflare-one/connections/ Cloudflare » Zero Trust » Connections] | |||
* [https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/ Cloudflare » Zero Trust » Devices] | |||
* [https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/ Cloudflare » Zero Trust » Tunnel] | |||
* [https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/use-cases/grpc/ Cloudflare » Zero Trust » gRPC] | |||
* [https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/use-cases/rdp/ Cloudflare » Zero Trust » RDP] | |||
* [https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/use-cases/smb/ Cloudflare » Zero Trust » SMB] | |||
* [https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/use-cases/ssh/ Cloudflare » Zero Trust » SSH] | |||
|valign="top"| | |valign="top"| | ||
* [https://developers.cloudflare.com/ssl/origin-configuration/ssl-modes/ssl-only-origin-pull/ Cloudflare » SSL » Modes » Strict (SSL-Only)] | |||
* [https://developers.cloudflare.com/ssl/origin-configuration/ssl-modes/full-strict/ Cloudflare » SSL » Modes » Full (strict)] | |||
* [https://developers.cloudflare.com/ssl/troubleshooting/too-many-redirects/ Cloudflare » Bug » Too Many Redirects] | |||
* [https://developers.cloudflare.com/ssl/origin-configuration/ssl-modes/ Cloudflare » SSL » Encryption Modes] | |||
* [https://developers.cloudflare.com/rules/url-forwarding/ Cloudflare » Rules » Redirects] | |||
|- | |- | ||
Line 20: | Line 109: | ||
|- | |- | ||
|valign="top"| | |valign="top"| | ||
* [[ | * [[Linux Containers]] | ||
* [[PostgreSQL]] | * [[PostgreSQL]] | ||
* [[OpenLDAP]] | * [[OpenLDAP]] | ||
Line 29: | Line 118: | ||
* [[CIDR]] | * [[CIDR]] | ||
* [[UFW]] | * [[UFW]] | ||
* [[ | * [[Port]] | ||
|valign="top"| | |valign="top"| | ||
* [[Cloud Computing Cost]] | * [[Cloud Computing Cost]] | ||
* [https://www.cloudflare.com/products/tunnel/ Tunnel » Cloudflare] | * [https://www.cloudflare.com/products/tunnel/ Tunnel » Cloudflare] | ||
* [[Google Cloud CLI]] | |||
* [https://dashboard.ngrok.com/tunnels/agents Tunnel » Ngrok] | * [https://dashboard.ngrok.com/tunnels/agents Tunnel » Ngrok] | ||
* [[Localtunnel|Tunnel » Local]] | * [[Localtunnel|Tunnel » Local]] | ||
Line 39: | Line 129: | ||
* [[AWS CLI]] | * [[AWS CLI]] | ||
* [[Ansible]] | * [[Ansible]] | ||
* [[AWS]] | |||
* [[K8s]] | * [[K8s]] | ||
Latest revision as of 19:43, 12 November 2024
WARP Client
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
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
|