diff options
Diffstat (limited to '')
-rw-r--r-- | dnsmasq.service.d/50-qubes-vpn-exclude.conf | 14 |
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 |