]> gitweb.fluxo.info Git - trashman.git/commitdiff
Tor transproxy: additional and commented code block to ensure the local DNS is in use
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 23 Oct 2022 22:11:21 +0000 (19:11 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 23 Oct 2022 22:11:21 +0000 (19:11 -0300)
share/trashman/tor-transproxy/unix/linux/debian/install

index 7972ac4e78c92bf17cbde622f10c84431323c9fc..125dc2d918816e134f849040bcc39472ad683acc 100755 (executable)
@@ -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