aboutsummaryrefslogtreecommitdiffstats
path: root/dnsmasq.service.d/50-qubes-vpn-exclude.conf
diff options
context:
space:
mode:
Diffstat (limited to 'dnsmasq.service.d/50-qubes-vpn-exclude.conf')
-rw-r--r--dnsmasq.service.d/50-qubes-vpn-exclude.conf14
1 files changed, 14 insertions, 0 deletions
diff --git a/dnsmasq.service.d/50-qubes-vpn-exclude.conf b/dnsmasq.service.d/50-qubes-vpn-exclude.conf
new file mode 100644
index 0000000..32f4b9c
--- /dev/null
+++ b/dnsmasq.service.d/50-qubes-vpn-exclude.conf
@@ -0,0 +1,14 @@
+[Unit]
+ConditionPathExists=!/var/run/qubes/this-is-templatevm
+ConditionPathExists=/var/run/qubes-service/vpn-exclude-domains
+
+After=qubes-firewall.service rw.mount qubes-vpn-handler.service
+BindsTo=qubes-vpn-handler.service
+
+[Service]
+ExecStartPre=/rw/config/qubes-vpn-exclude/generate-dnsmasq.sh
+ExecStopPost=-/usr/sbin/ipset flush qubes-vpn-exclude-4
+ExecStopPost=-/usr/sbin/ipset flush qubes-vpn-exclude-6
+
+[Install]
+WantedBy=qubes-vpn-handler.service

Code dump for some of my projects as well as a mirror for other random or interesting projects. You can find my site at jimmy.axenhus.com