Skip to content

automate VPN setup #4

@SCBuergel

Description

@SCBuergel

This uses qubes-tunnel to set up a VPN net qube.

Overview

[sys-net]
     ↑
[sys-firewall]
     ↑
[sys-vpn] ← [vpn-template]
     ↑
[your app qube]

Steps

  1. Create vpn-template as a TemplateVM from debian-11. Then in that template run
sudo apt install qubes-repo-contrib qubes-tunnel -y
  1. Create app qube sys-vpn from the previously created template vpn-template, in the Advanced tab activate Provides network access to other qubes
  2. In the settings of sys-vpn add the service qubes-tunnel
  3. Obtain Open VPN Username & Password, e.g. on ProtonVPN at https://account.protonvpn.com/account and then run the following in sys-vpn and provide username & password when prompted:
sudo /usr/lib/qubes/qtunnel-setup --config
  1. Download Open VPN config file (e.g. on ProtoVPN at https://account.protonvpn.com/downloads ) and store it as /rw/config/qtunnel/qtunnel.conf in sys-vpn
  2. Set sys-vpn as net-qube of any app qube that should be behind VPN.
  3. If you are any custom port forwarding, apply the config to this sys-vpn qube as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions