diff options
author | Jimmy Axenhus <github att axenhus doot com> | 2021-02-28 16:29:27 +0100 |
---|---|---|
committer | Jimmy Axenhus <github att axenhus doot com> | 2021-02-28 16:29:27 +0100 |
commit | 362206287265a8963abe9ee3f7fdec7f586502ac (patch) | |
tree | 4e349d8dcf193105ccf4e40bd635a9947ccc572b /dnsmasq.service.d | |
download | qubes-vpn-exclude-362206287265a8963abe9ee3f7fdec7f586502ac.tar.bz2 qubes-vpn-exclude-362206287265a8963abe9ee3f7fdec7f586502ac.tar.zst qubes-vpn-exclude-362206287265a8963abe9ee3f7fdec7f586502ac.zip |
Initial commit
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 |