Cara Terkoneksi ke WARP Cloudflare: Difference between revisions

No edit summary
No edit summary
 
Line 1: Line 1:
sudo apt install curl
<syntaxhighlight lang="shell">
 
sudo apt install curl
curl <nowiki>https://pkg.cloudflareclient.com/pubkey.gpg</nowiki> | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg
</syntaxhighlight><syntaxhighlight lang="shell">
 
curl https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] <nowiki>https://pkg.cloudflareclient.com/</nowiki> focal main' | sudo tee /etc/apt/sources.list.d/cloudflare-client.list deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] <nowiki>https://pkg.cloudflareclient.com/</nowiki> focal main
</syntaxhighlight><syntaxhighlight lang="shell">
 
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ focal main' | sudo tee /etc/apt/sources.list.d/cloudflare-client.list deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ focal main
sudo apt update
</syntaxhighlight><syntaxhighlight lang="shell">
 
sudo apt update
Jika error
</syntaxhighlight>Jika error<syntaxhighlight lang="shell">
W: GPG error: <nowiki>https://pkg.cloudflareclient.com</nowiki> focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6E2DD2174FA1C3BA
W: GPG error: https://pkg.cloudflareclient.com focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6E2DD2174FA1C3BA
E: The repository <nowiki>'https://pkg.cloudflareclient.com focal InRelease'</nowiki> is not signed.
E: The repository 'https://pkg.cloudflareclient.com focal InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: See apt-secure(8) manpage for repository creation and user configuration details.
 
</syntaxhighlight><syntaxhighlight lang="shell">
sudo apt-key del 835b8acb
sudo apt-key del 835b8acb
 
</syntaxhighlight>Ulangi kembali<syntaxhighlight lang="shell">
Ulangi kembali
curl https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg
curl <nowiki>https://pkg.cloudflareclient.com/pubkey.gpg</nowiki> | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg
</syntaxhighlight><syntaxhighlight lang="shell">
 
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ focal main' | sudo tee /etc/apt/sources.list.d/cloudflare-client.list deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ focal main
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] <nowiki>https://pkg.cloudflareclient.com/</nowiki> focal main' | sudo tee /etc/apt/sources.list.d/cloudflare-client.list
</syntaxhighlight><syntaxhighlight lang="shell">
deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] <nowiki>https://pkg.cloudflareclient.com/</nowiki> focal main
sudo apt update
 
</syntaxhighlight><syntaxhighlight lang="shell">
sudo apt update
sudo apt install cloudflare-warp
 
</syntaxhighlight>
sudo apt install cloudflare-warp


==Aktifasi==
==Aktifasi==
warp-cli register
<syntaxhighlight lang="shell">
 
warp-cli register
Jika punya key WARP+
</syntaxhighlight>Jika punya key WARP+<syntaxhighlight lang="shell">
warp-cli set-license 000mmm00-00011xxc-eee44452
warp-cli set-license 000mmm00-00011xxc-eee44452
 
</syntaxhighlight>Output:<syntaxhighlight lang="shell">
Output:
NOTICE:
NOTICE:
Cloudflare only collects limited DNS query and traffic data (excluding payload)
that is sent to our network when you have the app enabled on your device. We
will not sell, rent, share, or otherwise disclose your personal information to
anyone, except as otherwise described in this Policy, without first providing
you with notice and the opportunity to consent. All information is handled in
accordance with our Privacy Policy.
More information is available at:
- <nowiki>https://www.cloudflare.com/application/terms/</nowiki>
- <nowiki>https://www.cloudflare.com/application/privacypolicy/</nowiki>
Accept Terms of Service and Privacy Policy? [y/N] y
Success


warp-cli connect
Cloudflare only collects limited DNS query and traffic data (excluding payload)
that is sent to our network when you have the app enabled on your device. We
will not sell, rent, share, or otherwise disclose your personal information to
anyone, except as otherwise described in this Policy, without first providing
you with notice and the opportunity to consent. All information is handled in
accordance with our Privacy Policy.


Output:
More information is available at:
Success
- https://www.cloudflare.com/application/terms/
- https://www.cloudflare.com/application/privacypolicy/


Testing
Accept Terms of Service and Privacy Policy? [y/N] y
curl <nowiki>https://www.cloudflare.com/cdn-cgi/trace/</nowiki>


Output
Success
fl=35f754
</syntaxhighlight><syntaxhighlight lang="shell">
h=www.cloudflare.com
warp-cli connect
ip=114.79.22.139
</syntaxhighlight>Output:<syntaxhighlight lang="shell">
ts=1650266577.665
Success
visit_scheme=https
</syntaxhighlight>Testing<syntaxhighlight lang="shell">
uag=curl/7.68.0
curl https://www.cloudflare.com/cdn-cgi/trace/
colo=SIN
</syntaxhighlight>Output<syntaxhighlight lang="shell">
http=http/2
fl=35f754
loc=ID
h=www.cloudflare.com
tls=TLSv1.3
ip=114.79.22.139
sni=plaintext
ts=1650266577.665
warp=on
visit_scheme=https
gateway=off
uag=curl/7.68.0
colo=SIN
http=http/2
loc=ID
tls=TLSv1.3
sni=plaintext
warp=on
gateway=off
</syntaxhighlight>Set mode <syntaxhighlight lang="shell">
warp-cli set-mode --help
</syntaxhighlight><syntaxhighlight lang="shell">
USAGE:


Set mode
warp-cli set-mode [mode]
warp-cli set-mode --help


warp-cli-set-mode
FLAGS:
    -h, --help      Prints help information
USAGE:
    -V, --version    Prints version information
    warp-cli set-mode [mode]
FLAGS:
    -h, --help      Prints help information
    -V, --version    Prints version information
ARGS:
    <mode>    [possible values: warp, doh, warp+doh, dot, warp+dot, proxy]


ARGS:
    <mode>    [possible values: warp, doh, warp+doh, dot, warp+dot, proxy]
</syntaxhighlight>


==Usage==
==Usage==
warp-cli --help
<syntaxhighlight lang="shell">
warp-cli --help
</syntaxhighlight><syntaxhighlight lang="shell">
WARP 2022.3.253
Cloudflare
CLI to the WARP service daemon


WARP 2022.3.253
USAGE:
Cloudflare
    warp-cli [FLAGS] [SUBCOMMAND]
CLI to the WARP service daemon
   
   
USAGE:
FLAGS:
      warp-cli [FLAGS] [SUBCOMMAND]
        --accept-tos    Accept the Terms of Service agreement
 
    -h, --help          Prints help information
FLAGS:
    -l                  Listen for status changes and DNS logs (if enabled)
        --accept-tos    Accept the Terms of Service agreement
    -V, --version      Prints version information
    -h, --help          Prints help information
    -v                  Enable verbose output. Multiple "v"s adds more verbosity
    -l                  Listen for status changes and DNS logs (if enabled)
 
    -V, --version      Prints version information
SUBCOMMANDS:
    -v                  Enable verbose output. Multiple "v"s adds more verbosity
    register                      Register with the WARP API, replacing any existing registration (Must be run
                                  before first connection!)
SUBCOMMANDS:
    teams-enroll                  Enroll with Cloudflare for Teams
    register                      Register with the WARP API, replacing any existing registration (Must be run
    delete                        Delete current registration
                                    before first connection!)
    rotate-keys                    Generate a new key-pair, keeping the current registration
    teams-enroll                  Enroll with Cloudflare for Teams
    status                        Ask the daemon to send the current status
    delete                        Delete current registration
    warp-stats                    Retrieve the stats for the current WARP connection
    rotate-keys                    Generate a new key-pair, keeping the current registration
    settings                      Retrieve the current application settings
    status                        Ask the daemon to send the current status
    connect                        Connect to WARP (Connection progress can be monitored with -l)
    warp-stats                    Retrieve the stats for the current WARP connection
    disconnect                    Disconnect from WARP
    settings                      Retrieve the current application settings
    enable-always-on              Enable Always-On mode, meaning WARP is connected whenever possible
    connect                        Connect to WARP (Connection progress can be monitored with -l)
    disable-always-on              Disable Always-On mode
    disconnect                    Disconnect from WARP
    disable-wifi                  Automatically disable WARP on Wi-Fi networks
    enable-always-on              Enable Always-On mode, meaning WARP is connected whenever possible
    enable-wifi                    Allow WARP on Wi-Fi networks
    disable-always-on              Disable Always-On mode
    disable-ethernet              Automatically disable WARP on ethernet networks
    disable-wifi                  Automatically disable WARP on Wi-Fi networks
    enable-ethernet                Allow WARP on ethernet networks
    enable-wifi                    Allow WARP on Wi-Fi networks
    add-trusted-ssid              Add a trusted Wi-Fi network for which WARP will be automatically disconnected
    disable-ethernet              Automatically disable WARP on ethernet networks
    remove-trusted-ssid            Remove a trusted Wi-Fi network
    enable-ethernet                Allow WARP on ethernet networks
    exclude-private-ips            Exclude private IP ranges from tunnel
    add-trusted-ssid              Add a trusted Wi-Fi network for which WARP will be automatically disconnected
    enable-dns-log                Enable DNS logging (Use with the -l option)
    remove-trusted-ssid            Remove a trusted Wi-Fi network
    disable-dns-log                Disable DNS logging
    exclude-private-ips            Exclude private IP ranges from tunnel
    account                        Display the account associated with the current registration
    enable-dns-log                Enable DNS logging (Use with the -l option)
    devices                        Display the list of devices associated with the current registration
    disable-dns-log                Disable DNS logging
    network                        Display the current network information
    account                        Display the account associated with the current registration
    set-mode                       
    devices                        Display the list of devices associated with the current registration
    set-families-mode               
    network                        Display the current network information
    set-license                    Attach the current registration to a different account using a license key
    set-mode                       
    set-gateway                    Force the app to use the specified Gateway ID for DNS queries
    set-families-mode               
    clear-gateway                  Clear the Gateway ID
    set-license                    Attach the current registration to a different account using a license key
    set-custom-endpoint            Force the client to connect to the specified IP:PORT endpoint
    set-gateway                    Force the app to use the specified Gateway ID for DNS queries
    clear-custom-endpoint          Remove the custom endpoint setting
    clear-gateway                  Clear the Gateway ID
    add-excluded-route            Add an excluded IP
    set-custom-endpoint            Force the client to connect to the specified IP:PORT endpoint
    remove-excluded-route          Remove an excluded IP
    clear-custom-endpoint          Remove the custom endpoint setting
    get-excluded-routes            Get the list of excluded routes
    add-excluded-route            Add an excluded IP
    get-included-routes            Get the list of included routes
    remove-excluded-route          Remove an excluded IP
    get-excluded-hosts            Get the list of excluded hosts
    get-excluded-routes            Get the list of excluded routes
    get-included-hosts            Get the list of included hosts
    get-included-routes            Get the list of included routes
    add-excluded-host              Add an excluded host
    get-excluded-hosts            Get the list of excluded hosts
    remove-excluded-host          Remove an excluded host
    get-included-hosts            Get the list of included hosts
    add-fallback-domain            Add a domain that should be resolved with the fallback resolver instead of WARP's
    add-excluded-host              Add an excluded host
    remove-fallback-domain        Stop a domain from being resolved with the fallback resolver
    remove-excluded-host          Remove an excluded host
    get-fallback-domains          Get the list of domains that go to the fallback resolver
    add-fallback-domain            Add a domain that should be resolved with the fallback resolver instead of WARP's
    restore-fallback-domains      Restore the list of fallback resolver domains to its default value
    remove-fallback-domain        Stop a domain from being resolved with the fallback resolver
    get-device-posture            Get the current device posture
    get-fallback-domains          Get the list of domains that go to the fallback resolver
    override                      Temporarily override MDM policies that require the client to stay enabled
    restore-fallback-domains      Restore the list of fallback resolver domains to its default value
    set-proxy-port                Set the listening port for WARP proxy (127.0.0.1:{port})
    get-device-posture            Get the current device posture
    is-mode-switch-allowed        Outputs true if Teams users should be able to change connection mode, or false if
    override                      Temporarily override MDM policies that require the client to stay enabled
                                  not.
    set-proxy-port                Set the listening port for WARP proxy (127.0.0.1:{port})
    reset-settings                Restore settings to default
    is-mode-switch-allowed        Outputs true if Teams users should be able to change connection mode, or false if
    get-organization              Get the name of the Teams organization attached to the current registration.
                                    not.
    access-reauth                  Force refresh authentication with Cloudflare Access.
    reset-settings                Restore settings to default
    get-support-url                Get the support url for the current Teams organization.
    get-organization              Get the name of the Teams organization attached to the current registration.
    get-pause-end                  Retrieve the pause end time
    access-reauth                  Force refresh authentication with Cloudflare Access.
    get-override-end              Retrieve the admin override end time
    get-support-url                Get the support url for the current Teams organization.
    disable-connectivity-checks    Disable the runtime connectivity checks
    get-pause-end                  Retrieve the pause end time
    enable-connectivity-checks    Enable the runtime connectivity checks
    get-override-end              Retrieve the admin override end time
    help                          Prints this message or the help of the given subcommand(s)
    disable-connectivity-checks    Disable the runtime connectivity checks
</syntaxhighlight>
    enable-connectivity-checks    Enable the runtime connectivity checks
    help                          Prints this message or the help of the given subcommand(s)


==Download==
==Download==