aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-10-23 19:11:21 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-10-23 19:11:21 -0300
commite535b884f2238c9c7a671f9acd5c0d40437896ba (patch)
tree96536b93bc5432288b91693861f4d6c7c70182f6 /share
parent530a4d927eb500d7d2670c28e3221fc472c29124 (diff)
downloadtrashman-e535b884f2238c9c7a671f9acd5c0d40437896ba.tar.gz
trashman-e535b884f2238c9c7a671f9acd5c0d40437896ba.tar.bz2
Tor transproxy: additional and commented code block to ensure the local DNS is in use
Diffstat (limited to 'share')
-rwxr-xr-xshare/trashman/tor-transproxy/unix/linux/debian/install9
1 files changed, 9 insertions, 0 deletions
diff --git a/share/trashman/tor-transproxy/unix/linux/debian/install b/share/trashman/tor-transproxy/unix/linux/debian/install
index 7972ac4..125dc2d 100755
--- a/share/trashman/tor-transproxy/unix/linux/debian/install
+++ b/share/trashman/tor-transproxy/unix/linux/debian/install
@@ -20,6 +20,15 @@ cp $SHARE/tor-transproxy/unix/linux/debian/files/etc/network/if-pre-up.d/iptable
# DNS config
echo "nameserver 127.0.0.1" | tee /etc/resolv.conf > /dev/null
+# Ensure only the local DNS resolver is used (Tor)
+# Some systems need this additional configuration so the DNS returned by the
+# DHCP server is NOT used
+#cat <<EOF | sudo tee /etc/network/interfaces.d/ens3 > /dev/null
+#allow-hotplug ens3
+#iface ens3 inet dhcp
+# post-up echo "nameserver 127.0.0.1" > /etc/resolv.conf
+#EOF
+
# Tor config
cp $SHARE/tor-transproxy/unix/linux/debian/files/etc/tor/torrc /etc/tor/torrc
service tor restart