Cloudflare/WARP Connector

From Chorke Wiki
Revision as of 10:44, 22 December 2024 by Shahed (talk | contribs) (→‎WARP Client)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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