Cloudflare/WARP Connector: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
 
(18 intermediate revisions by the same user not shown)
Line 2: Line 2:
{|
{|
| valign="top" |
| valign="top" |
<syntaxhighlight lang="bash">
cat << EXE | sudo bash
systemctl daemon-reload
systemctl enable  warp-svc.service
systemctl start  warp-svc.service
systemctl status  warp-svc.service
EXE
</syntaxhighlight>


| valign="top" |
| valign="top" |
<syntaxhighlight lang="bash">
cat << EXE | sudo bash
systemctl daemon-reload
systemctl disable warp-svc.service
systemctl stop    warp-svc.service
systemctl status  warp-svc.service
EXE
</syntaxhighlight>


| valign="top" |
| valign="top" |
<syntaxhighlight lang="bash">
warp-cli registration delete
warp-cli connector new eyJhIjoiNW…
warp-cli registration show
warp-cli settings
warp-cli connect
warp-cli status
</syntaxhighlight>
|-
| colspan="3" |
----
|-
| colspan="3" |
<syntaxhighlight lang="bash">
echo "$(cat <<EOF | jq -s '.[0] * .[1]' /var/lib/cloudflare-warp/conf.json -
{
  "tunnel": "aa-chorke-com-warp"
}
EOF
)" | sudo tee /var/lib/cloudflare-warp/conf.json > /dev/null
          cat /var/lib/cloudflare-warp/conf.json | jq -r .tunnel
</syntaxhighlight>
|-
| colspan="3" |
----
|-
| colspan="3" |
<syntaxhighlight lang="bash">
cat <<EOF | jq -r .| sudo tee /var/lib/cloudflare-warp/tunnel-info.json > /dev/null
{
  "tunnel": "aa-chorke-com-warp"
}
EOF
cat /var/lib/cloudflare-warp/tunnel-info.json|jq -r .tunnel
</syntaxhighlight>


|-
|-
Line 12: Line 66:
|-
|-
| valign="top" |
| valign="top" |
<syntaxhighlight lang="bash">
sudo cat /var/lib/cloudflare-warp/reg.json    |jq -r
    cat /var/lib/cloudflare-warp/settings.json|jq -r
    cat /var/lib/cloudflare-warp/conf.json    |jq -r
</syntaxhighlight>


| valign="top" |
| valign="top" |
Line 21: Line 80:
==Playground==
==Playground==
{|
{|
| valign="top" |
<syntaxhighlight lang="bash">
sudo systemctl disable --now warp-svc
sudo systemctl enable  --now warp-svc
systemctl status warp-svc
</syntaxhighlight>
| valign="top" |
<syntaxhighlight lang="bash">
sudo systemctl disable --now warp-svc
sudo rm -rf /var/lib/cloudflare-warp/
sudo systemctl enable  --now warp-svc
</syntaxhighlight>
| valign="top" |
<syntaxhighlight lang="bash">
sudo ls -lah /var/lib/cloudflare-warp/
warp-cli connector new eyJhIjoiNW…
warp-cli connect
</syntaxhighlight>
|-
| colspan="3" |
----
|-
| valign="top" |
<syntaxhighlight lang="bash">
warp-cli registration delete
warp-cli registration show
warp-cli registration new
</syntaxhighlight>
| valign="top" |
<syntaxhighlight lang="bash">
warp-cli tunnel host remove chorke.org
warp-cli tunnel host add    chorke.org
warp-cli tunnel host list
</syntaxhighlight>
| valign="top" |
<syntaxhighlight lang="bash">
    cat /var/lib/cloudflare-warp/cfwarp_snapshots_collection.txt
sudo cat /var/lib/cloudflare-warp/reg.json | jq -r
ls  -alh /var/lib/cloudflare-warp/crash_reports/
</syntaxhighlight>
|-
| colspan="3" |
----
|-
| valign="top" |
| valign="top" |
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
Line 59: Line 168:
             ls -lah ~/.cloudflared/
             ls -lah ~/.cloudflared/
</syntaxhighlight>
</syntaxhighlight>
| valign="top" |
<syntaxhighlight lang="bash">
    cat /var/lib/cloudflare-warp/settings.json|jq -r
    cat /var/lib/cloudflare-warp/conf.json|jq -r
ls -alh /var/lib/cloudflare-warp/
</syntaxhighlight>
|-
| colspan="3" |
----
|-
| valign="top" |
<syntaxhighlight lang="bash">
warp-cli settings
warp-cli certs
warp-cli vnet
</syntaxhighlight>
| valign="top" |


| valign="top" |
| valign="top" |
Line 75: Line 204:
* [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/smb/ Cloudflare » Zero Trust » SMB]
* [https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/use-cases/ssh/ Cloudflare » Zero Trust » SSH]
* [https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/use-cases/ssh/ Cloudflare » Zero Trust » SSH]
* [[Cloudflare/Argo Tunnel|Cloudflare » Argo Tunnel]]
* [https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/ Cloudflare » Tunnel]
* [[Cloudflare]]
* [https://www.cloudflare.com/learning/access-management/what-is-ssh/ Cloudflare » SSH]


|valign="top"|
|valign="top"|
Line 83: Line 212:
* [https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/private-net/warp-connector/ Cloudflare » WARP Connector]
* [https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/private-net/warp-connector/ Cloudflare » WARP Connector]
* [https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/configure-warp/route-traffic/split-tunnels/ Cloudflare » Split Tunnels]
* [https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/configure-warp/route-traffic/split-tunnels/ Cloudflare » Split Tunnels]
* [https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/ Cloudflare » Tunnel]
 
* [https://www.cloudflare.com/learning/access-management/what-is-ssh/ Cloudflare » SSH]
|valign="top"|
 
|-
|colspan="3"|
----
|-
|valign="top"|
* [https://chorke.cloudflareaccess.com Cloudflare » Access » Chorke]
* [[Cloudflare/Argo Tunnel|Cloudflare » Argo Tunnel]]
* [[Cloudflare]]
 
|valign="top"|


|valign="top"|
|valign="top"|
Line 122: Line 262:
* [https://www.calculator.net/ip-subnet-calculator.html?cclass=any&csubnet=32&cip=10.19.83.1&ctype=ipv4&x=Calculate CIDR » 10.19.83.1/32]
* [https://www.calculator.net/ip-subnet-calculator.html?cclass=any&csubnet=32&cip=10.19.83.1&ctype=ipv4&x=Calculate CIDR » 10.19.83.1/32]
* [https://www.calculator.net/ip-subnet-calculator.html?cclass=any&csubnet=24&cip=10.19.83.1&ctype=ipv4&x=Calculate CIDR » 10.19.83.1/24]
* [https://www.calculator.net/ip-subnet-calculator.html?cclass=any&csubnet=24&cip=10.19.83.1&ctype=ipv4&x=Calculate CIDR » 10.19.83.1/24]
* [[Linux User Creation]]


|}
|}

Latest revision as of 10:44, 22 December 2024

WARP Client

cat << EXE | sudo bash
systemctl daemon-reload
systemctl enable  warp-svc.service
systemctl start   warp-svc.service
systemctl status  warp-svc.service
EXE
cat << EXE | sudo bash
systemctl daemon-reload
systemctl disable warp-svc.service
systemctl stop    warp-svc.service
systemctl status  warp-svc.service
EXE
warp-cli registration delete
warp-cli connector new eyJhIjoiNW…
warp-cli registration show
warp-cli settings
warp-cli connect
warp-cli status

echo "$(cat <<EOF | jq -s '.[0] * .[1]' /var/lib/cloudflare-warp/conf.json -
{
  "tunnel": "aa-chorke-com-warp"
}
EOF
)" | sudo tee /var/lib/cloudflare-warp/conf.json > /dev/null
          cat /var/lib/cloudflare-warp/conf.json | jq -r .tunnel

cat <<EOF | jq -r .| sudo tee /var/lib/cloudflare-warp/tunnel-info.json > /dev/null
{
  "tunnel": "aa-chorke-com-warp"
}
EOF

cat /var/lib/cloudflare-warp/tunnel-info.json|jq -r .tunnel

sudo cat /var/lib/cloudflare-warp/reg.json     |jq -r
     cat /var/lib/cloudflare-warp/settings.json|jq -r
     cat /var/lib/cloudflare-warp/conf.json    |jq -r

Playground

sudo systemctl disable --now warp-svc
sudo systemctl enable  --now warp-svc
systemctl status warp-svc
sudo systemctl disable --now warp-svc
sudo rm -rf /var/lib/cloudflare-warp/
sudo systemctl enable  --now warp-svc
sudo ls -lah /var/lib/cloudflare-warp/
warp-cli connector new eyJhIjoiNW…
warp-cli connect

warp-cli registration delete
warp-cli registration show
warp-cli registration new
warp-cli tunnel host remove chorke.org
warp-cli tunnel host add    chorke.org
warp-cli tunnel host list
     cat /var/lib/cloudflare-warp/cfwarp_snapshots_collection.txt
sudo cat /var/lib/cloudflare-warp/reg.json | jq -r
ls  -alh /var/lib/cloudflare-warp/crash_reports/

cat /usr/local/etc/cloudflared/config.yml
ls -lah ~/.cloudflare-warp
ls -lah  ~/cloudflare-warp
sudo cloudflared service uninstall
systemctl  status cloudflared
journalctl -xeu   cloudflared
tail -n100 -f /var/log/cloudflared.log 
sudo systemctl daemon-reload
ps aux|grep cloudflared

ls -alh /etc/systemd/system|grep cloudflared
ls -alh /etc/systemd/system|grep minikube
ls -alh /etc/systemd/system|grep minio
ls -lah /usr/local/etc/cloudflared/
          ls -lah /etc/cloudflared/
            ls -lah ~/.cloudflared/
    cat /var/lib/cloudflare-warp/settings.json|jq -r
    cat /var/lib/cloudflare-warp/conf.json|jq -r
ls -alh /var/lib/cloudflare-warp/

warp-cli settings
warp-cli certs
warp-cli vnet

References