Unofficial Warp Client on Linux (WGCF+wireguard)

Table of Contents
    WGCF is an unofficial, cross-platform CLI for Cloudflare Warp. It works with Wireguard. So before installing WGCF make sure you’ve installed

    `wireguard-tools`

    `wireguard-dkms` (if you’re using a Linux Kernel older than 5.6)

    Note : You’ve to restart your system if you install wireguard-dkms.

    You can install pre-compiled binary file from it’s releases or you can install it from AUR if you’re using Arch derivatives.

    Install binary package
    Download the package you need from release page. Then rename the file wgcf, make it executable and copy it to /bin directory.
    ```
    chmod +x wgcf
    sudo cp wgcf /bin
    ```
    Or you can install from AUR if you use Arch

    `yay -S wgcf`
    Now we will create a Warp account

    `wgcf register`
    And generate a Wireguard configuration using that account information

    `wgcf generate`
    We’ve to connect to Warp using that Wireguard configuration. It’d be much easier if you put that configuration file in /etc/wireguard

    `sudo cp wgcf-profile.conf /etc/wireguard`
    Let’s connect now

    `wg-quick up wgcf-profile`
    If you want to disconnect, run

    `wg-quick down wgcf-profile`
    Probably you’d like to run Warp every time when your system boots. You can do that with help of systemd

    `systemctl enable --now wireguard@wgcf-profile`

    Join the Conversation

    July 26, 2024

    Search the Blog

    Press ESC to close