Mullvad - make VPN settings persistent in sys-mullvad

This commit is contained in:
unman 2024-05-20 16:38:06 +00:00
parent cadb807e41
commit 97d9f5bb41
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
4 changed files with 30 additions and 4 deletions

View File

@ -1,6 +1,6 @@
Name: 3isec-qubes-mullvad-vpn
Version: 2024.3
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Set up a Mullvad qube and disposable template
License: GPLv3+
@ -50,13 +50,15 @@ if [ $1 -eq 1 ]; then
qubesctl --skip-dom0 --targets=sys-mullvad state.apply mullvad.configure
elif [ $1 -eq 2 ]; then
qubesctl --skip-dom0 --targets=template-mullvad state.apply mullvad.browser
qubesctl --skip-dom0 --targets=template-mullvad state.apply mullvad.browser_client
qubesctl --skip-dom0 --targets=sys-mullvad state.apply mullvad.configure
fi
%postun
if [ $1 -eq 0 ]; then
fi
%changelog
* Mon May 20 2024 unman <unman@thirdeyesecurity.org> - 2024.3.2
- Make VPN settings persistent in sys-mullvad
* Sat May 18 2024 unman <unman@thirdeyesecurity.org> - 2024.3.1
- Update to Mullvad VPN 2024.3
- Update to include new Mullvad Browser 13.0.15

View File

@ -0,0 +1,17 @@
/home/user/Downloads/mullvad_browser-linux-x86_64-13.0.15.tar.xz:
file.managed:
- source:
- salt://mullvad/mullvad-browser-linux-x86_64-13.0.15.tar.xz
- user: root
- group: root
- makedirs: True
remove_mullvad_browser:
file.absent:
- name: /home/user/mullvad-browser
mullvad-browser-linux-x86_64-13.0.15.tar.xz:
archive.extracted:
- name: /home/user
- source: /home/user/Downloads/mullvad_browser-linux-x86_64-13.0.15.tar.xz
- user: user

View File

@ -24,3 +24,10 @@
- group: root
- mode: '755'
- makedirs: True
# Make settings persistent using bind-dirs
bind_mullvad_settings:
file.append:
- name: /rw/config/qubes-bind-dirs.d/50_user.conf
- text: "binds+=( '/etc/mullvad-vpn' )"
- makedirs: True

View File

@ -29,6 +29,6 @@ GenericName=Web Browser
Comment=Mullvad Browser is +1 for privacy and 1 for mass surveillance
Categories=Network;WebBrowser;Security;
Exec=sh -c '"/home/user/mullvad-browser/Browser/start-mullvad-browser" || ([ ! -x "/home/user/mullvad-browser/Browser/start-mullvad-browser" ] && "$(dirname "$*")"/Browser/start-mullvad-browser --detach)' dummy %k
X-MullvadBrowser-ExecShell=./Browser/start-mullvad-browser
X-MullvadBrowser-ExecShell=./Browser/start-mullvad-browser
Icon=/home/user/mullvad-browser/Browser/browser/chrome/icons/default/default128.png
StartupWMClass=Mullvad Browser