From ee4bd0880ba48d2098c0a3b1336985dccbe9bdaf Mon Sep 17 00:00:00 2001 From: Tommy Date: Wed, 13 Nov 2024 22:32:19 -0700 Subject: [PATCH] Fix IVPN DNS at boot --- etc/systemd/system/dnat-to-ns-boot.service | 8 ++++++++ fedora-gnome/ivpn.sh | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 etc/systemd/system/dnat-to-ns-boot.service diff --git a/etc/systemd/system/dnat-to-ns-boot.service b/etc/systemd/system/dnat-to-ns-boot.service new file mode 100644 index 0000000..ce5a1c0 --- /dev/null +++ b/etc/systemd/system/dnat-to-ns-boot.service @@ -0,0 +1,8 @@ +[Unit] +Description=Run /usr/lib/qubes/qubes-setup-dnat-to-ns +StartLimitIntervalSec=0 + +[Service] +Type=oneshot +ExecStart=sleep 10 +ExecStart=/usr/lib/qubes/qubes-setup-dnat-to-ns \ No newline at end of file diff --git a/fedora-gnome/ivpn.sh b/fedora-gnome/ivpn.sh index 7321f57..97ad5bb 100644 --- a/fedora-gnome/ivpn.sh +++ b/fedora-gnome/ivpn.sh @@ -37,7 +37,9 @@ download https://raw.githubusercontent.com/TommyTran732/QubesOS-Scripts/main/etc download https://raw.githubusercontent.com/TommyTran732/QubesOS-Scripts/main/etc/systemd/system/dnat-to-ns.service /etc/systemd/system/dnat-to-ns.service download https://raw.githubusercontent.com/TommyTran732/QubesOS-Scripts/main/etc/systemd/system/dnat-to-ns.path /etc/systemd/system/dnat-to-ns.path +download https://raw.githubusercontent.com/TommyTran732/QubesOS-Scripts/main/etc/systemd/system/dnat-to-ns-boot.service /etc/systemd/system/dnat-to-ns-boot.service sudo systemctl enable dnat-to-ns.path +sudo systemctl enable dnat-to-ns-boot.service # Follow these instructions on how to set up the ProxyVM: https://privsec.dev/posts/qubes/using-ivpn-on-qubes-os/#creating-the-proxyvm