### Install GotaTun Executable Source: https://github.com/mullvad/gotatun/blob/main/README.md Installs the GotaTun executable to the Cargo bin directory. This command is an alternative to manually copying the binary from the target release folder. ```bash cargo install --bin gotatun --path . ``` -------------------------------- ### Run GotaTun Tunnel Source: https://github.com/mullvad/gotatun/blob/main/README.md Starts a GotaTun tunnel. The `-f` or `--foreground` flag keeps the process in the foreground. Replace `INTERFACE-NAME` with the desired interface name. ```bash gotatun [-f/--foreground] INTERFACE-NAME ``` -------------------------------- ### Run wg-quick with GotaTun Source: https://github.com/mullvad/gotatun/blob/main/README.md Configures and brings up a WireGuard tunnel using `wg-quick` with GotaTun as the userspace implementation. `WG_SUDO=1` is used to ensure necessary privileges. Replace `CONFIGURATION` with the path to your WireGuard configuration file. ```bash sudo WG_QUICK_USERSPACE_IMPLEMENTATION=gotatun WG_SUDO=1 wg-quick up CONFIGURATION ``` -------------------------------- ### Build GotaTun Executable Source: https://github.com/mullvad/gotatun/blob/main/README.md Use this command to build the GotaTun executable binary. The `--release` flag enables optimizations. A target triple can be specified for cross-compilation. ```bash cargo build --bin gotatun --release [--target $(TARGET_TRIPLE)] ``` -------------------------------- ### Build GotaTun with Nix Source: https://github.com/mullvad/gotatun/blob/main/README.md Builds the GotaTun executable using Nix. The resulting binary will be located in the `result/bin/gotatun` path. ```bash nix build .#gotatun ``` -------------------------------- ### Build GotaTun Library Source: https://github.com/mullvad/gotatun/blob/main/README.md Use this command to build only the GotaTun library. The `--no-default-features` flag is used to exclude default features, and `--release` enables optimizations. A target triple can be specified for cross-compilation. ```bash cargo build --lib --no-default-features --release [--target $(TARGET_TRIPLE)] ``` -------------------------------- ### Grant CAP_NET_ADMIN Capability Source: https://github.com/mullvad/gotatun/blob/main/README.md Grants the `CAP_NET_ADMIN` capability to the GotaTun executable, which is required for network administration tasks. This allows GotaTun to create and manage network interfaces without needing to run as root. ```bash sudo setcap cap_net_admin+epi gotatun ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.