Skip to content

Fork of phvr's script to run Mullvad with Wireguard on Gentoo and OpenRC, but using doas and some additional features

License

Notifications You must be signed in to change notification settings

elliowo/mullvad-wg-doas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mullvad WireGuard script logo

Simple script that makes it easier to use Mullvad's VPN with WireGuard and OpenRC on Gentoo.

This is a fork of phvr script that replaces sudo with OpenDoas to not have to re-enter your password when connecting to the server use the persist feature in OpenDoas.

gif

Prerequisites

Installation

Add elliowo-overlay to portage, sync and run.

# emerge -a mullvad-wg-doas

Usage

Configuring the servers

To pull in all available servers and their wireguard configs, do

mullvad update servers

This will prompt you for your Mullvad account number. Do this after installation.

Connecting to a server

To connect to a server, simply write

mullvad connect <server>

It it also possible to leave out server selection and connect to default

mullvad connect

Note that this needs to be set with mullvad update default, before using the above command.

Disconnecting from a server

mullvad disconnect

Updating default server

mullvad update default

This command will let you set a default server of your choosing. Use the list command to view the current default.

Enabling/Disabling kill-switch

Enable a kill-switch

mullvad kill-switch on <server>

Disable a kill-switch

mullvad kill-switch off <server>

It is possible to choose multiple servers. To enable a kill-switch for all servers run

mullvad kill-switch <on|off> all

Listing servers

When you first update the server list you will shown the current available servers. To view the list again type

mullvad list

Status of current connection

To get more detailed information about your connection, run

mullvad status

or

mullvad verify

to verify using the am.i.mullvad.net API

Choosing start-up server

It is possible to choose a server that will auto connect on boot.

mullvad start-up <on|off> <server>

Show the currently selected startup server:

mullvad start-up show

For this to work you need the 'local' service enabled:

# rc-update add local default

Help

The help section can be accessed with

mullvad help

More information

Authors

Adi Hrustic wrote this script - phvr forked it to adapt it to OpenRC and package it for Gentoo

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details.

About

Fork of phvr's script to run Mullvad with Wireguard on Gentoo and OpenRC, but using doas and some additional features

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%