2023-11-13 09:33:28 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-11-13 13:18:06 -05:00
|
|
|
# SPDX-FileCopyrightText: 2022 - 2023 unman <unman@thirdeyesecurity.org>
|
2023-11-13 09:33:28 -05:00
|
|
|
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
2023-12-26 13:46:35 -05:00
|
|
|
nft -f /rw/config/qubes-firewall.d/50-sys-pihole
|
|
|
|
|
|
|
|
for vif in /proc/sys/net/ipv4/conf/vif*/route_localnet; do
|
|
|
|
test -w "${vif}" || continue
|
|
|
|
echo 1 | tee "${vif}" >/dev/null
|
|
|
|
done
|
2024-01-05 11:45:04 -05:00
|
|
|
|
|
|
|
if test -f /var/run/qubes-service/local-dns-server; then
|
|
|
|
echo "nameserver 127.0.0.1" | tee /etc/resolv.conf
|
|
|
|
fi
|