aboutsummaryrefslogtreecommitdiffstats
path: root/dnsmasq.service.d/50-qubes-vpn-exclude.conf
blob: 32f4b9c2ebf7d258ccfe1198d2aab89534d03a2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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