X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=trusted-network;h=825604e8421e21698b066860f0fb8dfe3807b471;hb=e72acaee4cf7c394ca0e35b84d3afbd8ef5a4b32;hp=894815ebed59fa7aa5588827765807ffb995dd1d;hpb=ad09c51104f62d1da1782387025b44327a081872;p=distro-setup diff --git a/trusted-network b/trusted-network index 894815e..825604e 100755 --- a/trusted-network +++ b/trusted-network @@ -6,7 +6,7 @@ [[ $EUID == 0 ]] || exec sudo -E "${BASH_SOURCE[0]}" "$@" -source /a/bin/errhandle/err +source /a/bin/bash-bear-trap/bash-bear readonly this_file=$(readlink -f -- "${BASH_SOURCE[0]}") readonly this_dir="${this_file%/*}" @@ -57,13 +57,17 @@ if $trust; then fi fi - rm -fv /etc/systemd/resolved.conf.d/untrusted-network.conf + # https://github.com/jonathanio/update-systemd-resolved + # suggests this will help prevent leakage into a vpn interface + cat >/etc/systemd/resolved.conf.d/untrusted-network.conf </etc/systemd/resolved.conf.d/untrusted-network.conf <