Crates.io | mozwire |
lib.rs | mozwire |
version | 0.8.1 |
source | src |
created_at | 2020-08-16 03:00:43.810715 |
updated_at | 2023-02-14 01:11:22.435633 |
description | MozillaVPN wireguard configuration manager |
homepage | |
repository | https://github.com/NilsIrl/MozWire/ |
max_upload_size | |
id | 277110 |
size | 114,716 |
MozWire is an unofficial cross-platform client for MozillaVPN, finally giving Linux, macOS, FreeBSD, OpenBSD and others (all platforms supporting the WireGuard protocol) users access to this VPN provider. MozWire also supports Windows.
--hop
)--port
)--tunnel
)--killswitch
)Linux, macOS and Windows binaries are available on the release page. These binaries are built by GitHub Actions CI.
The package name is mozwire
and
can be installed using your favourite AUR helper:
yay -S mozwire
mozwire
is now packaged in
nixpkgs, make sure your
nixpkgs-unstable
channel is up to date (nix-channel --update nixpkgs-unstable
), then run
nix-env -i MozWire
cargo install
cargo install mozwire
cargo install --git https://github.com/NilsIrl/MozWire.git --branch trunk
git clone https://github.com/NilsIrl/MozWire.git
cd MozWire
cargo build
mozwire relay save
to generate a WireGuard configuration. --help
to get help
on a subcommand, e.g. mozwire relay --help
, mozwire relay save --help
.
Output configuration for all servers into the /etc/wireguard
directory.
mozwire relay save -o /etc/wireguard -n 0
Use MOZ_TOKEN
to "cache" the token instead of specifying it each time with
--token
or log in each time.
export MOZ_TOKEN=$(mozwire --print-token) # save the token in the MOZ_TOKEN environment variable
mozwire .... # mozwire commands can be run without having to log in
mozwire 0.8.1
Nils <nils@nilsand.re>
MozillaVPN wireguard configuration manager
USAGE:
mozwire [OPTIONS] [SUBCOMMAND]
OPTIONS:
-h, --help Print help information
--no-browser By default, mozwire will open the login page in a browser,
this option prevents mozwire a browser page from being opened
--print-token Print the token used to query the Mozilla API, so that it can
be reused with --token, without having to sign in each time
--token <TOKEN> The token used to communicate with the Mozilla API. If
unspecified, a web page will be opened to retrieve the token.
the MOZ_TOKEN environment variable can also be used instead
[env: MOZ_TOKEN=]
-V, --version Print version information
SUBCOMMANDS:
device Add, remove and list devices. To connect to MozillaVPN, a device needs
to be on the list
help Print this message or the help of the given subcommand(s)
relay List available relays (VPN Servers) and save WireGuard configurations
for these
To query MozillaVPN, mozwire requires a token, specified with --token. If it is left
unspecified, mozwire will generate a token by opening a login page, the token generated
can be printed using --print-token, so that it can be reused. To generate a WireGuard
configuration use `mozwire relay save`.
MozWire is licensed under the GNU GENERAL PUBLIC LICENSE Version 3. I am willing to relicense it.
Copyright © 2020-2023 Nils André