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 /rc.local-hook | |
download | qubes-vpn-exclude-362206287265a8963abe9ee3f7fdec7f586502ac.tar.bz2 qubes-vpn-exclude-362206287265a8963abe9ee3f7fdec7f586502ac.tar.zst qubes-vpn-exclude-362206287265a8963abe9ee3f7fdec7f586502ac.zip |
Initial commit
Diffstat (limited to '')
-rwxr-xr-x | rc.local-hook | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/rc.local-hook b/rc.local-hook new file mode 100755 index 0000000..694aaad --- /dev/null +++ b/rc.local-hook @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +cd /rw/config/qubes-vpn-exclude + +mkdir -p /lib/systemd/system/dnsmasq.service.d +cp dnsmasq.service.d/* /lib/systemd/system/dnsmasq.service.d + +mkdir -p /lib/systemd/system/qubes-firewall.service.d +cp qubes-firewall.service.d/* /lib/systemd/system/qubes-firewall.service.d + +ln -s -f $PWD/qubes-firewall.d/95-qubes-vpn-exclude /rw/config/qubes-firewall.d/95-qubes-vpn-exclude +chmod +x /rw/config/qubes-firewall.d/* + +systemctl daemon-reload +systemctl enable dnsmasq.service +systemctl restart qubes-firewall.service + +sync |