2023-11-13 09:33:28 -05:00
|
|
|
# sys-wireguard
|
|
|
|
|
|
|
|
Wireguard VPN in Qubes OS.
|
|
|
|
|
|
|
|
## Table of Contents
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* [Description](#description)
|
|
|
|
* [Installation](#installation)
|
|
|
|
* [Usage](#usage)
|
|
|
|
* [Credits](#credits)
|
2023-11-13 09:33:28 -05:00
|
|
|
|
|
|
|
## Description
|
|
|
|
|
|
|
|
Setup a Wireguard VPN qube named "sys-wireguard" to provide network access to
|
|
|
|
other qubes through the VPN with fail closed mechanism.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* Top:
|
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
```sh
|
2024-02-23 10:54:35 -05:00
|
|
|
sudo qubesctl top.enable sys-wireguard
|
|
|
|
sudo qubesctl --targets=tpl-sys-wireguard,sys-wireguard state.apply
|
|
|
|
sudo qubesctl top.disable sys-wireguard
|
2023-11-13 09:33:28 -05:00
|
|
|
```
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* State:
|
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
<!-- pkg:begin:post-install -->
|
2024-07-04 11:10:11 -04:00
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
```sh
|
2024-02-23 10:54:35 -05:00
|
|
|
sudo qubesctl state.apply sys-wireguard.create
|
|
|
|
sudo qubesctl --skip-dom0 --targets=tpl-sys-wireguard state.apply sys-wireguard.install
|
|
|
|
sudo qubesctl --skip-dom0 --targets=sys-wireguard state.apply sys-wireguard.configure
|
2023-11-13 09:33:28 -05:00
|
|
|
```
|
2024-07-04 11:10:11 -04:00
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
<!-- pkg:end:post-install -->
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Use the VPN qube `sys-wireguard` to enforce incoming and outgoing connections
|
|
|
|
from clients connected to the VPN with a fail safe mechanism.
|
|
|
|
|
2024-01-08 14:07:20 -05:00
|
|
|
To start using the VPN:
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
1. Copy the Wireguard configuration you downloaded to `sys-wireguard` and
|
|
|
|
place it in `/home/user/wireguard.conf`.
|
|
|
|
2. Run from Dom0 to apply Qubes Firewall rules: `qvm-wireguard`
|
2024-01-08 14:07:20 -05:00
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
## Credits
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* [Unman](https://github.com/unman/shaker/tree/main/mullvad)
|